@angular/aria 22.2.0-next.3 → 22.2.0-next.4
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/_menu-chunk.mjs +6 -4
- package/fesm2022/_menu-chunk.mjs.map +1 -1
- package/fesm2022/_toolbar-widget-group-chunk.mjs +34 -53
- package/fesm2022/_toolbar-widget-group-chunk.mjs.map +1 -1
- package/fesm2022/accordion.mjs +12 -12
- package/fesm2022/aria.mjs +1 -1
- package/fesm2022/aria.mjs.map +1 -1
- package/fesm2022/combobox.mjs +11 -10
- package/fesm2022/combobox.mjs.map +1 -1
- package/fesm2022/grid.mjs +12 -12
- package/fesm2022/listbox.mjs +6 -6
- package/fesm2022/menu.mjs +18 -18
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/private.mjs +6 -1
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/tabs.mjs +15 -15
- package/fesm2022/toolbar.mjs +11 -86
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tree.mjs +9 -9
- package/package.json +2 -2
- package/types/_menu-chunk.d.ts +15 -11
- package/types/_toolbar-chunk.d.ts +52 -48
- package/types/menu.d.ts +4 -4
- package/types/private.d.ts +6 -0
- package/types/toolbar.d.ts +26 -35
|
@@ -1,42 +1,40 @@
|
|
|
1
1
|
import { SignalLike, WritableSignalLike } from './_collection-chunk.js';
|
|
2
|
-
import {
|
|
2
|
+
import { ListFocusItem, ListNavigationItem, ListFocus, ListNavigation } from './_list-navigation-chunk.js';
|
|
3
3
|
|
|
4
4
|
/** Represents the required inputs for a toolbar widget group. */
|
|
5
|
-
interface ToolbarWidgetGroupInputs
|
|
5
|
+
interface ToolbarWidgetGroupInputs {
|
|
6
6
|
/** A reference to the parent toolbar. */
|
|
7
|
-
toolbar: SignalLike<ToolbarPattern
|
|
7
|
+
toolbar: SignalLike<ToolbarPattern | undefined>;
|
|
8
8
|
/** Whether the widget group is disabled. */
|
|
9
9
|
disabled: SignalLike<boolean>;
|
|
10
10
|
/** The list of items within the widget group. */
|
|
11
|
-
items: SignalLike<
|
|
12
|
-
/** Whether the group allows multiple widgets to be selected. */
|
|
13
|
-
multi: SignalLike<boolean>;
|
|
11
|
+
items: SignalLike<ToolbarWidgetPattern[]>;
|
|
14
12
|
}
|
|
15
13
|
/** A group of widgets within a toolbar that provides nested navigation. */
|
|
16
|
-
declare class ToolbarWidgetGroupPattern
|
|
17
|
-
readonly inputs: ToolbarWidgetGroupInputs
|
|
14
|
+
declare class ToolbarWidgetGroupPattern {
|
|
15
|
+
readonly inputs: ToolbarWidgetGroupInputs;
|
|
18
16
|
/** Whether the widget is disabled. */
|
|
19
17
|
readonly disabled: () => boolean;
|
|
20
18
|
/** A reference to the parent toolbar. */
|
|
21
|
-
readonly toolbar: () => ToolbarPattern
|
|
22
|
-
|
|
23
|
-
readonly multi: () => boolean;
|
|
24
|
-
readonly searchTerm: () => string;
|
|
25
|
-
readonly value: () => V;
|
|
26
|
-
readonly selectable: () => boolean;
|
|
27
|
-
readonly element: () => undefined;
|
|
28
|
-
constructor(inputs: ToolbarWidgetGroupInputs<T, V>);
|
|
19
|
+
readonly toolbar: () => ToolbarPattern | undefined;
|
|
20
|
+
constructor(inputs: ToolbarWidgetGroupInputs);
|
|
29
21
|
}
|
|
30
22
|
|
|
31
23
|
/** Represents the required inputs for a toolbar widget in a toolbar. */
|
|
32
|
-
interface ToolbarWidgetInputs
|
|
24
|
+
interface ToolbarWidgetInputs {
|
|
25
|
+
/** A unique identifier for the widget. */
|
|
26
|
+
id: SignalLike<string>;
|
|
27
|
+
/** The html element that should receive focus. */
|
|
28
|
+
element: SignalLike<HTMLElement | undefined>;
|
|
29
|
+
/** Whether the widget is disabled. */
|
|
30
|
+
disabled: SignalLike<boolean>;
|
|
33
31
|
/** A reference to the parent toolbar. */
|
|
34
|
-
toolbar: SignalLike<ToolbarPattern
|
|
32
|
+
toolbar: SignalLike<ToolbarPattern>;
|
|
35
33
|
/** A reference to the parent widget group. */
|
|
36
|
-
group: SignalLike<ToolbarWidgetGroupPattern
|
|
34
|
+
group: SignalLike<ToolbarWidgetGroupPattern | undefined>;
|
|
37
35
|
}
|
|
38
|
-
declare class ToolbarWidgetPattern
|
|
39
|
-
readonly inputs: ToolbarWidgetInputs
|
|
36
|
+
declare class ToolbarWidgetPattern implements ListFocusItem, ListNavigationItem {
|
|
37
|
+
readonly inputs: ToolbarWidgetInputs;
|
|
40
38
|
/** A unique identifier for the widget. */
|
|
41
39
|
readonly id: () => string;
|
|
42
40
|
/** The html element that should receive focus. */
|
|
@@ -44,50 +42,60 @@ declare class ToolbarWidgetPattern<V> implements ListItem<V> {
|
|
|
44
42
|
/** Whether the widget is disabled. */
|
|
45
43
|
readonly disabled: () => boolean;
|
|
46
44
|
/** A reference to the parent toolbar. */
|
|
47
|
-
readonly group: () => ToolbarWidgetGroupPattern
|
|
45
|
+
readonly group: () => ToolbarWidgetGroupPattern | undefined;
|
|
48
46
|
/** A reference to the toolbar containing the widget. */
|
|
49
|
-
readonly toolbar: () => ToolbarPattern
|
|
47
|
+
readonly toolbar: () => ToolbarPattern;
|
|
50
48
|
/** The tabindex of the widget. */
|
|
51
49
|
readonly tabIndex: SignalLike<-1 | 0>;
|
|
52
|
-
/** The text used by the typeahead search. */
|
|
53
|
-
readonly searchTerm: () => string;
|
|
54
|
-
/** The value associated with the widget. */
|
|
55
|
-
readonly value: () => V;
|
|
56
|
-
/** Whether the widget is selectable. */
|
|
57
|
-
readonly selectable: () => boolean;
|
|
58
50
|
/** The position of the widget within the toolbar. */
|
|
59
51
|
readonly index: SignalLike<number>;
|
|
60
|
-
/** Whether the widget is selected (only relevant in a selection group). */
|
|
61
|
-
readonly selected: SignalLike<boolean>;
|
|
62
52
|
/** Whether the widget is currently the active one (focused). */
|
|
63
53
|
readonly active: SignalLike<boolean>;
|
|
64
|
-
constructor(inputs: ToolbarWidgetInputs
|
|
54
|
+
constructor(inputs: ToolbarWidgetInputs);
|
|
65
55
|
}
|
|
66
56
|
|
|
67
57
|
/** Represents the required inputs for a toolbar. */
|
|
68
|
-
type ToolbarInputs
|
|
58
|
+
type ToolbarInputs = {
|
|
59
|
+
/** The html element that should receive focus. */
|
|
60
|
+
element: SignalLike<HTMLElement | undefined>;
|
|
61
|
+
/** The active item. */
|
|
62
|
+
activeItem: WritableSignalLike<ToolbarWidgetPattern | undefined>;
|
|
63
|
+
/** The items in the toolbar. */
|
|
64
|
+
items: SignalLike<ToolbarWidgetPattern[]>;
|
|
65
|
+
/** Whether disabled items in the toolbar should be focusable. */
|
|
66
|
+
softDisabled: SignalLike<boolean>;
|
|
67
|
+
/** Whether the toolbar is disabled. */
|
|
68
|
+
disabled: SignalLike<boolean>;
|
|
69
|
+
/** Whether the toolbar is vertically or horizontally oriented. */
|
|
70
|
+
orientation: SignalLike<'vertical' | 'horizontal'>;
|
|
71
|
+
/** The direction that text is read based on the users locale. */
|
|
72
|
+
textDirection: SignalLike<'rtl' | 'ltr'>;
|
|
73
|
+
/** Whether focus should wrap when navigating. */
|
|
74
|
+
wrap: SignalLike<boolean>;
|
|
69
75
|
/** A function that returns the toolbar item associated with a given element. */
|
|
70
|
-
getItem: (e: Element) => ToolbarWidgetPattern
|
|
76
|
+
getItem: (e: Element) => ToolbarWidgetPattern | undefined;
|
|
71
77
|
};
|
|
72
78
|
/** Controls the state of a toolbar. */
|
|
73
|
-
declare class ToolbarPattern
|
|
74
|
-
readonly inputs: ToolbarInputs
|
|
75
|
-
/**
|
|
76
|
-
readonly
|
|
79
|
+
declare class ToolbarPattern {
|
|
80
|
+
readonly inputs: ToolbarInputs;
|
|
81
|
+
/** Controls focus for the toolbar. */
|
|
82
|
+
readonly focusManager: ListFocus<ToolbarWidgetPattern>;
|
|
83
|
+
/** Controls navigation for the toolbar. */
|
|
84
|
+
readonly navigationBehavior: ListNavigation<ToolbarWidgetPattern>;
|
|
77
85
|
/** Whether the toolbar has been interacted with. */
|
|
78
86
|
readonly hasBeenInteracted: WritableSignalLike<boolean>;
|
|
79
|
-
/** Whether the
|
|
87
|
+
/** Whether the toolbar is vertically or horizontally oriented. */
|
|
80
88
|
readonly orientation: SignalLike<'vertical' | 'horizontal'>;
|
|
81
89
|
/** Whether disabled items in the group should be focusable. */
|
|
82
90
|
readonly softDisabled: SignalLike<boolean>;
|
|
83
91
|
/** Whether the toolbar is disabled. */
|
|
84
92
|
readonly disabled: SignalLike<boolean>;
|
|
85
|
-
/** The tab index of the toolbar
|
|
93
|
+
/** The tab index of the toolbar. */
|
|
86
94
|
readonly tabIndex: SignalLike<-1 | 0>;
|
|
87
|
-
/** The id of the current active widget
|
|
95
|
+
/** The id of the current active widget. */
|
|
88
96
|
readonly activeDescendant: SignalLike<string | undefined>;
|
|
89
97
|
/** The currently active item in the toolbar. */
|
|
90
|
-
readonly activeItem: () => ToolbarWidgetPattern
|
|
98
|
+
readonly activeItem: () => ToolbarWidgetPattern | undefined;
|
|
91
99
|
/** The key used to navigate to the previous widget. */
|
|
92
100
|
private readonly _prevKey;
|
|
93
101
|
/** The key used to navigate to the next widget. */
|
|
@@ -104,10 +112,7 @@ declare class ToolbarPattern<V> {
|
|
|
104
112
|
private _groupPrev;
|
|
105
113
|
/** Navigates to the widget targeted by a pointer event. */
|
|
106
114
|
private _goto;
|
|
107
|
-
|
|
108
|
-
constructor(inputs: ToolbarInputs<V>);
|
|
109
|
-
/** Returns a set of violations */
|
|
110
|
-
validate(): string[];
|
|
115
|
+
constructor(inputs: ToolbarInputs);
|
|
111
116
|
/** Handles keydown events for the toolbar. */
|
|
112
117
|
onKeydown(event: KeyboardEvent): void;
|
|
113
118
|
onPointerdown(event: PointerEvent): void;
|
|
@@ -117,8 +122,7 @@ declare class ToolbarPattern<V> {
|
|
|
117
122
|
/**
|
|
118
123
|
* Sets the toolbar to its default initial state.
|
|
119
124
|
*
|
|
120
|
-
* Sets the active index to the
|
|
121
|
-
* Otherwise, sets the active index to the first focusable widget.
|
|
125
|
+
* Sets the active index to the first focusable widget.
|
|
122
126
|
*/
|
|
123
127
|
setDefaultState(): void;
|
|
124
128
|
/** Sets the default active state of the toolbar before receiving interaction for the first time. */
|
package/types/menu.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ declare class MenuBar<V> implements OnDestroy {
|
|
|
60
60
|
/** The menu items as a writable signal. */
|
|
61
61
|
private readonly _itemPatterns;
|
|
62
62
|
/** A callback function triggered when a menu item is selected. */
|
|
63
|
-
readonly itemSelected: _angular_core.OutputEmitterRef<V>;
|
|
63
|
+
readonly itemSelected: _angular_core.OutputEmitterRef<V | undefined>;
|
|
64
64
|
constructor();
|
|
65
65
|
ngOnDestroy(): void;
|
|
66
66
|
/** Closes the menubar. */
|
|
@@ -93,7 +93,7 @@ declare class MenuItem<V> implements OnInit, OnDestroy {
|
|
|
93
93
|
/** The unique ID of the menu item. */
|
|
94
94
|
readonly id: _angular_core.InputSignal<string>;
|
|
95
95
|
/** The value of the menu item. */
|
|
96
|
-
readonly value: _angular_core.InputSignal<V>;
|
|
96
|
+
readonly value: _angular_core.InputSignal<V | undefined>;
|
|
97
97
|
/** Whether the menu item is disabled. */
|
|
98
98
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
99
99
|
/** The search term associated with the menu item. */
|
|
@@ -120,7 +120,7 @@ declare class MenuItem<V> implements OnInit, OnDestroy {
|
|
|
120
120
|
/** Closes the submenu. */
|
|
121
121
|
close(): void;
|
|
122
122
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuItem<any>, never>;
|
|
123
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MenuItem<any>, "[ngMenuItem]", ["ngMenuItem"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required":
|
|
123
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MenuItem<any>, "[ngMenuItem]", ["ngMenuItem"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "searchTerm": { "alias": "searchTerm"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "submenu": { "alias": "submenu"; "required": false; "isSignal": true; }; }, { "searchTerm": "searchTermChange"; }, never, never, true, never>;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
/**
|
|
@@ -191,7 +191,7 @@ declare class Menu<V> implements OnDestroy {
|
|
|
191
191
|
/** The tab index of the menu. */
|
|
192
192
|
readonly tabIndex: Signal<-1 | 0>;
|
|
193
193
|
/** A callback function triggered when a menu item is selected. */
|
|
194
|
-
readonly itemSelected: _angular_core.OutputEmitterRef<V>;
|
|
194
|
+
readonly itemSelected: _angular_core.OutputEmitterRef<V | undefined>;
|
|
195
195
|
/** The delay in milliseconds before expanding sub-menus on hover. */
|
|
196
196
|
readonly expansionDelay: _angular_core.InputSignal<number>;
|
|
197
197
|
constructor();
|
package/types/private.d.ts
CHANGED
|
@@ -96,6 +96,8 @@ declare class ComboboxPattern {
|
|
|
96
96
|
onFocusin(): void;
|
|
97
97
|
/** Handles focus out events for the combobox. */
|
|
98
98
|
onFocusout(): void;
|
|
99
|
+
/** Closes the popup once focus has left both the combobox and the popup. */
|
|
100
|
+
closePopupOnFocusout(): void;
|
|
99
101
|
/** Handles input events for the combobox. */
|
|
100
102
|
onInput(event: Event): void;
|
|
101
103
|
/** Highlights the currently selected item in the combobox. */
|
|
@@ -113,6 +115,8 @@ interface ComboboxPopupInputs {
|
|
|
113
115
|
activeDescendant: SignalLike<string | undefined>;
|
|
114
116
|
/** The ID of the popup. */
|
|
115
117
|
popupId: SignalLike<string | undefined>;
|
|
118
|
+
/** A reference to the parent combobox. */
|
|
119
|
+
combobox: SignalLike<ComboboxPattern | undefined>;
|
|
116
120
|
}
|
|
117
121
|
/** Controls the state of a simple combobox popup. */
|
|
118
122
|
declare class ComboboxPopupPattern {
|
|
@@ -125,6 +129,8 @@ declare class ComboboxPopupPattern {
|
|
|
125
129
|
readonly activeDescendant: () => string | undefined;
|
|
126
130
|
/** The ID of the popup. */
|
|
127
131
|
readonly popupId: () => string | undefined;
|
|
132
|
+
/** A reference to the parent combobox. */
|
|
133
|
+
readonly combobox: () => ComboboxPattern | undefined;
|
|
128
134
|
/** Whether the popup is focused. */
|
|
129
135
|
readonly isFocused: _angular_core.WritableSignal<boolean>;
|
|
130
136
|
constructor(inputs: ComboboxPopupInputs);
|
package/types/toolbar.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnInit, OnDestroy, InjectionToken } from '@angular/core';
|
|
3
3
|
import * as _angular_cdk_bidi from '@angular/cdk/bidi';
|
|
4
|
-
import { ToolbarWidgetGroupPattern,
|
|
4
|
+
import { ToolbarWidgetGroupPattern, ToolbarPattern, ToolbarWidgetPattern } from './private.js';
|
|
5
5
|
import { SortedCollection } from './private.js';
|
|
6
|
-
import './_list-chunk.js';
|
|
7
6
|
import './_list-navigation-chunk.js';
|
|
8
7
|
|
|
9
8
|
/**
|
|
@@ -12,7 +11,7 @@ import './_list-navigation-chunk.js';
|
|
|
12
11
|
*
|
|
13
12
|
* @see [Toolbar](guide/aria/toolbar)
|
|
14
13
|
*/
|
|
15
|
-
declare class ToolbarWidgetGroup
|
|
14
|
+
declare class ToolbarWidgetGroup {
|
|
16
15
|
/** A reference to the host element. */
|
|
17
16
|
private readonly _elementRef;
|
|
18
17
|
/** A reference to the host element. */
|
|
@@ -27,13 +26,11 @@ declare class ToolbarWidgetGroup<V> {
|
|
|
27
26
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
28
27
|
/** The list of toolbar items within the group. */
|
|
29
28
|
private readonly _itemPatterns;
|
|
30
|
-
/** Whether the group allows multiple widgets to be selected. */
|
|
31
|
-
readonly multi: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
32
29
|
/** The ToolbarWidgetGroup UIPattern. */
|
|
33
|
-
readonly _pattern: ToolbarWidgetGroupPattern
|
|
30
|
+
readonly _pattern: ToolbarWidgetGroupPattern;
|
|
34
31
|
constructor();
|
|
35
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToolbarWidgetGroup
|
|
36
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ToolbarWidgetGroup
|
|
32
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToolbarWidgetGroup, never>;
|
|
33
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ToolbarWidgetGroup, "[ngToolbarWidgetGroup]", ["ngToolbarWidgetGroup"], { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, ["_widgets"], never, true, never>;
|
|
37
34
|
}
|
|
38
35
|
|
|
39
36
|
/**
|
|
@@ -41,17 +38,17 @@ declare class ToolbarWidgetGroup<V> {
|
|
|
41
38
|
*
|
|
42
39
|
* The `ngToolbarWidget` directive should be applied to any native HTML element that acts
|
|
43
40
|
* as an interactive widget within an `ngToolbar` or `ngToolbarWidgetGroup`. It enables
|
|
44
|
-
* keyboard navigation
|
|
41
|
+
* keyboard navigation within the toolbar.
|
|
45
42
|
*
|
|
46
43
|
* ```html
|
|
47
|
-
* <button ngToolbarWidget
|
|
44
|
+
* <button ngToolbarWidget [disabled]="isDisabled">
|
|
48
45
|
* Perform Action
|
|
49
46
|
* </button>
|
|
50
47
|
* ```
|
|
51
48
|
*
|
|
52
49
|
* @see [Toolbar](guide/aria/toolbar)
|
|
53
50
|
*/
|
|
54
|
-
declare class ToolbarWidget
|
|
51
|
+
declare class ToolbarWidget implements OnInit, OnDestroy {
|
|
55
52
|
/** A reference to the host element. */
|
|
56
53
|
private readonly _elementRef;
|
|
57
54
|
/** A reference to the host element. */
|
|
@@ -61,26 +58,22 @@ declare class ToolbarWidget<V> implements OnInit, OnDestroy {
|
|
|
61
58
|
/** A unique identifier for the widget. */
|
|
62
59
|
readonly id: _angular_core.InputSignal<string>;
|
|
63
60
|
/** The parent Toolbar UIPattern. */
|
|
64
|
-
readonly _toolbarPattern: _angular_core.Signal<ToolbarPattern
|
|
61
|
+
readonly _toolbarPattern: _angular_core.Signal<ToolbarPattern>;
|
|
65
62
|
/** Whether the widget is disabled. */
|
|
66
63
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
67
64
|
/** Whether the widget is 'hard' disabled, which is different from `aria-disabled`. A hard disabled widget cannot receive focus. */
|
|
68
65
|
readonly hardDisabled: _angular_core.Signal<boolean>;
|
|
69
66
|
/** The optional ToolbarWidgetGroup this widget belongs to. */
|
|
70
|
-
readonly _group: ToolbarWidgetGroup
|
|
71
|
-
/** The value associated with the widget. */
|
|
72
|
-
readonly value: _angular_core.InputSignal<V>;
|
|
67
|
+
readonly _group: ToolbarWidgetGroup | null;
|
|
73
68
|
/** Whether the widget is currently active (focused). */
|
|
74
69
|
readonly active: _angular_core.Signal<boolean>;
|
|
75
|
-
/** Whether the widget is selected (only relevant in a selection group). */
|
|
76
|
-
readonly selected: () => boolean;
|
|
77
70
|
private readonly _groupPattern;
|
|
78
71
|
/** The ToolbarWidget UIPattern. */
|
|
79
|
-
readonly _pattern: ToolbarWidgetPattern
|
|
72
|
+
readonly _pattern: ToolbarWidgetPattern;
|
|
80
73
|
ngOnInit(): void;
|
|
81
74
|
ngOnDestroy(): void;
|
|
82
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToolbarWidget
|
|
83
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ToolbarWidget
|
|
75
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToolbarWidget, never>;
|
|
76
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ToolbarWidget, "[ngToolbarWidget]", ["ngToolbarWidget"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
84
77
|
}
|
|
85
78
|
|
|
86
79
|
/**
|
|
@@ -90,30 +83,30 @@ declare class ToolbarWidget<V> implements OnInit, OnDestroy {
|
|
|
90
83
|
*
|
|
91
84
|
* ```html
|
|
92
85
|
* <div ngToolbar orientation="horizontal" [wrap]="true">
|
|
93
|
-
* <button ngToolbarWidget
|
|
94
|
-
* <button ngToolbarWidget
|
|
86
|
+
* <button ngToolbarWidget>Save</button>
|
|
87
|
+
* <button ngToolbarWidget>Print</button>
|
|
95
88
|
*
|
|
96
|
-
* <div ngToolbarWidgetGroup
|
|
97
|
-
* <button ngToolbarWidget
|
|
98
|
-
* <button ngToolbarWidget
|
|
99
|
-
* <button ngToolbarWidget
|
|
89
|
+
* <div ngToolbarWidgetGroup>
|
|
90
|
+
* <button ngToolbarWidget>Left</button>
|
|
91
|
+
* <button ngToolbarWidget>Center</button>
|
|
92
|
+
* <button ngToolbarWidget>Right</button>
|
|
100
93
|
* </div>
|
|
101
94
|
* </div>
|
|
102
95
|
* ```
|
|
103
96
|
*
|
|
104
97
|
* @see [Toolbar](guide/aria/toolbar)
|
|
105
98
|
*/
|
|
106
|
-
declare class Toolbar
|
|
99
|
+
declare class Toolbar implements OnDestroy {
|
|
107
100
|
/** A reference to the host element. */
|
|
108
101
|
private readonly _elementRef;
|
|
109
102
|
/** A reference to the host element. */
|
|
110
103
|
readonly element: HTMLElement;
|
|
111
104
|
/** The collection of widgets in the toolbar. */
|
|
112
|
-
readonly _collection: SortedCollection<ToolbarWidget
|
|
105
|
+
readonly _collection: SortedCollection<ToolbarWidget>;
|
|
113
106
|
/** Text direction. */
|
|
114
107
|
readonly textDirection: _angular_core.WritableSignal<_angular_cdk_bidi.Direction>;
|
|
115
108
|
/** Sorted UIPatterns of the child widgets */
|
|
116
|
-
readonly _itemPatterns: _angular_core.Signal<ToolbarWidgetPattern
|
|
109
|
+
readonly _itemPatterns: _angular_core.Signal<ToolbarWidgetPattern[]>;
|
|
117
110
|
/** Whether the toolbar is vertically or horizontally oriented. */
|
|
118
111
|
readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
|
|
119
112
|
/**
|
|
@@ -125,19 +118,17 @@ declare class Toolbar<V> implements OnDestroy {
|
|
|
125
118
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
126
119
|
/** Whether focus should wrap when navigating. */
|
|
127
120
|
readonly wrap: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
128
|
-
/** The values of the selected widgets within the toolbar. */
|
|
129
|
-
readonly value: _angular_core.ModelSignal<V[]>;
|
|
130
121
|
/** The toolbar UIPattern. */
|
|
131
|
-
readonly _pattern: ToolbarPattern
|
|
122
|
+
readonly _pattern: ToolbarPattern;
|
|
132
123
|
constructor();
|
|
133
124
|
ngOnDestroy(): void;
|
|
134
125
|
/** Finds the toolbar item associated with a given element. */
|
|
135
126
|
private _getItem;
|
|
136
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Toolbar
|
|
137
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<Toolbar
|
|
127
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Toolbar, never>;
|
|
128
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<Toolbar, "[ngToolbar]", ["ngToolbar"], { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "softDisabled": { "alias": "softDisabled"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
138
129
|
}
|
|
139
130
|
|
|
140
131
|
/** Token used to provide the `ToolbarWidgetGroup` directive. */
|
|
141
|
-
declare const TOOLBAR_WIDGET_GROUP: InjectionToken<ToolbarWidgetGroup
|
|
132
|
+
declare const TOOLBAR_WIDGET_GROUP: InjectionToken<ToolbarWidgetGroup>;
|
|
142
133
|
|
|
143
134
|
export { TOOLBAR_WIDGET_GROUP, Toolbar, ToolbarWidget, ToolbarWidgetGroup };
|