@angular/cdk-experimental 21.0.0-next.5 → 21.0.0-next.8
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/{polyfill.mjs → _polyfill-chunk.mjs} +1 -1
- package/fesm2022/_polyfill-chunk.mjs.map +1 -0
- package/fesm2022/cdk-experimental.mjs +1 -1
- package/fesm2022/cdk-experimental.mjs.map +1 -1
- package/fesm2022/column-resize.mjs +1 -1
- package/fesm2022/popover-edit.mjs +1 -1
- package/package.json +10 -45
- package/{column-resize/index.d.ts → types/column-resize.d.ts} +37 -37
- package/{popover-edit/index.d.ts → types/popover-edit.d.ts} +30 -30
- package/{scrolling/index.d.ts → types/scrolling.d.ts} +6 -6
- package/{selection/index.d.ts → types/selection.d.ts} +14 -14
- package/{table-scroll-container/index.d.ts → types/table-scroll-container.d.ts} +6 -6
- package/accordion/index.d.ts +0 -94
- package/accordion.d.d.ts +0 -89
- package/combobox/index.d.ts +0 -94
- package/deferred-content/index.d.ts +0 -37
- package/expansion.d.d.ts +0 -71
- package/fesm2022/accordion.mjs +0 -194
- package/fesm2022/accordion.mjs.map +0 -1
- package/fesm2022/accordion2.mjs +0 -152
- package/fesm2022/accordion2.mjs.map +0 -1
- package/fesm2022/combobox.mjs +0 -340
- package/fesm2022/combobox.mjs.map +0 -1
- package/fesm2022/deferred-content.mjs +0 -59
- package/fesm2022/deferred-content.mjs.map +0 -1
- package/fesm2022/expansion.mjs +0 -87
- package/fesm2022/expansion.mjs.map +0 -1
- package/fesm2022/list-navigation.mjs +0 -261
- package/fesm2022/list-navigation.mjs.map +0 -1
- package/fesm2022/list.mjs +0 -370
- package/fesm2022/list.mjs.map +0 -1
- package/fesm2022/listbox.mjs +0 -163
- package/fesm2022/listbox.mjs.map +0 -1
- package/fesm2022/option.mjs +0 -231
- package/fesm2022/option.mjs.map +0 -1
- package/fesm2022/polyfill.mjs.map +0 -1
- package/fesm2022/radio-group.mjs +0 -205
- package/fesm2022/radio-group.mjs.map +0 -1
- package/fesm2022/radio-group2.mjs +0 -143
- package/fesm2022/radio-group2.mjs.map +0 -1
- package/fesm2022/tabs.mjs +0 -302
- package/fesm2022/tabs.mjs.map +0 -1
- package/fesm2022/tabs2.mjs +0 -211
- package/fesm2022/tabs2.mjs.map +0 -1
- package/fesm2022/toolbar.mjs +0 -171
- package/fesm2022/toolbar.mjs.map +0 -1
- package/fesm2022/toolbar2.mjs +0 -224
- package/fesm2022/toolbar2.mjs.map +0 -1
- package/fesm2022/tree.mjs +0 -620
- package/fesm2022/tree.mjs.map +0 -1
- package/fesm2022/ui-patterns.mjs +0 -21
- package/fesm2022/ui-patterns.mjs.map +0 -1
- package/list.d.d.ts +0 -207
- package/listbox/index.d.ts +0 -89
- package/listbox.d.d.ts +0 -101
- package/pointer-event-manager.d.d.ts +0 -190
- package/radio-group/index.d.ts +0 -87
- package/radio-group.d.d.ts +0 -80
- package/tabs/index.d.ts +0 -159
- package/tabs.d.d.ts +0 -137
- package/toolbar/index.d.ts +0 -91
- package/toolbar.d.d.ts +0 -136
- package/tree/index.d.ts +0 -275
- package/ui-patterns/index.d.ts +0 -9
- /package/{index.d.ts → types/cdk-experimental.d.ts} +0 -0
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { signal, input, Directive, inject, TemplateRef, ViewContainerRef, afterRenderEffect } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* A container directive controls the visibility of its content.
|
|
6
|
-
*/
|
|
7
|
-
class DeferredContentAware {
|
|
8
|
-
contentVisible = signal(false, ...(ngDevMode ? [{ debugName: "contentVisible" }] : []));
|
|
9
|
-
preserveContent = input(false, ...(ngDevMode ? [{ debugName: "preserveContent" }] : []));
|
|
10
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: DeferredContentAware, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
11
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.0-next.2", 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.2.0-next.2", 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
|
-
afterRenderEffect(() => {
|
|
38
|
-
if (this._deferredContentAware.contentVisible()) {
|
|
39
|
-
if (this._isRendered)
|
|
40
|
-
return;
|
|
41
|
-
this._viewContainerRef.clear();
|
|
42
|
-
this._viewContainerRef.createEmbeddedView(this._templateRef);
|
|
43
|
-
this._isRendered = true;
|
|
44
|
-
}
|
|
45
|
-
else if (!this._deferredContentAware.preserveContent()) {
|
|
46
|
-
this._viewContainerRef.clear();
|
|
47
|
-
this._isRendered = false;
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: DeferredContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
52
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: DeferredContent, isStandalone: true, ngImport: i0 });
|
|
53
|
-
}
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: DeferredContent, decorators: [{
|
|
55
|
-
type: Directive
|
|
56
|
-
}], ctorParameters: () => [] });
|
|
57
|
-
|
|
58
|
-
export { DeferredContent, DeferredContentAware };
|
|
59
|
-
//# sourceMappingURL=deferred-content.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deferred-content.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/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 afterRenderEffect,\n Directive,\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 readonly 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 afterRenderEffect(() => {\n if (this._deferredContentAware.contentVisible()) {\n if (this._isRendered) return;\n this._viewContainerRef.clear();\n this._viewContainerRef.createEmbeddedView(this._templateRef);\n this._isRendered = true;\n } else if (!this._deferredContentAware.preserveContent()) {\n this._viewContainerRef.clear();\n this._isRendered = false;\n }\n });\n }\n}\n"],"names":[],"mappings":";;;AAkBA;;AAEG;MAEU,oBAAoB,CAAA;AACtB,IAAA,cAAc,GAAG,MAAM,CAAC,KAAK,0DAAC;AAC9B,IAAA,eAAe,GAAG,KAAK,CAAC,KAAK,2DAAC;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,iBAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;kGAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC;;AAMD;;;;;;;;;;;;;;AAcG;MAEU,eAAe,CAAA;AACT,IAAA,qBAAqB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACpD,IAAA,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC;AAClC,IAAA,iBAAiB,GAAG,MAAM,CAAC,gBAAgB,CAAC;IACrD,WAAW,GAAG,KAAK;AAE3B,IAAA,WAAA,GAAA;QACE,iBAAiB,CAAC,MAAK;AACrB,YAAA,IAAI,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,EAAE;gBAC/C,IAAI,IAAI,CAAC,WAAW;oBAAE;AACtB,gBAAA,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE;gBAC9B,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,IAAI,CAAC,YAAY,CAAC;AAC5D,gBAAA,IAAI,CAAC,WAAW,GAAG,IAAI;;iBAClB,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,eAAe,EAAE,EAAE;AACxD,gBAAA,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE;AAC9B,gBAAA,IAAI,CAAC,WAAW,GAAG,KAAK;;AAE5B,SAAC,CAAC;;8GAjBO,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;kGAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;kGAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAD3B;;;;;"}
|
package/fesm2022/expansion.mjs
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { computed } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Controls a single item's expansion state and interactions,
|
|
5
|
-
* delegating actual state changes to an Expansion manager.
|
|
6
|
-
*/
|
|
7
|
-
class ExpansionControl {
|
|
8
|
-
inputs;
|
|
9
|
-
/** Whether this specific item is currently expanded. Derived from the Expansion manager. */
|
|
10
|
-
isExpanded = computed(() => this.inputs.expansionManager.isExpanded(this));
|
|
11
|
-
/** Whether this item can be expanded. */
|
|
12
|
-
isExpandable = computed(() => this.inputs.expansionManager.isExpandable(this));
|
|
13
|
-
constructor(inputs) {
|
|
14
|
-
this.inputs = inputs;
|
|
15
|
-
this.expansionId = inputs.expansionId;
|
|
16
|
-
this.expandable = inputs.expandable;
|
|
17
|
-
this.disabled = inputs.disabled;
|
|
18
|
-
}
|
|
19
|
-
/** Requests the Expansopn manager to open this item. */
|
|
20
|
-
open() {
|
|
21
|
-
this.inputs.expansionManager.open(this);
|
|
22
|
-
}
|
|
23
|
-
/** Requests the Expansion manager to close this item. */
|
|
24
|
-
close() {
|
|
25
|
-
this.inputs.expansionManager.close(this);
|
|
26
|
-
}
|
|
27
|
-
/** Requests the Expansion manager to toggle this item. */
|
|
28
|
-
toggle() {
|
|
29
|
-
this.inputs.expansionManager.toggle(this);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
/** Manages the expansion state of a list of items. */
|
|
33
|
-
class ListExpansion {
|
|
34
|
-
inputs;
|
|
35
|
-
/** A signal holding an array of ids of the currently expanded items. */
|
|
36
|
-
expandedIds;
|
|
37
|
-
constructor(inputs) {
|
|
38
|
-
this.inputs = inputs;
|
|
39
|
-
this.expandedIds = inputs.expandedIds;
|
|
40
|
-
}
|
|
41
|
-
/** Opens the specified item. */
|
|
42
|
-
open(item) {
|
|
43
|
-
if (!this.isExpandable(item))
|
|
44
|
-
return;
|
|
45
|
-
if (this.isExpanded(item))
|
|
46
|
-
return;
|
|
47
|
-
if (!this.inputs.multiExpandable()) {
|
|
48
|
-
this.closeAll();
|
|
49
|
-
}
|
|
50
|
-
this.expandedIds.update(ids => ids.concat(item.expansionId()));
|
|
51
|
-
}
|
|
52
|
-
/** Closes the specified item. */
|
|
53
|
-
close(item) {
|
|
54
|
-
if (this.isExpandable(item)) {
|
|
55
|
-
this.expandedIds.update(ids => ids.filter(id => id !== item.expansionId()));
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
/** Toggles the expansion state of the specified item. */
|
|
59
|
-
toggle(item) {
|
|
60
|
-
this.expandedIds().includes(item.expansionId()) ? this.close(item) : this.open(item);
|
|
61
|
-
}
|
|
62
|
-
/** Opens all focusable items in the list. */
|
|
63
|
-
openAll() {
|
|
64
|
-
if (this.inputs.multiExpandable()) {
|
|
65
|
-
for (const item of this.inputs.items()) {
|
|
66
|
-
this.open(item);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
/** Closes all focusable items in the list. */
|
|
71
|
-
closeAll() {
|
|
72
|
-
for (const item of this.inputs.items()) {
|
|
73
|
-
this.close(item);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
/** Checks whether the specified item is expandable / collapsible. */
|
|
77
|
-
isExpandable(item) {
|
|
78
|
-
return !this.inputs.disabled() && !item.disabled() && item.expandable();
|
|
79
|
-
}
|
|
80
|
-
/** Checks whether the specified item is currently expanded. */
|
|
81
|
-
isExpanded(item) {
|
|
82
|
-
return this.expandedIds().includes(item.expansionId());
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export { ExpansionControl, ListExpansion };
|
|
87
|
-
//# sourceMappingURL=expansion.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"expansion.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/cdk-experimental/ui-patterns/behaviors/expansion/expansion.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 */\nimport {computed} from '@angular/core';\nimport {SignalLike, WritableSignalLike} from '../signal-like/signal-like';\n\n/** Represents an item that can be expanded or collapsed. */\nexport interface ExpansionItem {\n /** Whether the item is expandable. */\n expandable: SignalLike<boolean>;\n\n /** Used to uniquely identify an expansion item. */\n expansionId: SignalLike<string>;\n\n /** Whether the expansion is disabled. */\n disabled: SignalLike<boolean>;\n}\n\nexport interface ExpansionControl extends ExpansionItem {}\n/**\n * Controls a single item's expansion state and interactions,\n * delegating actual state changes to an Expansion manager.\n */\nexport class ExpansionControl {\n /** Whether this specific item is currently expanded. Derived from the Expansion manager. */\n readonly isExpanded = computed(() => this.inputs.expansionManager.isExpanded(this));\n\n /** Whether this item can be expanded. */\n readonly isExpandable = computed(() => this.inputs.expansionManager.isExpandable(this));\n\n constructor(readonly inputs: ExpansionItem & {expansionManager: ListExpansion}) {\n this.expansionId = inputs.expansionId;\n this.expandable = inputs.expandable;\n this.disabled = inputs.disabled;\n }\n\n /** Requests the Expansopn manager to open this item. */\n open() {\n this.inputs.expansionManager.open(this);\n }\n\n /** Requests the Expansion manager to close this item. */\n close() {\n this.inputs.expansionManager.close(this);\n }\n\n /** Requests the Expansion manager to toggle this item. */\n toggle() {\n this.inputs.expansionManager.toggle(this);\n }\n}\n\n/** Represents the required inputs for an expansion behavior. */\nexport interface ListExpansionInputs {\n /** Whether multiple items can be expanded at once. */\n multiExpandable: SignalLike<boolean>;\n\n /** An array of ids of the currently expanded items. */\n expandedIds: WritableSignalLike<string[]>;\n\n /** An array of expansion items. */\n items: SignalLike<ExpansionItem[]>;\n\n /** Whether all expansions are disabled. */\n disabled: SignalLike<boolean>;\n}\n\n/** Manages the expansion state of a list of items. */\nexport class ListExpansion {\n /** A signal holding an array of ids of the currently expanded items. */\n expandedIds: WritableSignalLike<string[]>;\n\n constructor(readonly inputs: ListExpansionInputs) {\n this.expandedIds = inputs.expandedIds;\n }\n\n /** Opens the specified item. */\n open(item: ExpansionItem) {\n if (!this.isExpandable(item)) return;\n if (this.isExpanded(item)) return;\n if (!this.inputs.multiExpandable()) {\n this.closeAll();\n }\n this.expandedIds.update(ids => ids.concat(item.expansionId()));\n }\n\n /** Closes the specified item. */\n close(item: ExpansionItem) {\n if (this.isExpandable(item)) {\n this.expandedIds.update(ids => ids.filter(id => id !== item.expansionId()));\n }\n }\n\n /** Toggles the expansion state of the specified item. */\n toggle(item: ExpansionItem) {\n this.expandedIds().includes(item.expansionId()) ? this.close(item) : this.open(item);\n }\n\n /** Opens all focusable items in the list. */\n openAll() {\n if (this.inputs.multiExpandable()) {\n for (const item of this.inputs.items()) {\n this.open(item);\n }\n }\n }\n\n /** Closes all focusable items in the list. */\n closeAll() {\n for (const item of this.inputs.items()) {\n this.close(item);\n }\n }\n\n /** Checks whether the specified item is expandable / collapsible. */\n isExpandable(item: ExpansionItem) {\n return !this.inputs.disabled() && !item.disabled() && item.expandable();\n }\n\n /** Checks whether the specified item is currently expanded. */\n isExpanded(item: ExpansionItem): boolean {\n return this.expandedIds().includes(item.expansionId());\n }\n}\n"],"names":[],"m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,WAAW,EAAE,CAAC;;AAEzD;;;;"}
|
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
import { signal, computed } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
/** Bit flag representation of the possible modifier keys that can be present on an event. */
|
|
4
|
-
var Modifier;
|
|
5
|
-
(function (Modifier) {
|
|
6
|
-
Modifier[Modifier["None"] = 0] = "None";
|
|
7
|
-
Modifier[Modifier["Ctrl"] = 1] = "Ctrl";
|
|
8
|
-
Modifier[Modifier["Shift"] = 2] = "Shift";
|
|
9
|
-
Modifier[Modifier["Alt"] = 4] = "Alt";
|
|
10
|
-
Modifier[Modifier["Meta"] = 8] = "Meta";
|
|
11
|
-
Modifier["Any"] = "Any";
|
|
12
|
-
})(Modifier || (Modifier = {}));
|
|
13
|
-
/**
|
|
14
|
-
* Abstract base class for all event managers.
|
|
15
|
-
*
|
|
16
|
-
* Event managers are designed to normalize how event handlers are authored and create a safety net
|
|
17
|
-
* for common event handling gotchas like remembering to call preventDefault or stopPropagation.
|
|
18
|
-
*/
|
|
19
|
-
class EventManager {
|
|
20
|
-
configs = [];
|
|
21
|
-
/** Runs the handlers that match with the given event. */
|
|
22
|
-
handle(event) {
|
|
23
|
-
for (const config of this.configs) {
|
|
24
|
-
if (config.matcher(event)) {
|
|
25
|
-
config.handler(event);
|
|
26
|
-
if (config.preventDefault) {
|
|
27
|
-
event.preventDefault();
|
|
28
|
-
}
|
|
29
|
-
if (config.stopPropagation) {
|
|
30
|
-
event.stopPropagation();
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
/** Gets bit flag representation of the modifier keys present on the given event. */
|
|
37
|
-
function getModifiers(event) {
|
|
38
|
-
return ((+event.ctrlKey && Modifier.Ctrl) |
|
|
39
|
-
(+event.shiftKey && Modifier.Shift) |
|
|
40
|
-
(+event.altKey && Modifier.Alt) |
|
|
41
|
-
(+event.metaKey && Modifier.Meta));
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Checks if the given event has modifiers that are an exact match for any of the given modifier
|
|
45
|
-
* flag combinations.
|
|
46
|
-
*/
|
|
47
|
-
function hasModifiers(event, modifiers) {
|
|
48
|
-
const eventModifiers = getModifiers(event);
|
|
49
|
-
const modifiersList = Array.isArray(modifiers) ? modifiers : [modifiers];
|
|
50
|
-
if (modifiersList.includes(Modifier.Any)) {
|
|
51
|
-
return true;
|
|
52
|
-
}
|
|
53
|
-
return modifiersList.some(modifiers => eventModifiers === modifiers);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* An event manager that is specialized for handling keyboard events. By default this manager stops
|
|
58
|
-
* propagation and prevents default on all events it handles.
|
|
59
|
-
*/
|
|
60
|
-
class KeyboardEventManager extends EventManager {
|
|
61
|
-
options = {
|
|
62
|
-
preventDefault: true,
|
|
63
|
-
stopPropagation: true,
|
|
64
|
-
};
|
|
65
|
-
on(...args) {
|
|
66
|
-
const { modifiers, key, handler } = this._normalizeInputs(...args);
|
|
67
|
-
this.configs.push({
|
|
68
|
-
handler: handler,
|
|
69
|
-
matcher: event => this._isMatch(event, key, modifiers),
|
|
70
|
-
...this.options,
|
|
71
|
-
});
|
|
72
|
-
return this;
|
|
73
|
-
}
|
|
74
|
-
_normalizeInputs(...args) {
|
|
75
|
-
const key = args.length === 3 ? args[1] : args[0];
|
|
76
|
-
const handler = args.length === 3 ? args[2] : args[1];
|
|
77
|
-
const modifiers = args.length === 3 ? args[0] : Modifier.None;
|
|
78
|
-
return {
|
|
79
|
-
key: key,
|
|
80
|
-
handler: handler,
|
|
81
|
-
modifiers: modifiers,
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
_isMatch(event, key, modifiers) {
|
|
85
|
-
if (!hasModifiers(event, modifiers)) {
|
|
86
|
-
return false;
|
|
87
|
-
}
|
|
88
|
-
if (key instanceof RegExp) {
|
|
89
|
-
return key.test(event.key);
|
|
90
|
-
}
|
|
91
|
-
const keyStr = typeof key === 'string' ? key : key();
|
|
92
|
-
return keyStr.toLowerCase() === event.key.toLowerCase();
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* The different mouse buttons that may appear on a pointer event.
|
|
98
|
-
*/
|
|
99
|
-
var MouseButton;
|
|
100
|
-
(function (MouseButton) {
|
|
101
|
-
MouseButton[MouseButton["Main"] = 0] = "Main";
|
|
102
|
-
MouseButton[MouseButton["Auxiliary"] = 1] = "Auxiliary";
|
|
103
|
-
MouseButton[MouseButton["Secondary"] = 2] = "Secondary";
|
|
104
|
-
})(MouseButton || (MouseButton = {}));
|
|
105
|
-
/** An event manager that is specialized for handling pointer events. */
|
|
106
|
-
class PointerEventManager extends EventManager {
|
|
107
|
-
options = {
|
|
108
|
-
preventDefault: false,
|
|
109
|
-
stopPropagation: false,
|
|
110
|
-
};
|
|
111
|
-
on(...args) {
|
|
112
|
-
const { button, handler, modifiers } = this._normalizeInputs(...args);
|
|
113
|
-
this.configs.push({
|
|
114
|
-
handler,
|
|
115
|
-
matcher: event => this._isMatch(event, button, modifiers),
|
|
116
|
-
...this.options,
|
|
117
|
-
});
|
|
118
|
-
return this;
|
|
119
|
-
}
|
|
120
|
-
_normalizeInputs(...args) {
|
|
121
|
-
if (args.length === 3) {
|
|
122
|
-
return {
|
|
123
|
-
button: args[0],
|
|
124
|
-
modifiers: args[1],
|
|
125
|
-
handler: args[2],
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
if (typeof args[0] === 'number' && typeof args[1] === 'function') {
|
|
129
|
-
return {
|
|
130
|
-
button: MouseButton.Main,
|
|
131
|
-
modifiers: args[0],
|
|
132
|
-
handler: args[1],
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
return {
|
|
136
|
-
button: MouseButton.Main,
|
|
137
|
-
modifiers: Modifier.None,
|
|
138
|
-
handler: args[0],
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
_isMatch(event, button, modifiers) {
|
|
142
|
-
return button === (event.button ?? 0) && hasModifiers(event, modifiers);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/** Controls focus for a list of items. */
|
|
147
|
-
class ListFocus {
|
|
148
|
-
inputs;
|
|
149
|
-
/** The last item that was active. */
|
|
150
|
-
prevActiveItem = signal(undefined);
|
|
151
|
-
/** The index of the last item that was active. */
|
|
152
|
-
prevActiveIndex = computed(() => {
|
|
153
|
-
return this.prevActiveItem() ? this.inputs.items().indexOf(this.prevActiveItem()) : -1;
|
|
154
|
-
});
|
|
155
|
-
/** The current active index in the list. */
|
|
156
|
-
activeIndex = computed(() => {
|
|
157
|
-
return this.inputs.activeItem() ? this.inputs.items().indexOf(this.inputs.activeItem()) : -1;
|
|
158
|
-
});
|
|
159
|
-
constructor(inputs) {
|
|
160
|
-
this.inputs = inputs;
|
|
161
|
-
}
|
|
162
|
-
/** Whether the list is in a disabled state. */
|
|
163
|
-
isListDisabled() {
|
|
164
|
-
return this.inputs.disabled() || this.inputs.items().every(i => i.disabled());
|
|
165
|
-
}
|
|
166
|
-
/** The id of the current active item. */
|
|
167
|
-
getActiveDescendant() {
|
|
168
|
-
if (this.isListDisabled()) {
|
|
169
|
-
return undefined;
|
|
170
|
-
}
|
|
171
|
-
if (this.inputs.focusMode() === 'roving') {
|
|
172
|
-
return undefined;
|
|
173
|
-
}
|
|
174
|
-
return this.inputs.activeItem()?.id() ?? undefined;
|
|
175
|
-
}
|
|
176
|
-
/** The tabindex for the list. */
|
|
177
|
-
getListTabindex() {
|
|
178
|
-
if (this.isListDisabled()) {
|
|
179
|
-
return 0;
|
|
180
|
-
}
|
|
181
|
-
return this.inputs.focusMode() === 'activedescendant' ? 0 : -1;
|
|
182
|
-
}
|
|
183
|
-
/** Returns the tabindex for the given item. */
|
|
184
|
-
getItemTabindex(item) {
|
|
185
|
-
if (this.isListDisabled()) {
|
|
186
|
-
return -1;
|
|
187
|
-
}
|
|
188
|
-
if (this.inputs.focusMode() === 'activedescendant') {
|
|
189
|
-
return -1;
|
|
190
|
-
}
|
|
191
|
-
return this.inputs.activeItem() === item ? 0 : -1;
|
|
192
|
-
}
|
|
193
|
-
/** Moves focus to the given item if it is focusable. */
|
|
194
|
-
focus(item) {
|
|
195
|
-
if (this.isListDisabled() || !this.isFocusable(item)) {
|
|
196
|
-
return false;
|
|
197
|
-
}
|
|
198
|
-
this.prevActiveItem.set(this.inputs.activeItem());
|
|
199
|
-
this.inputs.activeItem.set(item);
|
|
200
|
-
this.inputs.focusMode() === 'roving' ? item.element().focus() : this.inputs.element()?.focus();
|
|
201
|
-
return true;
|
|
202
|
-
}
|
|
203
|
-
/** Returns true if the given item can be navigated to. */
|
|
204
|
-
isFocusable(item) {
|
|
205
|
-
return !item.disabled() || !this.inputs.skipDisabled();
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/** Controls navigation for a list of items. */
|
|
210
|
-
class ListNavigation {
|
|
211
|
-
inputs;
|
|
212
|
-
constructor(inputs) {
|
|
213
|
-
this.inputs = inputs;
|
|
214
|
-
}
|
|
215
|
-
/** Navigates to the given item. */
|
|
216
|
-
goto(item) {
|
|
217
|
-
return item ? this.inputs.focusManager.focus(item) : false;
|
|
218
|
-
}
|
|
219
|
-
/** Navigates to the next item in the list. */
|
|
220
|
-
next() {
|
|
221
|
-
return this._advance(1);
|
|
222
|
-
}
|
|
223
|
-
/** Navigates to the previous item in the list. */
|
|
224
|
-
prev() {
|
|
225
|
-
return this._advance(-1);
|
|
226
|
-
}
|
|
227
|
-
/** Navigates to the first item in the list. */
|
|
228
|
-
first() {
|
|
229
|
-
const item = this.inputs.items().find(i => this.inputs.focusManager.isFocusable(i));
|
|
230
|
-
return item ? this.goto(item) : false;
|
|
231
|
-
}
|
|
232
|
-
/** Navigates to the last item in the list. */
|
|
233
|
-
last() {
|
|
234
|
-
const items = this.inputs.items();
|
|
235
|
-
for (let i = items.length - 1; i >= 0; i--) {
|
|
236
|
-
if (this.inputs.focusManager.isFocusable(items[i])) {
|
|
237
|
-
return this.goto(items[i]);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
return false;
|
|
241
|
-
}
|
|
242
|
-
/** Advances to the next or previous focusable item in the list based on the given delta. */
|
|
243
|
-
_advance(delta) {
|
|
244
|
-
const items = this.inputs.items();
|
|
245
|
-
const itemCount = items.length;
|
|
246
|
-
const startIndex = this.inputs.focusManager.activeIndex();
|
|
247
|
-
const step = (i) => this.inputs.wrap() ? (i + delta + itemCount) % itemCount : i + delta;
|
|
248
|
-
// If wrapping is enabled, this loop ultimately terminates when `i` gets back to `startIndex`
|
|
249
|
-
// in the case that all options are disabled. If wrapping is disabled, the loop terminates
|
|
250
|
-
// when the index goes out of bounds.
|
|
251
|
-
for (let i = step(startIndex); i !== startIndex && i < itemCount && i >= 0; i = step(i)) {
|
|
252
|
-
if (this.inputs.focusManager.isFocusable(items[i])) {
|
|
253
|
-
return this.goto(items[i]);
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
return false;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
export { KeyboardEventManager, ListFocus, ListNavigation, Modifier, PointerEventManager };
|
|
261
|
-
//# sourceMappingURL=list-navigation.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-navigation.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/cdk-experimental/ui-patterns/behaviors/event-manager/event-manager.ts","../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/cdk-experimental/ui-patterns/behaviors/event-manager/keyboard-event-manager.ts","../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/cdk-experimental/ui-patterns/behaviors/event-manager/pointer-event-manager.ts","../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/cdk-experimental/ui-patterns/behaviors/list-focus/list-focus.ts","../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/cdk-experimental/ui-patterns/behaviors/list-navigation/list-navigation.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 Modifier {\n None = 0,\n Ctrl = 0b1,\n Shift = 0b10,\n Alt = 0b100,\n Meta = 0b1000,\n Any = 'Any',\n}\n\nexport type ModifierInputs = Modifier | Modifier[];\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 && Modifier.Ctrl) |\n (+event.shiftKey && Modifier.Shift) |\n (+event.altKey && Modifier.Alt) |\n (+event.metaKey && Modifier.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\n if (modifiersList.includes(Modifier.Any)) {\n return true;\n }\n\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 Modifier,\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] : Modifier.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 Modifier,\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: Modifier.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 {computed, 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 may receive focus. */\nexport interface ListFocusItem {\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 /** Whether an item is disabled. */\n disabled: SignalLike<boolean>;\n\n /** The index of the item in the list. */\n index: SignalLike<number>;\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 /** Whether the list is disabled. */\n disabled: SignalLike<boolean>;\n\n /** The items in the list. */\n items: SignalLike<T[]>;\n\n /** The active item. */\n activeItem: WritableSignalLike<T | undefined>;\n\n /** Whether disabled items in the list should be skipped when navigating. */\n skipDisabled: SignalLike<boolean>;\n\n element: SignalLike<HTMLElement | undefined>;\n}\n\n/** Controls focus for a list of items. */\nexport class ListFocus<T extends ListFocusItem> {\n /** The last item that was active. */\n prevActiveItem = signal<T | undefined>(undefined);\n\n /** The index of the last item that was active. */\n prevActiveIndex = computed(() => {\n return this.prevActiveItem() ? this.inputs.items().indexOf(this.prevActiveItem()!) : -1;\n });\n\n /** The current active index in the list. */\n activeIndex = computed(() => {\n return this.inputs.activeItem() ? this.inputs.items().indexOf(this.inputs.activeItem()!) : -1;\n });\n\n constructor(readonly inputs: ListFocusInputs<T>) {}\n\n /** Whether the list is in a disabled state. */\n isListDisabled(): boolean {\n return this.inputs.disabled() || this.inputs.items().every(i => i.disabled());\n }\n\n /** The id of the current active item. */\n getActiveDescendant(): string | undefined {\n if (this.isListDisabled()) {\n return undefined;\n }\n if (this.inputs.focusMode() === 'roving') {\n return undefined;\n }\n return this.inputs.activeItem()?.id() ?? undefined;\n }\n\n /** The tabindex for the list. */\n getListTabindex(): -1 | 0 {\n if (this.isListDisabled()) {\n return 0;\n }\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.isListDisabled()) {\n return -1;\n }\n if (this.inputs.focusMode() === 'activedescendant') {\n return -1;\n }\n return this.inputs.activeItem() === item ? 0 : -1;\n }\n\n /** Moves focus to the given item if it is focusable. */\n focus(item: T): boolean {\n if (this.isListDisabled() || !this.isFocusable(item)) {\n return false;\n }\n\n this.prevActiveItem.set(this.inputs.activeItem());\n this.inputs.activeItem.set(item);\n\n this.inputs.focusMode() === 'roving' ? item.element().focus() : this.inputs.element()?.focus();\n\n return true;\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","/**\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 {ListFocus, ListFocusInputs, ListFocusItem} from '../list-focus/list-focus';\n\n/** Represents an item in a collection, such as a listbox option, than can be navigated to. */\nexport interface ListNavigationItem extends ListFocusItem {}\n\n/** Represents the required inputs for a collection that has navigable items. */\nexport interface ListNavigationInputs<T extends ListNavigationItem> extends ListFocusInputs<T> {\n /** Whether focus should wrap when navigating. */\n wrap: SignalLike<boolean>;\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 constructor(readonly inputs: ListNavigationInputs<T> & {focusManager: ListFocus<T>}) {}\n\n /** Navigates to the given item. */\n goto(item?: T): boolean {\n return item ? this.inputs.focusManager.focus(item) : false;\n }\n\n /** Navigates to the next item in the list. */\n next(): boolean {\n return this._advance(1);\n }\n\n /** Navigates to the previous item in the list. */\n prev(): boolean {\n return this._advance(-1);\n }\n\n /** Navigates to the first item in the list. */\n first(): boolean {\n const item = this.inputs.items().find(i => this.inputs.focusManager.isFocusable(i));\n return item ? this.goto(item) : false;\n }\n\n /** Navigates to the last item in the list. */\n last(): boolean {\n const items = this.inputs.items();\n for (let i = items.length - 1; i >= 0; i--) {\n if (this.inputs.focusManager.isFocusable(items[i])) {\n return this.goto(items[i]);\n }\n }\n return false;\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): boolean {\n const items = this.inputs.items();\n const itemCount = items.length;\n const startIndex = this.inputs.focusManager.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.inputs.focusManager.isFocusable(items[i])) {\n return this.goto(items[i]);\n }\n }\n\n return false;\n }\n}\n"],"names":[],"mappings":";;AA0CA;IACY;AAAZ,CAAA,UAAY,QAAQ,EAAA;AAClB,IAAA,QAAA,CAAA,QAAA,CAAA,MAAA,CAAA,GAAA,CAAA,CAAA,GAAA,MAAQ;AACR,IAAA,QAAA,CAAA,QAAA,CAAA,MAAA,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