@angular/aria 21.0.0-rc.0 → 21.0.0-rc.1
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/_adev_assets/aria-accordion.json +14 -14
- package/_adev_assets/aria-combobox.json +10 -10
- package/_adev_assets/aria-grid.json +81 -12
- package/_adev_assets/aria-listbox.json +3 -3
- package/_adev_assets/aria-menu.json +174 -74
- package/_adev_assets/aria-tabs.json +22 -22
- package/_adev_assets/aria-toolbar.json +99 -120
- package/_adev_assets/aria-tree.json +20 -16
- package/fesm2022/_widget-chunk.mjs +266 -144
- package/fesm2022/_widget-chunk.mjs.map +1 -1
- package/fesm2022/accordion.mjs +12 -13
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/aria.mjs +1 -1
- package/fesm2022/aria.mjs.map +1 -1
- package/fesm2022/combobox.mjs +9 -7
- package/fesm2022/combobox.mjs.map +1 -1
- package/fesm2022/grid.mjs +61 -12
- package/fesm2022/grid.mjs.map +1 -1
- package/fesm2022/listbox.mjs +14 -15
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +117 -61
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/private.mjs +390 -399
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/tabs.mjs +16 -17
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +79 -44
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tree.mjs +22 -19
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +2 -10
- package/types/_grid-chunk.d.ts +115 -53
- package/types/accordion.d.ts +4 -4
- package/types/combobox.d.ts +2 -2
- package/types/grid.d.ts +12 -3
- package/types/listbox.d.ts +3 -4
- package/types/menu.d.ts +33 -21
- package/types/private.d.ts +263 -341
- package/types/tabs.d.ts +4 -4
- package/types/toolbar.d.ts +29 -26
- package/types/tree.d.ts +5 -6
- package/_adev_assets/aria-radio-group.json +0 -389
- package/fesm2022/deferred-content.mjs +0 -99
- package/fesm2022/deferred-content.mjs.map +0 -1
- package/fesm2022/radio-group.mjs +0 -338
- package/fesm2022/radio-group.mjs.map +0 -1
- package/types/deferred-content.d.ts +0 -38
- package/types/radio-group.d.ts +0 -84
package/types/combobox.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { WritableSignal } from '@angular/core';
|
|
3
3
|
import * as _angular_cdk_bidi from '@angular/cdk/bidi';
|
|
4
|
+
import * as i1 from '@angular/aria/private';
|
|
4
5
|
import { ComboboxPattern, ComboboxListboxControls, ComboboxTreeControls } from '@angular/aria/private';
|
|
5
|
-
import * as i1 from '@angular/aria/deferred-content';
|
|
6
6
|
|
|
7
7
|
declare class Combobox<V> {
|
|
8
8
|
/** The directionality (LTR / RTL) context for the application (or a subtree of it). */
|
|
@@ -19,7 +19,7 @@ declare class Combobox<V> {
|
|
|
19
19
|
filterMode: _angular_core.InputSignal<"manual" | "auto-select" | "highlight">;
|
|
20
20
|
/** Whether the combobox is focused. */
|
|
21
21
|
readonly isFocused: WritableSignal<boolean>;
|
|
22
|
-
/** Whether the
|
|
22
|
+
/** Whether the combobox has received focus yet. */
|
|
23
23
|
private _hasBeenFocused;
|
|
24
24
|
/** Whether the combobox is disabled. */
|
|
25
25
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
package/types/grid.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { Signal } from '@angular/core';
|
|
3
|
+
import * as _angular_cdk_bidi from '@angular/cdk/bidi';
|
|
3
4
|
import { GridPattern, GridRowPattern, GridCellPattern, GridCellWidgetPattern } from './_grid-chunk.js';
|
|
4
5
|
|
|
5
6
|
/** A directive that provides grid-based navigation and selection behavior. */
|
|
@@ -10,27 +11,35 @@ declare class Grid {
|
|
|
10
11
|
private readonly _rows;
|
|
11
12
|
/** The UI patterns for the rows in the grid. */
|
|
12
13
|
private readonly _rowPatterns;
|
|
14
|
+
/** Text direction. */
|
|
15
|
+
readonly textDirection: _angular_core.WritableSignal<_angular_cdk_bidi.Direction>;
|
|
13
16
|
/** The host native element. */
|
|
14
17
|
readonly element: Signal<any>;
|
|
15
18
|
/** Whether selection is enabled for the grid. */
|
|
16
19
|
readonly enableSelection: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
17
20
|
/** Whether the grid is disabled. */
|
|
18
21
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
19
|
-
/** Whether to
|
|
20
|
-
readonly
|
|
22
|
+
/** Whether to allow disabled items to receive focus. */
|
|
23
|
+
readonly softDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
21
24
|
/** The focus strategy used by the grid. */
|
|
22
25
|
readonly focusMode: _angular_core.InputSignal<"roving" | "activedescendant">;
|
|
23
26
|
/** The wrapping behavior for keyboard navigation along the row axis. */
|
|
24
27
|
readonly rowWrap: _angular_core.InputSignal<"continuous" | "loop" | "nowrap">;
|
|
25
28
|
/** The wrapping behavior for keyboard navigation along the column axis. */
|
|
26
29
|
readonly colWrap: _angular_core.InputSignal<"continuous" | "loop" | "nowrap">;
|
|
30
|
+
/** Whether multiple cells in the grid can be selected. */
|
|
31
|
+
readonly multi: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
32
|
+
/** The selection strategy used by the grid. */
|
|
33
|
+
readonly selectionMode: _angular_core.InputSignal<"follow" | "explicit">;
|
|
34
|
+
/** Whether enable range selections (with modifier keys or dragging). */
|
|
35
|
+
readonly enableRangeSelection: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
27
36
|
/** The UI pattern for the grid. */
|
|
28
37
|
readonly _pattern: GridPattern;
|
|
29
38
|
constructor();
|
|
30
39
|
/** Gets the cell pattern for a given element. */
|
|
31
40
|
private _getCell;
|
|
32
41
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Grid, never>;
|
|
33
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<Grid, "[ngGrid]", ["ngGrid"], { "enableSelection": { "alias": "enableSelection"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "
|
|
42
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<Grid, "[ngGrid]", ["ngGrid"], { "enableSelection": { "alias": "enableSelection"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "softDisabled": { "alias": "softDisabled"; "required": false; "isSignal": true; }; "focusMode": { "alias": "focusMode"; "required": false; "isSignal": true; }; "rowWrap": { "alias": "rowWrap"; "required": false; "isSignal": true; }; "colWrap": { "alias": "colWrap"; "required": false; "isSignal": true; }; "multi": { "alias": "multi"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "enableRangeSelection": { "alias": "enableRangeSelection"; "required": false; "isSignal": true; }; }, {}, ["_rows"], never, true, never>;
|
|
34
43
|
}
|
|
35
44
|
/** A directive that represents a row in a grid. */
|
|
36
45
|
declare class GridRow {
|
package/types/listbox.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import * as _angular_cdk_bidi from '@angular/cdk/bidi';
|
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
3
|
import { OptionPattern, ListboxPattern } from '@angular/aria/private';
|
|
4
4
|
import { ComboboxPopup } from './combobox.js';
|
|
5
|
-
import '@angular/aria/deferred-content';
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* A listbox container.
|
|
@@ -41,8 +40,8 @@ declare class Listbox<V> {
|
|
|
41
40
|
multi: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
42
41
|
/** Whether focus should wrap when navigating. */
|
|
43
42
|
wrap: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
44
|
-
/** Whether disabled items in the list
|
|
45
|
-
|
|
43
|
+
/** Whether to allow disabled items in the list to receive focus. */
|
|
44
|
+
softDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
46
45
|
/** The focus strategy used by the list. */
|
|
47
46
|
focusMode: _angular_core.InputSignal<"roving" | "activedescendant">;
|
|
48
47
|
/** The selection strategy used by the list. */
|
|
@@ -63,7 +62,7 @@ declare class Listbox<V> {
|
|
|
63
62
|
onFocus(): void;
|
|
64
63
|
scrollActiveItemIntoView(options?: ScrollIntoViewOptions): void;
|
|
65
64
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Listbox<any>, never>;
|
|
66
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<Listbox<any>, "[ngListbox]", ["ngListbox"], { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "multi": { "alias": "multi"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "
|
|
65
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<Listbox<any>, "[ngListbox]", ["ngListbox"], { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "multi": { "alias": "multi"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "softDisabled": { "alias": "softDisabled"; "required": false; "isSignal": true; }; "focusMode": { "alias": "focusMode"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "typeaheadDelay": { "alias": "typeaheadDelay"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, ["_options"], never, true, [{ directive: typeof ComboboxPopup; inputs: {}; outputs: {}; }]>;
|
|
67
66
|
}
|
|
68
67
|
/** A selectable option in a Listbox. */
|
|
69
68
|
declare class Option<V> {
|
package/types/menu.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import * as _angular_cdk_bidi from '@angular/cdk/bidi';
|
|
2
1
|
import * as _angular_core from '@angular/core';
|
|
3
2
|
import { Signal } from '@angular/core';
|
|
3
|
+
import * as _angular_cdk_bidi from '@angular/cdk/bidi';
|
|
4
|
+
import * as i1 from '@angular/aria/private';
|
|
4
5
|
import { MenuTriggerPattern, MenuPattern, MenuItemPattern, SignalLike, MenuBarPattern } from '@angular/aria/private';
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -12,16 +13,21 @@ import { MenuTriggerPattern, MenuPattern, MenuItemPattern, SignalLike, MenuBarPa
|
|
|
12
13
|
declare class MenuTrigger<V> {
|
|
13
14
|
/** A reference to the menu trigger element. */
|
|
14
15
|
private readonly _elementRef;
|
|
16
|
+
/** The directionality (LTR / RTL) context for the application (or a subtree of it). */
|
|
17
|
+
readonly textDirection: _angular_core.WritableSignal<_angular_cdk_bidi.Direction>;
|
|
15
18
|
/** A reference to the menu element. */
|
|
16
19
|
readonly element: HTMLButtonElement;
|
|
17
|
-
/** The
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
|
|
20
|
+
/** The menu associated with the trigger. */
|
|
21
|
+
menu: _angular_core.InputSignal<Menu<V> | undefined>;
|
|
22
|
+
/** Whether the menu item has been focused. */
|
|
23
|
+
readonly hasBeenFocused: _angular_core.WritableSignal<boolean>;
|
|
21
24
|
/** The menu trigger ui pattern instance. */
|
|
22
|
-
|
|
25
|
+
_pattern: MenuTriggerPattern<V>;
|
|
26
|
+
constructor();
|
|
27
|
+
/** Marks the menu trigger as having been focused. */
|
|
28
|
+
onFocusIn(): void;
|
|
23
29
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuTrigger<any>, never>;
|
|
24
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MenuTrigger<any>, "button[ngMenuTrigger]", ["ngMenuTrigger"], { "
|
|
30
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MenuTrigger<any>, "button[ngMenuTrigger]", ["ngMenuTrigger"], { "menu": { "alias": "menu"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
25
31
|
}
|
|
26
32
|
/**
|
|
27
33
|
* A list of menu items.
|
|
@@ -40,6 +46,8 @@ declare class MenuTrigger<V> {
|
|
|
40
46
|
* ```
|
|
41
47
|
*/
|
|
42
48
|
declare class Menu<V> {
|
|
49
|
+
/** The DeferredContentAware host directive. */
|
|
50
|
+
private readonly _deferredContentAware;
|
|
43
51
|
/** The menu items contained in the menu. */
|
|
44
52
|
readonly _allItems: Signal<readonly MenuItem<V>[]>;
|
|
45
53
|
/** The menu items that are direct children of this menu. */
|
|
@@ -49,11 +57,7 @@ declare class Menu<V> {
|
|
|
49
57
|
/** A reference to the menu element. */
|
|
50
58
|
readonly element: HTMLElement;
|
|
51
59
|
/** The directionality (LTR / RTL) context for the application (or a subtree of it). */
|
|
52
|
-
|
|
53
|
-
/** A signal wrapper for directionality. */
|
|
54
|
-
readonly textDirection: Signal<_angular_cdk_bidi.Direction>;
|
|
55
|
-
/** The submenu associated with the menu. */
|
|
56
|
-
readonly submenu: _angular_core.InputSignal<Menu<V> | undefined>;
|
|
60
|
+
readonly textDirection: _angular_core.WritableSignal<_angular_cdk_bidi.Direction>;
|
|
57
61
|
/** The unique ID of the menu. */
|
|
58
62
|
readonly id: _angular_core.InputSignal<string>;
|
|
59
63
|
/** Whether the menu should wrap its items. */
|
|
@@ -61,7 +65,7 @@ declare class Menu<V> {
|
|
|
61
65
|
/** The delay in seconds before the typeahead buffer is cleared. */
|
|
62
66
|
readonly typeaheadDelay: _angular_core.InputSignal<number>;
|
|
63
67
|
/** A reference to the parent menu item or menu trigger. */
|
|
64
|
-
readonly parent: _angular_core.
|
|
68
|
+
readonly parent: _angular_core.WritableSignal<MenuTrigger<V> | MenuItem<V> | undefined>;
|
|
65
69
|
/** The menu ui pattern instance. */
|
|
66
70
|
readonly _pattern: MenuPattern<V>;
|
|
67
71
|
/**
|
|
@@ -75,7 +79,7 @@ declare class Menu<V> {
|
|
|
75
79
|
/** Whether the menu is visible. */
|
|
76
80
|
isVisible: Signal<boolean>;
|
|
77
81
|
/** A callback function triggered when a menu item is selected. */
|
|
78
|
-
|
|
82
|
+
onSelect: _angular_core.OutputEmitterRef<V>;
|
|
79
83
|
constructor();
|
|
80
84
|
/** Closes the menu. */
|
|
81
85
|
close(opts?: {
|
|
@@ -86,7 +90,7 @@ declare class Menu<V> {
|
|
|
86
90
|
refocus?: boolean;
|
|
87
91
|
}): void;
|
|
88
92
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Menu<any>, never>;
|
|
89
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<Menu<any>, "[ngMenu]", ["ngMenu"], { "
|
|
93
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<Menu<any>, "[ngMenu]", ["ngMenu"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "typeaheadDelay": { "alias": "typeaheadDelay"; "required": false; "isSignal": true; }; }, { "onSelect": "onSelect"; }, ["_allItems"], never, true, [{ directive: typeof i1.DeferredContentAware; inputs: { "preserveContent": "preserveContent"; }; outputs: {}; }]>;
|
|
90
94
|
}
|
|
91
95
|
/**
|
|
92
96
|
* A menu bar of menu items.
|
|
@@ -104,9 +108,7 @@ declare class MenuBar<V> {
|
|
|
104
108
|
/** A reference to the menubar element. */
|
|
105
109
|
readonly element: HTMLElement;
|
|
106
110
|
/** The directionality (LTR / RTL) context for the application (or a subtree of it). */
|
|
107
|
-
|
|
108
|
-
/** A signal wrapper for directionality. */
|
|
109
|
-
readonly textDirection: Signal<_angular_cdk_bidi.Direction>;
|
|
111
|
+
readonly textDirection: _angular_core.WritableSignal<_angular_cdk_bidi.Direction>;
|
|
110
112
|
/** The value of the menu. */
|
|
111
113
|
readonly value: _angular_core.ModelSignal<V[]>;
|
|
112
114
|
/** Whether the menu should wrap its items. */
|
|
@@ -118,10 +120,10 @@ declare class MenuBar<V> {
|
|
|
118
120
|
/** The menu items as a writable signal. */
|
|
119
121
|
readonly items: _angular_core.WritableSignal<MenuItemPattern<V>[]>;
|
|
120
122
|
/** A callback function triggered when a menu item is selected. */
|
|
121
|
-
|
|
123
|
+
onSelect: _angular_core.OutputEmitterRef<V>;
|
|
122
124
|
constructor();
|
|
123
125
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuBar<any>, never>;
|
|
124
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MenuBar<any>, "[ngMenuBar]", ["ngMenuBar"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "typeaheadDelay": { "alias": "typeaheadDelay"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "
|
|
126
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MenuBar<any>, "[ngMenuBar]", ["ngMenuBar"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "typeaheadDelay": { "alias": "typeaheadDelay"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "onSelect": "onSelect"; }, ["_allItems"], never, true, never>;
|
|
125
127
|
}
|
|
126
128
|
/**
|
|
127
129
|
* An item in a Menu.
|
|
@@ -149,10 +151,20 @@ declare class MenuItem<V> {
|
|
|
149
151
|
readonly parent: Menu<V> | MenuBar<V> | null;
|
|
150
152
|
/** The submenu associated with the menu item. */
|
|
151
153
|
readonly submenu: _angular_core.InputSignal<Menu<V> | undefined>;
|
|
154
|
+
/** Whether the menu item has been focused. */
|
|
155
|
+
readonly hasBeenFocused: _angular_core.WritableSignal<boolean>;
|
|
152
156
|
/** The menu item ui pattern instance. */
|
|
153
157
|
readonly _pattern: MenuItemPattern<V>;
|
|
158
|
+
constructor();
|
|
159
|
+
/** Marks the menu item as having been focused. */
|
|
160
|
+
onFocusIn(): void;
|
|
154
161
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuItem<any>, never>;
|
|
155
162
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MenuItem<any>, "[ngMenuItem]", ["ngMenuItem"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "searchTerm": { "alias": "searchTerm"; "required": false; "isSignal": true; }; "submenu": { "alias": "submenu"; "required": false; "isSignal": true; }; }, { "searchTerm": "searchTermChange"; }, never, never, true, never>;
|
|
156
163
|
}
|
|
164
|
+
/** Defers the rendering of the menu content. */
|
|
165
|
+
declare class MenuContent {
|
|
166
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuContent, never>;
|
|
167
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MenuContent, "ng-template[ngMenuContent]", ["ngMenuContent"], {}, {}, never, never, true, [{ directive: typeof i1.DeferredContent; inputs: {}; outputs: {}; }]>;
|
|
168
|
+
}
|
|
157
169
|
|
|
158
|
-
export { Menu, MenuBar, MenuItem, MenuTrigger };
|
|
170
|
+
export { Menu, MenuBar, MenuContent, MenuItem, MenuTrigger };
|