@angular/aria 22.2.0-next.2 → 22.2.0-next.3
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/_deferred-content-chunk.mjs +6 -6
- package/fesm2022/accordion.mjs +12 -12
- package/fesm2022/aria.mjs +1 -1
- package/fesm2022/aria.mjs.map +1 -1
- package/fesm2022/combobox.mjs +9 -9
- package/fesm2022/grid.mjs +12 -12
- package/fesm2022/listbox.mjs +6 -6
- package/fesm2022/menu.mjs +15 -15
- package/fesm2022/tabs.mjs +15 -15
- package/fesm2022/toolbar.mjs +9 -9
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tree.mjs +9 -9
- package/package.json +2 -2
- package/types/_accordion-chunk.d.ts +2 -2
- package/types/_collection-chunk.d.ts +1 -1
- package/types/_grid-chunk.d.ts +4 -4
- package/types/_list-chunk.d.ts +2 -2
- package/types/_listbox-chunk.d.ts +3 -3
- package/types/_menu-chunk.d.ts +4 -4
- package/types/_tabs-chunk.d.ts +4 -4
- package/types/_toolbar-chunk.d.ts +2 -2
- package/types/_tree-chunk.d.ts +7 -7
- package/types/combobox.d.ts +1 -1
- package/types/grid.d.ts +6 -6
- package/types/listbox.d.ts +3 -3
- package/types/menu.d.ts +3 -3
- package/types/private.d.ts +3 -3
- package/types/tabs.d.ts +3 -3
- package/types/toolbar.d.ts +1 -1
- package/types/tree.d.ts +5 -5
package/fesm2022/toolbar.mjs
CHANGED
|
@@ -74,7 +74,7 @@ class Toolbar {
|
|
|
74
74
|
}
|
|
75
75
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
76
76
|
minVersion: "12.0.0",
|
|
77
|
-
version: "22.2.0-next.
|
|
77
|
+
version: "22.2.0-next.3",
|
|
78
78
|
ngImport: i0,
|
|
79
79
|
type: Toolbar,
|
|
80
80
|
deps: [],
|
|
@@ -82,7 +82,7 @@ class Toolbar {
|
|
|
82
82
|
});
|
|
83
83
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
84
84
|
minVersion: "17.1.0",
|
|
85
|
-
version: "22.2.0-next.
|
|
85
|
+
version: "22.2.0-next.3",
|
|
86
86
|
type: Toolbar,
|
|
87
87
|
isStandalone: true,
|
|
88
88
|
selector: "[ngToolbar]",
|
|
@@ -148,7 +148,7 @@ class Toolbar {
|
|
|
148
148
|
}
|
|
149
149
|
i0.ɵɵngDeclareClassMetadata({
|
|
150
150
|
minVersion: "12.0.0",
|
|
151
|
-
version: "22.2.0-next.
|
|
151
|
+
version: "22.2.0-next.3",
|
|
152
152
|
ngImport: i0,
|
|
153
153
|
type: Toolbar,
|
|
154
154
|
decorators: [{
|
|
@@ -264,7 +264,7 @@ class ToolbarWidget {
|
|
|
264
264
|
}
|
|
265
265
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
266
266
|
minVersion: "12.0.0",
|
|
267
|
-
version: "22.2.0-next.
|
|
267
|
+
version: "22.2.0-next.3",
|
|
268
268
|
ngImport: i0,
|
|
269
269
|
type: ToolbarWidget,
|
|
270
270
|
deps: [],
|
|
@@ -272,7 +272,7 @@ class ToolbarWidget {
|
|
|
272
272
|
});
|
|
273
273
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
274
274
|
minVersion: "17.1.0",
|
|
275
|
-
version: "22.2.0-next.
|
|
275
|
+
version: "22.2.0-next.3",
|
|
276
276
|
type: ToolbarWidget,
|
|
277
277
|
isStandalone: true,
|
|
278
278
|
selector: "[ngToolbarWidget]",
|
|
@@ -318,7 +318,7 @@ class ToolbarWidget {
|
|
|
318
318
|
}
|
|
319
319
|
i0.ɵɵngDeclareClassMetadata({
|
|
320
320
|
minVersion: "12.0.0",
|
|
321
|
-
version: "22.2.0-next.
|
|
321
|
+
version: "22.2.0-next.3",
|
|
322
322
|
ngImport: i0,
|
|
323
323
|
type: ToolbarWidget,
|
|
324
324
|
decorators: [{
|
|
@@ -413,7 +413,7 @@ class ToolbarWidgetGroup {
|
|
|
413
413
|
}
|
|
414
414
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
415
415
|
minVersion: "12.0.0",
|
|
416
|
-
version: "22.2.0-next.
|
|
416
|
+
version: "22.2.0-next.3",
|
|
417
417
|
ngImport: i0,
|
|
418
418
|
type: ToolbarWidgetGroup,
|
|
419
419
|
deps: [],
|
|
@@ -421,7 +421,7 @@ class ToolbarWidgetGroup {
|
|
|
421
421
|
});
|
|
422
422
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
423
423
|
minVersion: "17.2.0",
|
|
424
|
-
version: "22.2.0-next.
|
|
424
|
+
version: "22.2.0-next.3",
|
|
425
425
|
type: ToolbarWidgetGroup,
|
|
426
426
|
isStandalone: true,
|
|
427
427
|
selector: "[ngToolbarWidgetGroup]",
|
|
@@ -457,7 +457,7 @@ class ToolbarWidgetGroup {
|
|
|
457
457
|
}
|
|
458
458
|
i0.ɵɵngDeclareClassMetadata({
|
|
459
459
|
minVersion: "12.0.0",
|
|
460
|
-
version: "22.2.0-next.
|
|
460
|
+
version: "22.2.0-next.3",
|
|
461
461
|
ngImport: i0,
|
|
462
462
|
type: ToolbarWidgetGroup,
|
|
463
463
|
decorators: [{
|
package/fesm2022/toolbar.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/toolbar/toolbar.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/toolbar/toolbar-tokens.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/toolbar/toolbar-widget.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/toolbar/toolbar-widget-group.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 afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n computed,\n Directive,\n ElementRef,\n inject,\n input,\n model,\n OnDestroy,\n signal,\n} from '@angular/core';\nimport {ToolbarPattern, ToolbarWidgetPattern, SortedCollection, reportViolations} from '../private';\nimport {Directionality} from '@angular/cdk/bidi';\nimport type {ToolbarWidget} from './toolbar-widget';\n\n/**\n * A toolbar widget container for a group of interactive widgets, such as\n * buttons or radio groups. It provides a single point of reference for keyboard navigation\n * and focus management. It supports various orientations and disabled states.\n *\n * ```html\n * <div ngToolbar orientation=\"horizontal\" [wrap]=\"true\">\n * <button ngToolbarWidget value=\"save\">Save</button>\n * <button ngToolbarWidget value=\"print\">Print</button>\n *\n * <div ngToolbarWidgetGroup [(value)]=\"selectedAlignment\">\n * <button ngToolbarWidget value=\"left\">Left</button>\n * <button ngToolbarWidget value=\"center\">Center</button>\n * <button ngToolbarWidget value=\"right\">Right</button>\n * </div>\n * </div>\n * ```\n *\n * @see [Toolbar](guide/aria/toolbar)\n */\n@Directive({\n selector: '[ngToolbar]',\n exportAs: 'ngToolbar',\n host: {\n 'role': 'toolbar',\n '[attr.tabindex]': '_pattern.tabIndex()',\n '[attr.aria-disabled]': '_pattern.disabled()',\n '[attr.aria-orientation]': '_pattern.orientation()',\n '(keydown)': '_pattern.onKeydown($event)',\n '(click)': '_pattern.onClick($event)',\n '(pointerdown)': '_pattern.onPointerdown($event)',\n '(focusin)': '_pattern.onFocusIn()',\n },\n})\nexport class Toolbar<V> implements OnDestroy {\n /** A reference to the host element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** A reference to the host element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The collection of widgets in the toolbar. */\n readonly _collection = new SortedCollection<ToolbarWidget<V>>();\n\n /** Text direction. */\n readonly textDirection = inject(Directionality).valueSignal;\n\n /** Sorted UIPatterns of the child widgets */\n readonly _itemPatterns = computed<ToolbarWidgetPattern<V>[]>(() =>\n this._collection.orderedItems().map(widget => widget._pattern),\n );\n\n /** Whether the toolbar is vertically or horizontally oriented. */\n readonly orientation = input<'vertical' | 'horizontal'>('horizontal');\n\n /**\n * Whether to allow disabled items to receive focus. When `true`, disabled items are\n * focusable but not interactive. When `false`, disabled items are skipped during navigation.\n */\n readonly softDisabled = input(true, {transform: booleanAttribute});\n\n /** Whether the toolbar is disabled. */\n readonly disabled = input(false, {transform: booleanAttribute});\n\n /** Whether focus should wrap when navigating. */\n readonly wrap = input(true, {transform: booleanAttribute});\n\n /** The values of the selected widgets within the toolbar. */\n readonly value = model<V[]>([]);\n\n /** The toolbar UIPattern. */\n readonly _pattern: ToolbarPattern<V> = new ToolbarPattern<V>({\n ...this,\n items: this._itemPatterns,\n activeItem: signal(undefined),\n textDirection: this.textDirection,\n element: () => this._elementRef.nativeElement,\n getItem: e => this._getItem(e),\n value: this.value,\n });\n\n constructor() {\n afterRenderEffect({write: () => this._pattern.setDefaultStateEffect()});\n\n // Check for any violations after the DOM has been updated.\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n afterRenderEffect({\n read: () => {\n reportViolations(this._pattern.validate(), this.element);\n },\n });\n }\n\n afterNextRender(() => {\n this._collection.startObserving(this.element);\n });\n }\n\n ngOnDestroy() {\n this._collection.stopObserving();\n }\n\n /** Finds the toolbar item associated with a given element. */\n private _getItem(element: Element) {\n return this._itemPatterns().find(item => item.element()?.contains(element));\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {InjectionToken} from '@angular/core';\nimport type {ToolbarWidgetGroup} from './toolbar-widget-group';\n\n/** Token used to provide the `ToolbarWidgetGroup` directive. */\nexport const TOOLBAR_WIDGET_GROUP = new InjectionToken<ToolbarWidgetGroup<unknown>>(\n 'TOOLBAR_WIDGET_GROUP',\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 Directive,\n ElementRef,\n inject,\n computed,\n input,\n booleanAttribute,\n OnInit,\n OnDestroy,\n} from '@angular/core';\nimport {\n ToolbarWidgetPattern,\n ToolbarWidgetGroupPattern,\n SignalLike,\n ToolbarPattern,\n} from '../private';\nimport {_IdGenerator} from '@angular/cdk/a11y';\nimport {Toolbar} from './toolbar';\nimport {TOOLBAR_WIDGET_GROUP} from './toolbar-tokens';\nimport type {ToolbarWidgetGroup} from './toolbar-widget-group';\n\n/**\n * A widget within a toolbar.\n *\n * The `ngToolbarWidget` directive should be applied to any native HTML element that acts\n * as an interactive widget within an `ngToolbar` or `ngToolbarWidgetGroup`. It enables\n * keyboard navigation and selection within the toolbar.\n *\n * ```html\n * <button ngToolbarWidget value=\"action-id\" [disabled]=\"isDisabled\">\n * Perform Action\n * </button>\n * ```\n *\n * @see [Toolbar](guide/aria/toolbar)\n */\n@Directive({\n selector: '[ngToolbarWidget]',\n exportAs: 'ngToolbarWidget',\n host: {\n // Ensure the attribute is applied even when used as a host directive.\n 'ngToolbarWidget': '',\n '[attr.data-active]': 'active()',\n '[attr.tabindex]': '_pattern.tabIndex()',\n '[attr.inert]': 'hardDisabled() ? true : null',\n '[attr.disabled]': 'hardDisabled() ? true : null',\n '[attr.aria-disabled]': '_pattern.disabled()',\n '[id]': '_pattern.id()',\n },\n})\nexport class ToolbarWidget<V> implements OnInit, OnDestroy {\n /** A reference to the host element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** A reference to the host element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The parent Toolbar. */\n private readonly _toolbar = inject<Toolbar<V>>(Toolbar);\n\n /** A unique identifier for the widget. */\n readonly id = input(inject(_IdGenerator).getId('ng-toolbar-widget-', true));\n\n /** The parent Toolbar UIPattern. */\n readonly _toolbarPattern = computed<ToolbarPattern<V>>(() => this._toolbar._pattern);\n\n /** Whether the widget is disabled. */\n readonly disabled = input(false, {transform: booleanAttribute});\n\n /** Whether the widget is 'hard' disabled, which is different from `aria-disabled`. A hard disabled widget cannot receive focus. */\n readonly hardDisabled = computed(() => this._pattern.disabled() && !this._toolbar.softDisabled());\n\n /** The optional ToolbarWidgetGroup this widget belongs to. */\n readonly _group = inject<ToolbarWidgetGroup<V>>(TOOLBAR_WIDGET_GROUP, {optional: true});\n\n /** The value associated with the widget. */\n readonly value = input.required<V>();\n\n /** Whether the widget is currently active (focused). */\n readonly active = computed(() => this._pattern.active());\n\n /** Whether the widget is selected (only relevant in a selection group). */\n readonly selected = () => this._pattern.selected();\n\n private readonly _groupPattern: SignalLike<\n ToolbarWidgetGroupPattern<ToolbarWidgetPattern<V>, V> | undefined\n > = () => this._group?._pattern;\n\n /** The ToolbarWidget UIPattern. */\n readonly _pattern = new ToolbarWidgetPattern<V>({\n ...this,\n group: this._groupPattern,\n toolbar: this._toolbarPattern,\n id: this.id,\n value: this.value,\n element: () => this.element,\n });\n\n ngOnInit() {\n this._toolbar._collection.register(this);\n }\n\n ngOnDestroy() {\n this._toolbar._collection.unregister(this);\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 Directive,\n ElementRef,\n inject,\n computed,\n input,\n booleanAttribute,\n contentChildren,\n afterRenderEffect,\n} from '@angular/core';\nimport {ToolbarWidgetPattern, ToolbarWidgetGroupPattern, reportViolations} from '../private';\nimport {Toolbar} from './toolbar';\nimport {ToolbarWidget} from './toolbar-widget';\nimport {TOOLBAR_WIDGET_GROUP} from './toolbar-tokens';\n\n/**\n * A directive that groups toolbar widgets, used for more complex widgets like radio groups\n * that have their own internal navigation.\n *\n * @see [Toolbar](guide/aria/toolbar)\n */\n@Directive({\n selector: '[ngToolbarWidgetGroup]',\n exportAs: 'ngToolbarWidgetGroup',\n providers: [{provide: TOOLBAR_WIDGET_GROUP, useExisting: ToolbarWidgetGroup}],\n})\nexport class ToolbarWidgetGroup<V> {\n /** A reference to the host element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** A reference to the host element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The parent Toolbar. */\n private readonly _toolbar = inject<Toolbar<V>>(Toolbar, {optional: true});\n\n /** The list of child widgets within the group. */\n private readonly _widgets = contentChildren(ToolbarWidget, {descendants: true});\n\n /** The parent Toolbar UIPattern. */\n private readonly _toolbarPattern = computed(() => this._toolbar?._pattern);\n\n /** Whether the widget group is disabled. */\n readonly disabled = input(false, {transform: booleanAttribute});\n\n /** The list of toolbar items within the group. */\n private readonly _itemPatterns = () => this._widgets().map(w => w._pattern);\n\n /** Whether the group allows multiple widgets to be selected. */\n readonly multi = input(false, {transform: booleanAttribute});\n\n /** The ToolbarWidgetGroup UIPattern. */\n readonly _pattern = new ToolbarWidgetGroupPattern<ToolbarWidgetPattern<V>, V>({\n ...this,\n items: this._itemPatterns,\n toolbar: this._toolbarPattern,\n });\n\n constructor() {\n // Check for any violations after the DOM has been updated.\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n afterRenderEffect({\n read: () => {\n const violations: string[] = [];\n if (!this._toolbar) {\n violations.push('ngToolbarWidgetGroup must be placed inside an ngToolbar container.');\n }\n reportViolations(violations, this.element);\n },\n });\n }\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;MA2Da,OAAO,CAAA;AAED,EAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;AAGxC,EAAA,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,aAA4B;AAGvD,EAAA,WAAW,GAAG,IAAI,gBAAgB,EAAoB;AAGtD,EAAA,aAAa,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC,WAAW;EAGlD,aAAa,GAAG,QAAQ,CAA4B,MAC3D,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC,GAAG,CAAC,MAAM,IAAI,MAAM,CAAC,QAAQ,CAAC;;WAC/D;EAGQ,WAAW,GAAG,KAAK,CAA4B,YAAY;;WAAC;AAM5D,EAAA,YAAY,GAAG,KAAK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uild-ST-fdfa778d11ba/bin/src/aria/toolbar/toolbar.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/toolbar/toolbar-tokens.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/toolbar/toolbar-widget.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/toolbar/toolbar-widget-group.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 afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n computed,\n Directive,\n ElementRef,\n inject,\n input,\n model,\n OnDestroy,\n signal,\n} from '@angular/core';\nimport {ToolbarPattern, ToolbarWidgetPattern, SortedCollection, reportViolations} from '../private';\nimport {Directionality} from '@angular/cdk/bidi';\nimport type {ToolbarWidget} from './toolbar-widget';\n\n/**\n * A toolbar widget container for a group of interactive widgets, such as\n * buttons or radio groups. It provides a single point of reference for keyboard navigation\n * and focus management. It supports various orientations and disabled states.\n *\n * ```html\n * <div ngToolbar orientation=\"horizontal\" [wrap]=\"true\">\n * <button ngToolbarWidget value=\"save\">Save</button>\n * <button ngToolbarWidget value=\"print\">Print</button>\n *\n * <div ngToolbarWidgetGroup [(value)]=\"selectedAlignment\">\n * <button ngToolbarWidget value=\"left\">Left</button>\n * <button ngToolbarWidget value=\"center\">Center</button>\n * <button ngToolbarWidget value=\"right\">Right</button>\n * </div>\n * </div>\n * ```\n *\n * @see [Toolbar](guide/aria/toolbar)\n */\n@Directive({\n selector: '[ngToolbar]',\n exportAs: 'ngToolbar',\n host: {\n 'role': 'toolbar',\n '[attr.tabindex]': '_pattern.tabIndex()',\n '[attr.aria-disabled]': '_pattern.disabled()',\n '[attr.aria-orientation]': '_pattern.orientation()',\n '(keydown)': '_pattern.onKeydown($event)',\n '(click)': '_pattern.onClick($event)',\n '(pointerdown)': '_pattern.onPointerdown($event)',\n '(focusin)': '_pattern.onFocusIn()',\n },\n})\nexport class Toolbar<V> implements OnDestroy {\n /** A reference to the host element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** A reference to the host element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The collection of widgets in the toolbar. */\n readonly _collection = new SortedCollection<ToolbarWidget<V>>();\n\n /** Text direction. */\n readonly textDirection = inject(Directionality).valueSignal;\n\n /** Sorted UIPatterns of the child widgets */\n readonly _itemPatterns = computed<ToolbarWidgetPattern<V>[]>(() =>\n this._collection.orderedItems().map(widget => widget._pattern),\n );\n\n /** Whether the toolbar is vertically or horizontally oriented. */\n readonly orientation = input<'vertical' | 'horizontal'>('horizontal');\n\n /**\n * Whether to allow disabled items to receive focus. When `true`, disabled items are\n * focusable but not interactive. When `false`, disabled items are skipped during navigation.\n */\n readonly softDisabled = input(true, {transform: booleanAttribute});\n\n /** Whether the toolbar is disabled. */\n readonly disabled = input(false, {transform: booleanAttribute});\n\n /** Whether focus should wrap when navigating. */\n readonly wrap = input(true, {transform: booleanAttribute});\n\n /** The values of the selected widgets within the toolbar. */\n readonly value = model<V[]>([]);\n\n /** The toolbar UIPattern. */\n readonly _pattern: ToolbarPattern<V> = new ToolbarPattern<V>({\n ...this,\n items: this._itemPatterns,\n activeItem: signal(undefined),\n textDirection: this.textDirection,\n element: () => this._elementRef.nativeElement,\n getItem: e => this._getItem(e),\n value: this.value,\n });\n\n constructor() {\n afterRenderEffect({write: () => this._pattern.setDefaultStateEffect()});\n\n // Check for any violations after the DOM has been updated.\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n afterRenderEffect({\n read: () => {\n reportViolations(this._pattern.validate(), this.element);\n },\n });\n }\n\n afterNextRender(() => {\n this._collection.startObserving(this.element);\n });\n }\n\n ngOnDestroy() {\n this._collection.stopObserving();\n }\n\n /** Finds the toolbar item associated with a given element. */\n private _getItem(element: Element) {\n return this._itemPatterns().find(item => item.element()?.contains(element));\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {InjectionToken} from '@angular/core';\nimport type {ToolbarWidgetGroup} from './toolbar-widget-group';\n\n/** Token used to provide the `ToolbarWidgetGroup` directive. */\nexport const TOOLBAR_WIDGET_GROUP = new InjectionToken<ToolbarWidgetGroup<unknown>>(\n 'TOOLBAR_WIDGET_GROUP',\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 Directive,\n ElementRef,\n inject,\n computed,\n input,\n booleanAttribute,\n OnInit,\n OnDestroy,\n} from '@angular/core';\nimport {\n ToolbarWidgetPattern,\n ToolbarWidgetGroupPattern,\n SignalLike,\n ToolbarPattern,\n} from '../private';\nimport {_IdGenerator} from '@angular/cdk/a11y';\nimport {Toolbar} from './toolbar';\nimport {TOOLBAR_WIDGET_GROUP} from './toolbar-tokens';\nimport type {ToolbarWidgetGroup} from './toolbar-widget-group';\n\n/**\n * A widget within a toolbar.\n *\n * The `ngToolbarWidget` directive should be applied to any native HTML element that acts\n * as an interactive widget within an `ngToolbar` or `ngToolbarWidgetGroup`. It enables\n * keyboard navigation and selection within the toolbar.\n *\n * ```html\n * <button ngToolbarWidget value=\"action-id\" [disabled]=\"isDisabled\">\n * Perform Action\n * </button>\n * ```\n *\n * @see [Toolbar](guide/aria/toolbar)\n */\n@Directive({\n selector: '[ngToolbarWidget]',\n exportAs: 'ngToolbarWidget',\n host: {\n // Ensure the attribute is applied even when used as a host directive.\n 'ngToolbarWidget': '',\n '[attr.data-active]': 'active()',\n '[attr.tabindex]': '_pattern.tabIndex()',\n '[attr.inert]': 'hardDisabled() ? true : null',\n '[attr.disabled]': 'hardDisabled() ? true : null',\n '[attr.aria-disabled]': '_pattern.disabled()',\n '[id]': '_pattern.id()',\n },\n})\nexport class ToolbarWidget<V> implements OnInit, OnDestroy {\n /** A reference to the host element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** A reference to the host element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The parent Toolbar. */\n private readonly _toolbar = inject<Toolbar<V>>(Toolbar);\n\n /** A unique identifier for the widget. */\n readonly id = input(inject(_IdGenerator).getId('ng-toolbar-widget-', true));\n\n /** The parent Toolbar UIPattern. */\n readonly _toolbarPattern = computed<ToolbarPattern<V>>(() => this._toolbar._pattern);\n\n /** Whether the widget is disabled. */\n readonly disabled = input(false, {transform: booleanAttribute});\n\n /** Whether the widget is 'hard' disabled, which is different from `aria-disabled`. A hard disabled widget cannot receive focus. */\n readonly hardDisabled = computed(() => this._pattern.disabled() && !this._toolbar.softDisabled());\n\n /** The optional ToolbarWidgetGroup this widget belongs to. */\n readonly _group = inject<ToolbarWidgetGroup<V>>(TOOLBAR_WIDGET_GROUP, {optional: true});\n\n /** The value associated with the widget. */\n readonly value = input.required<V>();\n\n /** Whether the widget is currently active (focused). */\n readonly active = computed(() => this._pattern.active());\n\n /** Whether the widget is selected (only relevant in a selection group). */\n readonly selected = () => this._pattern.selected();\n\n private readonly _groupPattern: SignalLike<\n ToolbarWidgetGroupPattern<ToolbarWidgetPattern<V>, V> | undefined\n > = () => this._group?._pattern;\n\n /** The ToolbarWidget UIPattern. */\n readonly _pattern = new ToolbarWidgetPattern<V>({\n ...this,\n group: this._groupPattern,\n toolbar: this._toolbarPattern,\n id: this.id,\n value: this.value,\n element: () => this.element,\n });\n\n ngOnInit() {\n this._toolbar._collection.register(this);\n }\n\n ngOnDestroy() {\n this._toolbar._collection.unregister(this);\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 Directive,\n ElementRef,\n inject,\n computed,\n input,\n booleanAttribute,\n contentChildren,\n afterRenderEffect,\n} from '@angular/core';\nimport {ToolbarWidgetPattern, ToolbarWidgetGroupPattern, reportViolations} from '../private';\nimport {Toolbar} from './toolbar';\nimport {ToolbarWidget} from './toolbar-widget';\nimport {TOOLBAR_WIDGET_GROUP} from './toolbar-tokens';\n\n/**\n * A directive that groups toolbar widgets, used for more complex widgets like radio groups\n * that have their own internal navigation.\n *\n * @see [Toolbar](guide/aria/toolbar)\n */\n@Directive({\n selector: '[ngToolbarWidgetGroup]',\n exportAs: 'ngToolbarWidgetGroup',\n providers: [{provide: TOOLBAR_WIDGET_GROUP, useExisting: ToolbarWidgetGroup}],\n})\nexport class ToolbarWidgetGroup<V> {\n /** A reference to the host element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** A reference to the host element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The parent Toolbar. */\n private readonly _toolbar = inject<Toolbar<V>>(Toolbar, {optional: true});\n\n /** The list of child widgets within the group. */\n private readonly _widgets = contentChildren<ToolbarWidget<V>>(ToolbarWidget, {descendants: true});\n\n /** The parent Toolbar UIPattern. */\n private readonly _toolbarPattern = computed(() => this._toolbar?._pattern);\n\n /** Whether the widget group is disabled. */\n readonly disabled = input(false, {transform: booleanAttribute});\n\n /** The list of toolbar items within the group. */\n private readonly _itemPatterns = () => this._widgets().map(w => w._pattern);\n\n /** Whether the group allows multiple widgets to be selected. */\n readonly multi = input(false, {transform: booleanAttribute});\n\n /** The ToolbarWidgetGroup UIPattern. */\n readonly _pattern = new ToolbarWidgetGroupPattern<ToolbarWidgetPattern<V>, V>({\n ...this,\n items: this._itemPatterns,\n toolbar: this._toolbarPattern,\n });\n\n constructor() {\n // Check for any violations after the DOM has been updated.\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n afterRenderEffect({\n read: () => {\n const violations: string[] = [];\n if (!this._toolbar) {\n violations.push('ngToolbarWidgetGroup must be placed inside an ngToolbar container.');\n }\n reportViolations(violations, this.element);\n },\n });\n }\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;MA2Da,OAAO,CAAA;AAED,EAAA,W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A,MAAA,IAAA,EAAA,CAAA;AAAA,QAAA,QAAA,EAAA,IAAA;AAAA,QAAA,KAAA,EAAA,UAAA;AAAA,QAAA,QAAA,EAAA;OAAA;AAAA,KAAA,CAAA;AAAA,IAAA,KAAA,EAAA,CAAA;MAAA,IAAA,EAAA,EAAA,CAAA,KAAA;AAAA,MAAA,IAAA,EAAA,CAAA;AAAA,QAAA,QAAA,EAAA,IAAA;AAAA,QAAA,KAAA,EAAA,OAAA;AAAA,QAAA,QAAA,EAAA;OAAA;KAAA;AAAA;AAAA,CAAA,CAAA;;;;"}
|
package/fesm2022/tree.mjs
CHANGED
|
@@ -124,7 +124,7 @@ class Tree {
|
|
|
124
124
|
}
|
|
125
125
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
126
126
|
minVersion: "12.0.0",
|
|
127
|
-
version: "22.2.0-next.
|
|
127
|
+
version: "22.2.0-next.3",
|
|
128
128
|
ngImport: i0,
|
|
129
129
|
type: Tree,
|
|
130
130
|
deps: [],
|
|
@@ -132,7 +132,7 @@ class Tree {
|
|
|
132
132
|
});
|
|
133
133
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
134
134
|
minVersion: "17.1.0",
|
|
135
|
-
version: "22.2.0-next.
|
|
135
|
+
version: "22.2.0-next.3",
|
|
136
136
|
type: Tree,
|
|
137
137
|
isStandalone: true,
|
|
138
138
|
selector: "[ngTree]",
|
|
@@ -256,7 +256,7 @@ class Tree {
|
|
|
256
256
|
}
|
|
257
257
|
i0.ɵɵngDeclareClassMetadata({
|
|
258
258
|
minVersion: "12.0.0",
|
|
259
|
-
version: "22.2.0-next.
|
|
259
|
+
version: "22.2.0-next.3",
|
|
260
260
|
ngImport: i0,
|
|
261
261
|
type: Tree,
|
|
262
262
|
decorators: [{
|
|
@@ -420,7 +420,7 @@ class TreeItemGroup {
|
|
|
420
420
|
}
|
|
421
421
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
422
422
|
minVersion: "12.0.0",
|
|
423
|
-
version: "22.2.0-next.
|
|
423
|
+
version: "22.2.0-next.3",
|
|
424
424
|
ngImport: i0,
|
|
425
425
|
type: TreeItemGroup,
|
|
426
426
|
deps: [],
|
|
@@ -428,7 +428,7 @@ class TreeItemGroup {
|
|
|
428
428
|
});
|
|
429
429
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
430
430
|
minVersion: "17.1.0",
|
|
431
|
-
version: "22.2.0-next.
|
|
431
|
+
version: "22.2.0-next.3",
|
|
432
432
|
type: TreeItemGroup,
|
|
433
433
|
isStandalone: true,
|
|
434
434
|
selector: "ng-template[ngTreeItemGroup]",
|
|
@@ -450,7 +450,7 @@ class TreeItemGroup {
|
|
|
450
450
|
}
|
|
451
451
|
i0.ɵɵngDeclareClassMetadata({
|
|
452
452
|
minVersion: "12.0.0",
|
|
453
|
-
version: "22.2.0-next.
|
|
453
|
+
version: "22.2.0-next.3",
|
|
454
454
|
ngImport: i0,
|
|
455
455
|
type: TreeItemGroup,
|
|
456
456
|
decorators: [{
|
|
@@ -578,7 +578,7 @@ class TreeItem extends DeferredContentAware {
|
|
|
578
578
|
}
|
|
579
579
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
580
580
|
minVersion: "12.0.0",
|
|
581
|
-
version: "22.2.0-next.
|
|
581
|
+
version: "22.2.0-next.3",
|
|
582
582
|
ngImport: i0,
|
|
583
583
|
type: TreeItem,
|
|
584
584
|
deps: [],
|
|
@@ -586,7 +586,7 @@ class TreeItem extends DeferredContentAware {
|
|
|
586
586
|
});
|
|
587
587
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
588
588
|
minVersion: "17.1.0",
|
|
589
|
-
version: "22.2.0-next.
|
|
589
|
+
version: "22.2.0-next.3",
|
|
590
590
|
type: TreeItem,
|
|
591
591
|
isStandalone: true,
|
|
592
592
|
selector: "[ngTreeItem]",
|
|
@@ -668,7 +668,7 @@ class TreeItem extends DeferredContentAware {
|
|
|
668
668
|
}
|
|
669
669
|
i0.ɵɵngDeclareClassMetadata({
|
|
670
670
|
minVersion: "12.0.0",
|
|
671
|
-
version: "22.2.0-next.
|
|
671
|
+
version: "22.2.0-next.3",
|
|
672
672
|
ngImport: i0,
|
|
673
673
|
type: TreeItem,
|
|
674
674
|
decorators: [{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/aria",
|
|
3
|
-
"version": "22.2.0-next.
|
|
3
|
+
"version": "22.2.0-next.3",
|
|
4
4
|
"description": "Angular Aria",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"homepage": "https://github.com/angular/components#readme",
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@angular/cdk": "22.2.0-next.
|
|
15
|
+
"@angular/cdk": "22.2.0-next.3",
|
|
16
16
|
"@angular/core": "^22.0.0-0 || ^22.1.0-0 || ^22.2.0-0 || ^22.3.0-0 || ^23.0.0-0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
@@ -18,9 +18,9 @@ declare class AccordionGroupPattern {
|
|
|
18
18
|
readonly expansionBehavior: ListExpansion;
|
|
19
19
|
constructor(inputs: AccordionGroupInputs);
|
|
20
20
|
/** The key used to navigate to the previous accordion trigger. */
|
|
21
|
-
readonly prevKey: SignalLike<"
|
|
21
|
+
readonly prevKey: SignalLike<"ArrowLeft" | "ArrowRight" | "ArrowUp">;
|
|
22
22
|
/** The key used to navigate to the next accordion trigger. */
|
|
23
|
-
readonly nextKey: SignalLike<"
|
|
23
|
+
readonly nextKey: SignalLike<"ArrowDown" | "ArrowLeft" | "ArrowRight">;
|
|
24
24
|
/** The keydown event manager for the accordion trigger. */
|
|
25
25
|
readonly keydown: SignalLike<KeyboardEventManager<KeyboardEvent>>;
|
|
26
26
|
/** The click event manager for the accordion trigger. */
|
|
@@ -18,7 +18,7 @@ interface HasElement {
|
|
|
18
18
|
/**
|
|
19
19
|
* Sort directives by their document order.
|
|
20
20
|
*/
|
|
21
|
-
declare function sortDirectives(a: HasElement, b: HasElement): 1 |
|
|
21
|
+
declare function sortDirectives(a: HasElement, b: HasElement): -1 | 1;
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* A collection that lazily sorts its items based on their DOM position.
|
package/types/_grid-chunk.d.ts
CHANGED
|
@@ -99,7 +99,7 @@ declare class GridFocus<T extends GridFocusCell> {
|
|
|
99
99
|
/** Whether the grid is in a disabled state. */
|
|
100
100
|
readonly gridDisabled: SignalLike<boolean>;
|
|
101
101
|
/** The tab index for the grid container. */
|
|
102
|
-
readonly gridTabIndex: SignalLike
|
|
102
|
+
readonly gridTabIndex: SignalLike<-1 | 0>;
|
|
103
103
|
constructor(inputs: GridFocusInputs & GridFocusDeps<T>);
|
|
104
104
|
/** Returns the tab index for the given grid cell cell. */
|
|
105
105
|
getCellTabIndex(cell: T): -1 | 0;
|
|
@@ -504,7 +504,7 @@ declare class GridPattern {
|
|
|
504
504
|
/** The cells in the grid. */
|
|
505
505
|
readonly cells: SignalLike<GridCellPattern[][]>;
|
|
506
506
|
/** The tab index for the grid. */
|
|
507
|
-
readonly tabIndex: SignalLike
|
|
507
|
+
readonly tabIndex: SignalLike<-1 | 0>;
|
|
508
508
|
/** Whether the grid is disabled. */
|
|
509
509
|
readonly disabled: SignalLike<boolean>;
|
|
510
510
|
/** Whether the grid is multi-selectable. */
|
|
@@ -524,9 +524,9 @@ declare class GridPattern {
|
|
|
524
524
|
/** Whether the user is currently dragging to select a range of cells. */
|
|
525
525
|
readonly dragging: WritableSignalLike<boolean>;
|
|
526
526
|
/** The key for navigating to the previous column. */
|
|
527
|
-
readonly prevColKey: SignalLike<"
|
|
527
|
+
readonly prevColKey: SignalLike<"ArrowLeft" | "ArrowRight">;
|
|
528
528
|
/** The key for navigating to the next column. */
|
|
529
|
-
readonly nextColKey: SignalLike<"
|
|
529
|
+
readonly nextColKey: SignalLike<"ArrowLeft" | "ArrowRight">;
|
|
530
530
|
/** The keydown event manager for the grid. */
|
|
531
531
|
readonly keydown: SignalLike<KeyboardEventManager<KeyboardEvent>>;
|
|
532
532
|
/** The click event manager for the grid. */
|
package/types/_list-chunk.d.ts
CHANGED
|
@@ -140,7 +140,7 @@ declare class List<T extends ListItem<V>, V> {
|
|
|
140
140
|
/** The id of the current active item. */
|
|
141
141
|
readonly activeDescendant: SignalLike<string | undefined>;
|
|
142
142
|
/** The tab index of the list. */
|
|
143
|
-
readonly tabIndex: SignalLike
|
|
143
|
+
readonly tabIndex: SignalLike<-1 | 0>;
|
|
144
144
|
/** The index of the currently active item in the list. */
|
|
145
145
|
readonly activeIndex: SignalLike<number>;
|
|
146
146
|
/**
|
|
@@ -160,7 +160,7 @@ declare class List<T extends ListItem<V>, V> {
|
|
|
160
160
|
private readonly _wrap;
|
|
161
161
|
constructor(inputs: ListInputs<T, V>);
|
|
162
162
|
/** Returns the tab index for the given item. */
|
|
163
|
-
getItemTabindex(item: T):
|
|
163
|
+
getItemTabindex(item: T): -1 | 0;
|
|
164
164
|
/** Navigates to the first option in the list. */
|
|
165
165
|
first(opts?: NavOptions<T>): void;
|
|
166
166
|
/** Navigates to the last option in the list. */
|
|
@@ -36,7 +36,7 @@ declare class OptionPattern<V> {
|
|
|
36
36
|
/** A reference to the parent listbox. */
|
|
37
37
|
readonly listbox: SignalLike<ListboxPattern$1<V> | undefined>;
|
|
38
38
|
/** The tab index of the option. */
|
|
39
|
-
readonly tabIndex: SignalLike
|
|
39
|
+
readonly tabIndex: SignalLike<-1 | 0 | undefined>;
|
|
40
40
|
/** The html element that should receive focus. */
|
|
41
41
|
readonly element: SignalLike<HTMLElement | undefined>;
|
|
42
42
|
constructor(args: OptionInputs<V>);
|
|
@@ -74,9 +74,9 @@ declare class ListboxPattern<V> {
|
|
|
74
74
|
/** Whether the listbox should wrap. Used to disable wrapping while range selecting. */
|
|
75
75
|
readonly wrap: WritableSignalLike<boolean>;
|
|
76
76
|
/** The key used to navigate to the previous item in the list. */
|
|
77
|
-
readonly prevKey: SignalLike<"
|
|
77
|
+
readonly prevKey: SignalLike<"ArrowLeft" | "ArrowRight" | "ArrowUp">;
|
|
78
78
|
/** The key used to navigate to the next item in the list. */
|
|
79
|
-
readonly nextKey: SignalLike<"
|
|
79
|
+
readonly nextKey: SignalLike<"ArrowDown" | "ArrowLeft" | "ArrowRight">;
|
|
80
80
|
/** Represents the space key. Does nothing when the user is actively using typeahead. */
|
|
81
81
|
readonly dynamicSpaceKey: SignalLike<"" | " ">;
|
|
82
82
|
/** The regexp used to decide if a key should trigger typeahead. */
|
package/types/_menu-chunk.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ declare class MenuPattern<V> {
|
|
|
70
70
|
/** Timeout used to close sub-menus on hover out. */
|
|
71
71
|
_closeTimeout: any;
|
|
72
72
|
/** The tab index of the menu. */
|
|
73
|
-
readonly tabIndex: () =>
|
|
73
|
+
readonly tabIndex: () => -1 | 0;
|
|
74
74
|
/** Whether the menu should be focused on mouse over. */
|
|
75
75
|
readonly shouldFocus: SignalLike<boolean>;
|
|
76
76
|
/** The key used to expand sub-menus. */
|
|
@@ -141,7 +141,7 @@ declare class MenuBarPattern<V> {
|
|
|
141
141
|
/** Controls list behavior for the menu items. */
|
|
142
142
|
readonly listBehavior: List<MenuItemPattern<V>, V>;
|
|
143
143
|
/** The tab index of the menu. */
|
|
144
|
-
readonly tabIndex: () =>
|
|
144
|
+
readonly tabIndex: () => -1 | 0;
|
|
145
145
|
/** The key used to navigate to the next item. */
|
|
146
146
|
private readonly _nextKey;
|
|
147
147
|
/** The key used to navigate to the previous item. */
|
|
@@ -244,7 +244,7 @@ declare class MenuItemPattern<V> implements ListItem<V> {
|
|
|
244
244
|
/** Whether the menu item has received interaction. */
|
|
245
245
|
readonly hasBeenInteracted: WritableSignalLike<boolean>;
|
|
246
246
|
/** The tab index of the menu item. */
|
|
247
|
-
readonly tabIndex: SignalLike
|
|
247
|
+
readonly tabIndex: SignalLike<-1 | 0>;
|
|
248
248
|
/** The position of the menu item in the menu. */
|
|
249
249
|
readonly index: SignalLike<number>;
|
|
250
250
|
/** Whether the menu item is expanded. */
|
|
@@ -254,7 +254,7 @@ declare class MenuItemPattern<V> implements ListItem<V> {
|
|
|
254
254
|
/** The ID of the menu that the menu item controls. */
|
|
255
255
|
readonly controls: WritableSignalLike<string | undefined>;
|
|
256
256
|
/** The role of the menu item. */
|
|
257
|
-
readonly role: () => "menuitem" | "
|
|
257
|
+
readonly role: () => "menuitem" | "menuitemcheckbox" | "menuitemradio";
|
|
258
258
|
/** Whether the menu item has a popup. */
|
|
259
259
|
readonly hasPopup: SignalLike<boolean>;
|
|
260
260
|
/** The submenu associated with the menu item. */
|
package/types/_tabs-chunk.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ declare class TabPattern {
|
|
|
28
28
|
/** Whether the tab is selected. */
|
|
29
29
|
readonly selected: SignalLike<boolean>;
|
|
30
30
|
/** The tab index of the tab. */
|
|
31
|
-
readonly tabIndex: SignalLike
|
|
31
|
+
readonly tabIndex: SignalLike<-1 | 0>;
|
|
32
32
|
/** The id of the tabpanel associated with the tab. */
|
|
33
33
|
readonly controls: SignalLike<string | undefined>;
|
|
34
34
|
constructor(inputs: TabInputs);
|
|
@@ -82,15 +82,15 @@ declare class TabListPattern {
|
|
|
82
82
|
/** Whether the tablist is disabled. */
|
|
83
83
|
readonly disabled: SignalLike<boolean>;
|
|
84
84
|
/** The tab index of the tablist. */
|
|
85
|
-
readonly tabIndex: SignalLike
|
|
85
|
+
readonly tabIndex: SignalLike<-1 | 0>;
|
|
86
86
|
/** The id of the current active tab. */
|
|
87
87
|
readonly activeDescendant: SignalLike<string | undefined>;
|
|
88
88
|
/** Whether selection should follow focus. */
|
|
89
89
|
readonly followFocus: SignalLike<boolean>;
|
|
90
90
|
/** The key used to navigate to the previous tab in the tablist. */
|
|
91
|
-
readonly prevKey: SignalLike<"
|
|
91
|
+
readonly prevKey: SignalLike<"ArrowLeft" | "ArrowRight" | "ArrowUp">;
|
|
92
92
|
/** The key used to navigate to the next item in the list. */
|
|
93
|
-
readonly nextKey: SignalLike<"
|
|
93
|
+
readonly nextKey: SignalLike<"ArrowDown" | "ArrowLeft" | "ArrowRight">;
|
|
94
94
|
/** The keydown event manager for the tablist. */
|
|
95
95
|
readonly keydown: SignalLike<KeyboardEventManager<KeyboardEvent>>;
|
|
96
96
|
/** The click event manager for the tablist. */
|
|
@@ -48,7 +48,7 @@ declare class ToolbarWidgetPattern<V> implements ListItem<V> {
|
|
|
48
48
|
/** A reference to the toolbar containing the widget. */
|
|
49
49
|
readonly toolbar: () => ToolbarPattern<V>;
|
|
50
50
|
/** The tabindex of the widget. */
|
|
51
|
-
readonly tabIndex: SignalLike
|
|
51
|
+
readonly tabIndex: SignalLike<-1 | 0>;
|
|
52
52
|
/** The text used by the typeahead search. */
|
|
53
53
|
readonly searchTerm: () => string;
|
|
54
54
|
/** The value associated with the widget. */
|
|
@@ -83,7 +83,7 @@ declare class ToolbarPattern<V> {
|
|
|
83
83
|
/** Whether the toolbar is disabled. */
|
|
84
84
|
readonly disabled: SignalLike<boolean>;
|
|
85
85
|
/** The tab index of the toolbar (if using activedescendant). */
|
|
86
|
-
readonly tabIndex: SignalLike
|
|
86
|
+
readonly tabIndex: SignalLike<-1 | 0>;
|
|
87
87
|
/** The id of the current active widget (if using activedescendant). */
|
|
88
88
|
readonly activeDescendant: SignalLike<string | undefined>;
|
|
89
89
|
/** The currently active item in the toolbar. */
|
package/types/_tree-chunk.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ declare class Tree<T extends TreeItem<V, T>, V> {
|
|
|
34
34
|
/** The id of the current active item. */
|
|
35
35
|
readonly activeDescendant: SignalLike<string | undefined>;
|
|
36
36
|
/** The tab index of the tree. */
|
|
37
|
-
readonly tabIndex: SignalLike
|
|
37
|
+
readonly tabIndex: SignalLike<-1 | 0>;
|
|
38
38
|
/** The index of the currently active item in the tree (within the flattened list). */
|
|
39
39
|
readonly activeIndex: SignalLike<number>;
|
|
40
40
|
/** The uncommitted index for selecting a range of options. */
|
|
@@ -43,7 +43,7 @@ declare class Tree<T extends TreeItem<V, T>, V> {
|
|
|
43
43
|
private readonly _wrap;
|
|
44
44
|
constructor(inputs: TreeInputs$1<T, V>);
|
|
45
45
|
/** Returns the tab index for the given item. */
|
|
46
|
-
getItemTabindex(item: T):
|
|
46
|
+
getItemTabindex(item: T): -1 | 0;
|
|
47
47
|
/** Navigates to the first option in the tree. */
|
|
48
48
|
first(opts?: NavOptions<T>): void;
|
|
49
49
|
/** Navigates to the last option in the tree. */
|
|
@@ -159,7 +159,7 @@ declare class TreeItemPattern<V> implements TreeItem<V, TreeItemPattern<V>> {
|
|
|
159
159
|
/** Whether the item is active. */
|
|
160
160
|
readonly active: SignalLike<boolean>;
|
|
161
161
|
/** The tab index of the item. */
|
|
162
|
-
readonly tabIndex: SignalLike
|
|
162
|
+
readonly tabIndex: SignalLike<-1 | 0>;
|
|
163
163
|
/** Whether the item is selected. */
|
|
164
164
|
readonly selected: SignalLike<boolean | undefined>;
|
|
165
165
|
/** The current type of this item. */
|
|
@@ -208,13 +208,13 @@ declare class TreePattern<V> implements TreeInputs<V> {
|
|
|
208
208
|
/** Whether the tree direction is RTL. */
|
|
209
209
|
readonly isRtl: SignalLike<boolean>;
|
|
210
210
|
/** The key for navigating to the previous item. */
|
|
211
|
-
readonly prevKey: SignalLike<"
|
|
211
|
+
readonly prevKey: SignalLike<"ArrowLeft" | "ArrowRight" | "ArrowUp">;
|
|
212
212
|
/** The key for navigating to the next item. */
|
|
213
|
-
readonly nextKey: SignalLike<"
|
|
213
|
+
readonly nextKey: SignalLike<"ArrowDown" | "ArrowLeft" | "ArrowRight">;
|
|
214
214
|
/** The key for collapsing an item or moving to its parent. */
|
|
215
|
-
readonly collapseKey: SignalLike<"
|
|
215
|
+
readonly collapseKey: SignalLike<"ArrowLeft" | "ArrowRight" | "ArrowUp">;
|
|
216
216
|
/** The key for expanding an item or moving to its first child. */
|
|
217
|
-
readonly expandKey: SignalLike<"
|
|
217
|
+
readonly expandKey: SignalLike<"ArrowDown" | "ArrowLeft" | "ArrowRight">;
|
|
218
218
|
/** Represents the space key. Does nothing when the user is actively using typeahead. */
|
|
219
219
|
readonly dynamicSpaceKey: SignalLike<"" | " ">;
|
|
220
220
|
/** Regular expression to match characters for typeahead. */
|
package/types/combobox.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ declare class ComboboxPopup implements OnInit, OnDestroy {
|
|
|
61
61
|
/** The ID of the active descendant in the popup. */
|
|
62
62
|
readonly activeDescendant: _angular_core.Signal<string | undefined>;
|
|
63
63
|
/** The type of the popup (e.g., listbox, tree, grid, dialog). */
|
|
64
|
-
readonly popupType: _angular_core.InputSignal<"
|
|
64
|
+
readonly popupType: _angular_core.InputSignal<"dialog" | "grid" | "listbox" | "tree">;
|
|
65
65
|
/** The popup pattern. */
|
|
66
66
|
readonly _pattern: ComboboxPopupPattern;
|
|
67
67
|
ngOnInit(): void;
|
package/types/grid.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ declare class GridCell implements OnInit, OnDestroy {
|
|
|
37
37
|
/** A unique identifier for the cell. */
|
|
38
38
|
readonly id: _angular_core.InputSignal<string>;
|
|
39
39
|
/** The ARIA role for the cell. */
|
|
40
|
-
readonly role: _angular_core.InputSignal<"
|
|
40
|
+
readonly role: _angular_core.InputSignal<"columnheader" | "gridcell" | "rowheader">;
|
|
41
41
|
/** The number of rows the cell should span. */
|
|
42
42
|
readonly rowSpan: _angular_core.InputSignal<number>;
|
|
43
43
|
/** The number of columns the cell should span. */
|
|
@@ -152,7 +152,7 @@ declare class Grid implements OnDestroy {
|
|
|
152
152
|
* - `roving`: Focus is moved to the active cell using `tabindex`.
|
|
153
153
|
* - `activedescendant`: Focus remains on the grid container, and `aria-activedescendant` is used to indicate the active cell.
|
|
154
154
|
*/
|
|
155
|
-
readonly focusMode: _angular_core.InputSignal<"
|
|
155
|
+
readonly focusMode: _angular_core.InputSignal<"activedescendant" | "roving">;
|
|
156
156
|
/**
|
|
157
157
|
* The wrapping behavior for keyboard navigation along the row axis.
|
|
158
158
|
* - `continuous`: Navigation wraps from the last row to the first, and vice-versa.
|
|
@@ -174,7 +174,7 @@ declare class Grid implements OnDestroy {
|
|
|
174
174
|
* - `follow`: The focused cell is automatically selected.
|
|
175
175
|
* - `explicit`: Cells are selected explicitly by the user (e.g., via click or spacebar).
|
|
176
176
|
*/
|
|
177
|
-
readonly selectionMode: _angular_core.InputSignal<"
|
|
177
|
+
readonly selectionMode: _angular_core.InputSignal<"explicit" | "follow">;
|
|
178
178
|
/** The tabindex of the grid. */
|
|
179
179
|
readonly tabIndex: _angular_core.InputSignalWithTransform<number | undefined, string | number | undefined>;
|
|
180
180
|
/** The UI pattern for the grid. */
|
|
@@ -219,15 +219,15 @@ declare class GridCellWidget {
|
|
|
219
219
|
/** A unique identifier for the widget. */
|
|
220
220
|
readonly id: _angular_core.InputSignal<string>;
|
|
221
221
|
/** The type of widget, which determines how it is activated. */
|
|
222
|
-
readonly widgetType: _angular_core.InputSignal<"
|
|
222
|
+
readonly widgetType: _angular_core.InputSignal<"complex" | "editable" | "simple">;
|
|
223
223
|
/** Whether the widget is disabled. */
|
|
224
224
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
225
225
|
/** The target that will receive focus instead of the widget. */
|
|
226
226
|
readonly focusTarget: _angular_core.InputSignal<ElementResolver<HTMLElement>>;
|
|
227
227
|
/** Emits when the widget is activated. */
|
|
228
|
-
readonly activated: _angular_core.OutputEmitterRef<
|
|
228
|
+
readonly activated: _angular_core.OutputEmitterRef<FocusEvent | KeyboardEvent | undefined>;
|
|
229
229
|
/** Emits when the widget is deactivated. */
|
|
230
|
-
readonly deactivated: _angular_core.OutputEmitterRef<
|
|
230
|
+
readonly deactivated: _angular_core.OutputEmitterRef<FocusEvent | KeyboardEvent | undefined>;
|
|
231
231
|
/** The tabindex override. */
|
|
232
232
|
readonly tabindex: _angular_core.InputSignal<number | undefined>;
|
|
233
233
|
/**
|
package/types/listbox.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ declare class Listbox<V> implements OnDestroy {
|
|
|
87
87
|
/** A signal wrapper for directionality. */
|
|
88
88
|
protected readonly textDirection: Signal<_angular_cdk_bidi.Direction>;
|
|
89
89
|
/** Whether the list is vertically or horizontally oriented. */
|
|
90
|
-
readonly orientation: _angular_core.InputSignal<"
|
|
90
|
+
readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
|
|
91
91
|
/** Whether multiple items in the list can be selected at once. */
|
|
92
92
|
readonly multi: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
93
93
|
/** Whether focus should wrap when navigating. */
|
|
@@ -102,13 +102,13 @@ declare class Listbox<V> implements OnDestroy {
|
|
|
102
102
|
* - `roving`: Focus is moved to the active item using `tabindex`.
|
|
103
103
|
* - `activedescendant`: Focus remains on the listbox container, and `aria-activedescendant` is used to indicate the active item.
|
|
104
104
|
*/
|
|
105
|
-
readonly focusMode: _angular_core.InputSignal<"
|
|
105
|
+
readonly focusMode: _angular_core.InputSignal<"activedescendant" | "roving">;
|
|
106
106
|
/**
|
|
107
107
|
* The selection strategy used by the list.
|
|
108
108
|
* - `follow`: The focused item is automatically selected.
|
|
109
109
|
* - `explicit`: Items are selected explicitly by the user (e.g., via click or spacebar).
|
|
110
110
|
*/
|
|
111
|
-
readonly selectionMode: _angular_core.InputSignal<"
|
|
111
|
+
readonly selectionMode: _angular_core.InputSignal<"explicit" | "follow">;
|
|
112
112
|
/** The amount of time before the typeahead search is reset. */
|
|
113
113
|
readonly typeaheadDelay: _angular_core.InputSignal<number>;
|
|
114
114
|
/** Whether the listbox is disabled. */
|
package/types/menu.d.ts
CHANGED
|
@@ -99,7 +99,7 @@ declare class MenuItem<V> implements OnInit, OnDestroy {
|
|
|
99
99
|
/** The search term associated with the menu item. */
|
|
100
100
|
readonly searchTerm: _angular_core.ModelSignal<string>;
|
|
101
101
|
/** The role of the menu item. */
|
|
102
|
-
readonly role: _angular_core.InputSignal<"menuitem" | "
|
|
102
|
+
readonly role: _angular_core.InputSignal<"menuitem" | "menuitemcheckbox" | "menuitemradio">;
|
|
103
103
|
/** A reference to the parent menu or menubar. */
|
|
104
104
|
readonly parent: Menu<V> | MenuBar<V> | null;
|
|
105
105
|
/** The submenu associated with the menu item. */
|
|
@@ -170,7 +170,7 @@ declare class Menu<V> implements OnDestroy {
|
|
|
170
170
|
/** Whether the menu is disabled. */
|
|
171
171
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
172
172
|
/** A reference to the parent menu item or menu trigger. */
|
|
173
|
-
readonly parent: _angular_core.WritableSignal<
|
|
173
|
+
readonly parent: _angular_core.WritableSignal<MenuItem<V> | MenuTrigger<V> | undefined>;
|
|
174
174
|
/** Whether the menu is soft disabled. */
|
|
175
175
|
readonly softDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
176
176
|
/** The menu ui pattern instance. */
|
|
@@ -189,7 +189,7 @@ declare class Menu<V> implements OnDestroy {
|
|
|
189
189
|
/** Whether the menu is visible. */
|
|
190
190
|
readonly visible: Signal<boolean>;
|
|
191
191
|
/** The tab index of the menu. */
|
|
192
|
-
readonly tabIndex: Signal
|
|
192
|
+
readonly tabIndex: Signal<-1 | 0>;
|
|
193
193
|
/** A callback function triggered when a menu item is selected. */
|
|
194
194
|
readonly itemSelected: _angular_core.OutputEmitterRef<V>;
|
|
195
195
|
/** The delay in milliseconds before expanding sub-menus on hover. */
|