@angular/aria 21.0.0-next.9 → 21.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_adev_assets/aria-accordion.json +373 -0
- package/_adev_assets/aria-combobox.json +383 -0
- package/_adev_assets/aria-grid.json +578 -0
- package/_adev_assets/aria-listbox.json +511 -0
- package/_adev_assets/aria-menu.json +752 -0
- package/_adev_assets/aria-radio-group.json +389 -0
- package/_adev_assets/aria-tabs.json +987 -0
- package/_adev_assets/aria-toolbar.json +717 -0
- package/_adev_assets/aria-tree.json +1067 -0
- package/fesm2022/_widget-chunk.mjs +827 -0
- package/fesm2022/_widget-chunk.mjs.map +1 -0
- package/fesm2022/accordion.mjs +371 -172
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/aria.mjs +1 -2
- package/fesm2022/aria.mjs.map +1 -1
- package/fesm2022/combobox.mjs +304 -114
- package/fesm2022/combobox.mjs.map +1 -1
- package/fesm2022/deferred-content.mjs +89 -50
- package/fesm2022/deferred-content.mjs.map +1 -1
- package/fesm2022/grid.mjs +517 -0
- package/fesm2022/grid.mjs.map +1 -0
- package/fesm2022/listbox.mjs +384 -183
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +535 -0
- package/fesm2022/menu.mjs.map +1 -0
- package/fesm2022/private.mjs +2347 -0
- package/fesm2022/private.mjs.map +1 -0
- package/fesm2022/radio-group.mjs +320 -179
- package/fesm2022/radio-group.mjs.map +1 -1
- package/fesm2022/tabs.mjs +483 -274
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +330 -199
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tree.mjs +509 -264
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +14 -6
- package/types/_grid-chunk.d.ts +546 -0
- package/types/accordion.d.ts +4 -4
- package/types/combobox.d.ts +18 -5
- package/types/grid.d.ts +111 -0
- package/types/listbox.d.ts +6 -3
- package/types/menu.d.ts +158 -0
- package/types/{ui-patterns.d.ts → private.d.ts} +333 -133
- package/types/radio-group.d.ts +5 -3
- package/types/tabs.d.ts +4 -4
- package/types/toolbar.d.ts +4 -4
- package/types/tree.d.ts +7 -4
- package/fesm2022/ui-patterns.mjs +0 -2504
- package/fesm2022/ui-patterns.mjs.map +0 -1
package/types/grid.d.ts
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { Signal } from '@angular/core';
|
|
3
|
+
import { GridPattern, GridRowPattern, GridCellPattern, GridCellWidgetPattern } from './_grid-chunk.js';
|
|
4
|
+
|
|
5
|
+
/** A directive that provides grid-based navigation and selection behavior. */
|
|
6
|
+
declare class Grid {
|
|
7
|
+
/** A reference to the host element. */
|
|
8
|
+
private readonly _elementRef;
|
|
9
|
+
/** The rows that make up the grid. */
|
|
10
|
+
private readonly _rows;
|
|
11
|
+
/** The UI patterns for the rows in the grid. */
|
|
12
|
+
private readonly _rowPatterns;
|
|
13
|
+
/** The host native element. */
|
|
14
|
+
readonly element: Signal<any>;
|
|
15
|
+
/** Whether selection is enabled for the grid. */
|
|
16
|
+
readonly enableSelection: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
17
|
+
/** Whether the grid is disabled. */
|
|
18
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
19
|
+
/** Whether to skip disabled items during navigation. */
|
|
20
|
+
readonly skipDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
21
|
+
/** The focus strategy used by the grid. */
|
|
22
|
+
readonly focusMode: _angular_core.InputSignal<"roving" | "activedescendant">;
|
|
23
|
+
/** The wrapping behavior for keyboard navigation along the row axis. */
|
|
24
|
+
readonly rowWrap: _angular_core.InputSignal<"continuous" | "loop" | "nowrap">;
|
|
25
|
+
/** The wrapping behavior for keyboard navigation along the column axis. */
|
|
26
|
+
readonly colWrap: _angular_core.InputSignal<"continuous" | "loop" | "nowrap">;
|
|
27
|
+
/** The UI pattern for the grid. */
|
|
28
|
+
readonly _pattern: GridPattern;
|
|
29
|
+
constructor();
|
|
30
|
+
/** Gets the cell pattern for a given element. */
|
|
31
|
+
private _getCell;
|
|
32
|
+
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; }; "skipDisabled": { "alias": "skipDisabled"; "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; }; }, {}, ["_rows"], never, true, never>;
|
|
34
|
+
}
|
|
35
|
+
/** A directive that represents a row in a grid. */
|
|
36
|
+
declare class GridRow {
|
|
37
|
+
/** A reference to the host element. */
|
|
38
|
+
private readonly _elementRef;
|
|
39
|
+
/** The cells that make up this row. */
|
|
40
|
+
private readonly _cells;
|
|
41
|
+
/** The UI patterns for the cells in this row. */
|
|
42
|
+
private readonly _cellPatterns;
|
|
43
|
+
/** The parent grid. */
|
|
44
|
+
private readonly _grid;
|
|
45
|
+
/** The parent grid UI pattern. */
|
|
46
|
+
readonly grid: Signal<GridPattern>;
|
|
47
|
+
/** The host native element. */
|
|
48
|
+
readonly element: Signal<any>;
|
|
49
|
+
/** The ARIA role for the row. */
|
|
50
|
+
readonly role: _angular_core.InputSignal<"row" | "rowheader">;
|
|
51
|
+
/** The index of this row within the grid. */
|
|
52
|
+
readonly rowIndex: _angular_core.InputSignal<number | undefined>;
|
|
53
|
+
/** The UI pattern for the grid row. */
|
|
54
|
+
readonly _pattern: GridRowPattern;
|
|
55
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridRow, never>;
|
|
56
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridRow, "[ngGridRow]", ["ngGridRow"], { "role": { "alias": "role"; "required": false; "isSignal": true; }; "rowIndex": { "alias": "rowIndex"; "required": false; "isSignal": true; }; }, {}, ["_cells"], never, true, never>;
|
|
57
|
+
}
|
|
58
|
+
/** A directive that represents a cell in a grid. */
|
|
59
|
+
declare class GridCell {
|
|
60
|
+
/** A reference to the host element. */
|
|
61
|
+
private readonly _elementRef;
|
|
62
|
+
/** The widget contained within this cell, if any. */
|
|
63
|
+
private readonly _widgets;
|
|
64
|
+
/** The UI pattern for the widget in this cell. */
|
|
65
|
+
private readonly _widgetPattern;
|
|
66
|
+
/** The parent row. */
|
|
67
|
+
private readonly _row;
|
|
68
|
+
/** A unique identifier for the cell. */
|
|
69
|
+
private readonly _id;
|
|
70
|
+
/** The host native element. */
|
|
71
|
+
readonly element: Signal<any>;
|
|
72
|
+
/** The ARIA role for the cell. */
|
|
73
|
+
readonly role: _angular_core.InputSignal<"gridcell" | "columnheader">;
|
|
74
|
+
/** The number of rows the cell should span. */
|
|
75
|
+
readonly rowSpan: _angular_core.InputSignal<number>;
|
|
76
|
+
/** The number of columns the cell should span. */
|
|
77
|
+
readonly colSpan: _angular_core.InputSignal<number>;
|
|
78
|
+
/** The index of this cell's row within the grid. */
|
|
79
|
+
readonly rowIndex: _angular_core.InputSignal<number | undefined>;
|
|
80
|
+
/** The index of this cell's column within the grid. */
|
|
81
|
+
readonly colIndex: _angular_core.InputSignal<number | undefined>;
|
|
82
|
+
/** Whether the cell is disabled. */
|
|
83
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
84
|
+
/** Whether the cell is selected. */
|
|
85
|
+
readonly selected: _angular_core.ModelSignal<boolean>;
|
|
86
|
+
/** Whether the cell is selectable. */
|
|
87
|
+
readonly selectable: _angular_core.InputSignal<boolean>;
|
|
88
|
+
/** The UI pattern for the grid cell. */
|
|
89
|
+
readonly _pattern: GridCellPattern;
|
|
90
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridCell, never>;
|
|
91
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridCell, "[ngGridCell]", ["ngGridCell"], { "role": { "alias": "role"; "required": false; "isSignal": true; }; "rowSpan": { "alias": "rowSpan"; "required": false; "isSignal": true; }; "colSpan": { "alias": "colSpan"; "required": false; "isSignal": true; }; "rowIndex": { "alias": "rowIndex"; "required": false; "isSignal": true; }; "colIndex": { "alias": "colIndex"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; }, ["_widgets"], never, true, never>;
|
|
92
|
+
}
|
|
93
|
+
/** A directive that represents a widget inside a grid cell. */
|
|
94
|
+
declare class GridCellWidget {
|
|
95
|
+
/** A reference to the host element. */
|
|
96
|
+
private readonly _elementRef;
|
|
97
|
+
/** The parent cell. */
|
|
98
|
+
private readonly _cell;
|
|
99
|
+
/** The host native element. */
|
|
100
|
+
readonly element: Signal<any>;
|
|
101
|
+
/** Whether the widget is activated and the grid navigation should be paused. */
|
|
102
|
+
readonly activate: _angular_core.ModelSignal<boolean>;
|
|
103
|
+
/** The UI pattern for the grid cell widget. */
|
|
104
|
+
readonly _pattern: GridCellWidgetPattern;
|
|
105
|
+
/** Focuses the widget. */
|
|
106
|
+
focus(): void;
|
|
107
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridCellWidget, never>;
|
|
108
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridCellWidget, "[ngGridCellWidget]", ["ngGridCellWidget"], { "activate": { "alias": "activate"; "required": false; "isSignal": true; }; }, { "activate": "activateChange"; }, never, never, true, never>;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export { Grid, GridCell, GridCellWidget, GridRow };
|
package/types/listbox.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _angular_cdk_bidi from '@angular/cdk/bidi';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { OptionPattern, ListboxPattern } from '@angular/aria/
|
|
3
|
+
import { OptionPattern, ListboxPattern } from '@angular/aria/private';
|
|
4
4
|
import { ComboboxPopup } from './combobox.js';
|
|
5
5
|
import '@angular/aria/deferred-content';
|
|
6
6
|
|
|
@@ -56,11 +56,12 @@ declare class Listbox<V> {
|
|
|
56
56
|
/** The values of the current selected items. */
|
|
57
57
|
value: _angular_core.ModelSignal<V[]>;
|
|
58
58
|
/** The Listbox UIPattern. */
|
|
59
|
-
|
|
59
|
+
readonly _pattern: ListboxPattern<V>;
|
|
60
60
|
/** Whether the listbox has received focus yet. */
|
|
61
61
|
private _hasFocused;
|
|
62
62
|
constructor();
|
|
63
63
|
onFocus(): void;
|
|
64
|
+
scrollActiveItemIntoView(options?: ScrollIntoViewOptions): void;
|
|
64
65
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Listbox<any>, never>;
|
|
65
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; }; "skipDisabled": { "alias": "skipDisabled"; "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: {}; }]>;
|
|
66
67
|
}
|
|
@@ -86,8 +87,10 @@ declare class Option<V> {
|
|
|
86
87
|
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
87
88
|
/** The text used by the typeahead search. */
|
|
88
89
|
label: _angular_core.InputSignal<string | undefined>;
|
|
90
|
+
/** Whether the option is selected. */
|
|
91
|
+
readonly selected: _angular_core.Signal<boolean | undefined>;
|
|
89
92
|
/** The Option UIPattern. */
|
|
90
|
-
|
|
93
|
+
readonly _pattern: OptionPattern<V>;
|
|
91
94
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Option<any>, never>;
|
|
92
95
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<Option<any>, "[ngOption]", ["ngOption"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
93
96
|
}
|
package/types/menu.d.ts
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import * as _angular_cdk_bidi from '@angular/cdk/bidi';
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
|
+
import { Signal } from '@angular/core';
|
|
4
|
+
import { MenuTriggerPattern, MenuPattern, MenuItemPattern, SignalLike, MenuBarPattern } from '@angular/aria/private';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A trigger for a menu.
|
|
8
|
+
*
|
|
9
|
+
* The menu trigger is used to open and close menus, and can be placed on menu items to connect
|
|
10
|
+
* sub-menus.
|
|
11
|
+
*/
|
|
12
|
+
declare class MenuTrigger<V> {
|
|
13
|
+
/** A reference to the menu trigger element. */
|
|
14
|
+
private readonly _elementRef;
|
|
15
|
+
/** A reference to the menu element. */
|
|
16
|
+
readonly element: HTMLButtonElement;
|
|
17
|
+
/** The submenu associated with the menu trigger. */
|
|
18
|
+
submenu: _angular_core.InputSignal<Menu<V> | undefined>;
|
|
19
|
+
/** A callback function triggered when a menu item is selected. */
|
|
20
|
+
onSubmit: _angular_core.OutputEmitterRef<V>;
|
|
21
|
+
/** The menu trigger ui pattern instance. */
|
|
22
|
+
readonly _pattern: MenuTriggerPattern<V>;
|
|
23
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuTrigger<any>, never>;
|
|
24
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MenuTrigger<any>, "button[ngMenuTrigger]", ["ngMenuTrigger"], { "submenu": { "alias": "submenu"; "required": false; "isSignal": true; }; }, { "onSubmit": "onSubmit"; }, never, never, true, never>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A list of menu items.
|
|
28
|
+
*
|
|
29
|
+
* A menu is used to offer a list of menu item choices to users. Menus can be nested within other
|
|
30
|
+
* menus to create sub-menus.
|
|
31
|
+
*
|
|
32
|
+
* ```html
|
|
33
|
+
* <button ngMenuTrigger menu="menu">Options</button>
|
|
34
|
+
*
|
|
35
|
+
* <div ngMenu #menu="ngMenu">
|
|
36
|
+
* <div ngMenuItem>Star</div>
|
|
37
|
+
* <div ngMenuItem>Edit</div>
|
|
38
|
+
* <div ngMenuItem>Delete</div>
|
|
39
|
+
* </div>
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
declare class Menu<V> {
|
|
43
|
+
/** The menu items contained in the menu. */
|
|
44
|
+
readonly _allItems: Signal<readonly MenuItem<V>[]>;
|
|
45
|
+
/** The menu items that are direct children of this menu. */
|
|
46
|
+
readonly _items: Signal<MenuItem<V>[]>;
|
|
47
|
+
/** A reference to the menu element. */
|
|
48
|
+
private readonly _elementRef;
|
|
49
|
+
/** A reference to the menu element. */
|
|
50
|
+
readonly element: HTMLElement;
|
|
51
|
+
/** The directionality (LTR / RTL) context for the application (or a subtree of it). */
|
|
52
|
+
private readonly _directionality;
|
|
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>;
|
|
57
|
+
/** The unique ID of the menu. */
|
|
58
|
+
readonly id: _angular_core.InputSignal<string>;
|
|
59
|
+
/** Whether the menu should wrap its items. */
|
|
60
|
+
readonly wrap: _angular_core.InputSignal<boolean>;
|
|
61
|
+
/** The delay in seconds before the typeahead buffer is cleared. */
|
|
62
|
+
readonly typeaheadDelay: _angular_core.InputSignal<number>;
|
|
63
|
+
/** A reference to the parent menu item or menu trigger. */
|
|
64
|
+
readonly parent: _angular_core.InputSignal<MenuItem<V> | MenuTrigger<V> | undefined>;
|
|
65
|
+
/** The menu ui pattern instance. */
|
|
66
|
+
readonly _pattern: MenuPattern<V>;
|
|
67
|
+
/**
|
|
68
|
+
* The menu items as a writable signal.
|
|
69
|
+
*
|
|
70
|
+
* TODO(wagnermaciel): This would normally be a computed, but using a computed causes a bug where
|
|
71
|
+
* sometimes the items array is empty. The bug can be reproduced by switching this to use a
|
|
72
|
+
* computed and then quickly opening and closing menus in the dev app.
|
|
73
|
+
*/
|
|
74
|
+
readonly items: () => MenuItemPattern<V>[];
|
|
75
|
+
/** Whether the menu is visible. */
|
|
76
|
+
isVisible: Signal<boolean>;
|
|
77
|
+
/** A callback function triggered when a menu item is selected. */
|
|
78
|
+
onSubmit: _angular_core.OutputEmitterRef<V>;
|
|
79
|
+
constructor();
|
|
80
|
+
/** Closes the menu. */
|
|
81
|
+
close(opts?: {
|
|
82
|
+
refocus?: boolean;
|
|
83
|
+
}): void;
|
|
84
|
+
/** Closes all parent menus. */
|
|
85
|
+
closeAll(opts?: {
|
|
86
|
+
refocus?: boolean;
|
|
87
|
+
}): void;
|
|
88
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Menu<any>, never>;
|
|
89
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<Menu<any>, "[ngMenu]", ["ngMenu"], { "submenu": { "alias": "submenu"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "typeaheadDelay": { "alias": "typeaheadDelay"; "required": false; "isSignal": true; }; "parent": { "alias": "parent"; "required": false; "isSignal": true; }; }, { "onSubmit": "onSubmit"; }, ["_allItems"], never, true, never>;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* A menu bar of menu items.
|
|
93
|
+
*
|
|
94
|
+
* Like the menu, a menubar is used to offer a list of menu item choices to users. However, a
|
|
95
|
+
* menubar is used to display a persistent, top-level,
|
|
96
|
+
* always-visible set of menu item choices.
|
|
97
|
+
*/
|
|
98
|
+
declare class MenuBar<V> {
|
|
99
|
+
/** The menu items contained in the menubar. */
|
|
100
|
+
readonly _allItems: Signal<readonly MenuItem<V>[]>;
|
|
101
|
+
readonly _items: SignalLike<MenuItem<V>[]>;
|
|
102
|
+
/** A reference to the menu element. */
|
|
103
|
+
private readonly _elementRef;
|
|
104
|
+
/** A reference to the menubar element. */
|
|
105
|
+
readonly element: HTMLElement;
|
|
106
|
+
/** The directionality (LTR / RTL) context for the application (or a subtree of it). */
|
|
107
|
+
private readonly _directionality;
|
|
108
|
+
/** A signal wrapper for directionality. */
|
|
109
|
+
readonly textDirection: Signal<_angular_cdk_bidi.Direction>;
|
|
110
|
+
/** The value of the menu. */
|
|
111
|
+
readonly value: _angular_core.ModelSignal<V[]>;
|
|
112
|
+
/** Whether the menu should wrap its items. */
|
|
113
|
+
readonly wrap: _angular_core.InputSignal<boolean>;
|
|
114
|
+
/** The delay in seconds before the typeahead buffer is cleared. */
|
|
115
|
+
readonly typeaheadDelay: _angular_core.InputSignal<number>;
|
|
116
|
+
/** The menu ui pattern instance. */
|
|
117
|
+
readonly _pattern: MenuBarPattern<V>;
|
|
118
|
+
/** The menu items as a writable signal. */
|
|
119
|
+
readonly items: _angular_core.WritableSignal<MenuItemPattern<V>[]>;
|
|
120
|
+
/** A callback function triggered when a menu item is selected. */
|
|
121
|
+
onSubmit: _angular_core.OutputEmitterRef<V>;
|
|
122
|
+
constructor();
|
|
123
|
+
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"; "onSubmit": "onSubmit"; }, ["_allItems"], never, true, never>;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* An item in a Menu.
|
|
128
|
+
*
|
|
129
|
+
* Menu items can be used in menus and menubars to represent a choice or action a user can take.
|
|
130
|
+
*/
|
|
131
|
+
declare class MenuItem<V> {
|
|
132
|
+
/** A reference to the menu item element. */
|
|
133
|
+
private readonly _elementRef;
|
|
134
|
+
/** A reference to the menu element. */
|
|
135
|
+
readonly element: HTMLElement;
|
|
136
|
+
/** The unique ID of the menu item. */
|
|
137
|
+
readonly id: _angular_core.InputSignal<string>;
|
|
138
|
+
/** The value of the menu item. */
|
|
139
|
+
readonly value: _angular_core.InputSignal<V>;
|
|
140
|
+
/** Whether the menu item is disabled. */
|
|
141
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
142
|
+
/** The search term associated with the menu item. */
|
|
143
|
+
readonly searchTerm: _angular_core.ModelSignal<string>;
|
|
144
|
+
/** A reference to the parent menu. */
|
|
145
|
+
private readonly _menu;
|
|
146
|
+
/** A reference to the parent menu bar. */
|
|
147
|
+
private readonly _menuBar;
|
|
148
|
+
/** A reference to the parent menu or menubar. */
|
|
149
|
+
readonly parent: Menu<V> | MenuBar<V> | null;
|
|
150
|
+
/** The submenu associated with the menu item. */
|
|
151
|
+
readonly submenu: _angular_core.InputSignal<Menu<V> | undefined>;
|
|
152
|
+
/** The menu item ui pattern instance. */
|
|
153
|
+
readonly _pattern: MenuItemPattern<V>;
|
|
154
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuItem<any>, never>;
|
|
155
|
+
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
|
+
}
|
|
157
|
+
|
|
158
|
+
export { Menu, MenuBar, MenuItem, MenuTrigger };
|