@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/radio-group.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 { RadioButtonPattern, RadioGroupPattern } from '@angular/aria/
|
|
4
|
+
import { RadioButtonPattern, RadioGroupPattern } from '@angular/aria/private';
|
|
5
5
|
import * as i1 from '@angular/aria/toolbar';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -47,7 +47,7 @@ declare class RadioGroup<V> {
|
|
|
47
47
|
/** The internal selection state for the radio group. */
|
|
48
48
|
private readonly _value;
|
|
49
49
|
/** The RadioGroup UIPattern. */
|
|
50
|
-
readonly
|
|
50
|
+
readonly _pattern: RadioGroupPattern<V>;
|
|
51
51
|
/** Whether the radio group has received focus yet. */
|
|
52
52
|
private _hasFocused;
|
|
53
53
|
constructor();
|
|
@@ -73,8 +73,10 @@ declare class RadioButton<V> {
|
|
|
73
73
|
element: _angular_core.Signal<any>;
|
|
74
74
|
/** Whether the radio button is disabled. */
|
|
75
75
|
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
76
|
+
/** Whether the radio button is selected. */
|
|
77
|
+
readonly selected: _angular_core.Signal<boolean>;
|
|
76
78
|
/** The RadioButton UIPattern. */
|
|
77
|
-
|
|
79
|
+
readonly _pattern: RadioButtonPattern<V>;
|
|
78
80
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RadioButton<any>, never>;
|
|
79
81
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RadioButton<any>, "[ngRadioButton]", ["ngRadioButton"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
80
82
|
}
|
package/types/tabs.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { Signal, OnInit, OnDestroy } from '@angular/core';
|
|
3
3
|
import * as _angular_cdk_bidi from '@angular/cdk/bidi';
|
|
4
|
-
import { TabPattern, TabPanelPattern, TabListPattern } from '@angular/aria/
|
|
4
|
+
import { TabPattern, TabPanelPattern, TabListPattern } from '@angular/aria/private';
|
|
5
5
|
import * as i1 from '@angular/aria/deferred-content';
|
|
6
6
|
|
|
7
7
|
interface HasElement {
|
|
@@ -79,7 +79,7 @@ declare class TabList implements OnInit, OnDestroy {
|
|
|
79
79
|
/** The current selected tab. */
|
|
80
80
|
readonly selectedTab: _angular_core.ModelSignal<string | undefined>;
|
|
81
81
|
/** The TabList UIPattern. */
|
|
82
|
-
readonly
|
|
82
|
+
readonly _pattern: TabListPattern;
|
|
83
83
|
/** Whether the tree has received focus yet. */
|
|
84
84
|
private _hasFocused;
|
|
85
85
|
constructor();
|
|
@@ -112,7 +112,7 @@ declare class Tab implements HasElement, OnInit, OnDestroy {
|
|
|
112
112
|
/** A local unique identifier for the tab. */
|
|
113
113
|
readonly value: _angular_core.InputSignal<string>;
|
|
114
114
|
/** The Tab UIPattern. */
|
|
115
|
-
readonly
|
|
115
|
+
readonly _pattern: TabPattern;
|
|
116
116
|
ngOnInit(): void;
|
|
117
117
|
ngOnDestroy(): void;
|
|
118
118
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Tab, never>;
|
|
@@ -138,7 +138,7 @@ declare class TabPanel implements OnInit, OnDestroy {
|
|
|
138
138
|
/** A local unique identifier for the tabpanel. */
|
|
139
139
|
readonly value: _angular_core.InputSignal<string>;
|
|
140
140
|
/** The TabPanel UIPattern. */
|
|
141
|
-
readonly
|
|
141
|
+
readonly _pattern: TabPanelPattern;
|
|
142
142
|
constructor();
|
|
143
143
|
ngOnInit(): void;
|
|
144
144
|
ngOnDestroy(): void;
|
package/types/toolbar.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { Signal, OnInit, OnDestroy } from '@angular/core';
|
|
3
3
|
import * as _angular_cdk_bidi from '@angular/cdk/bidi';
|
|
4
|
-
import { ToolbarWidgetPattern, ToolbarWidgetGroupPattern, ToolbarPattern, ToolbarWidgetGroupControls } from '@angular/aria/
|
|
4
|
+
import { ToolbarWidgetPattern, ToolbarWidgetGroupPattern, ToolbarPattern, ToolbarWidgetGroupControls } from '@angular/aria/private';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* A toolbar widget container.
|
|
@@ -39,7 +39,7 @@ declare class Toolbar<V> {
|
|
|
39
39
|
/** Whether focus should wrap when navigating. */
|
|
40
40
|
readonly wrap: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
41
41
|
/** The toolbar UIPattern. */
|
|
42
|
-
readonly
|
|
42
|
+
readonly _pattern: ToolbarPattern<V>;
|
|
43
43
|
/** Whether the toolbar has received focus yet. */
|
|
44
44
|
private _hasFocused;
|
|
45
45
|
constructor();
|
|
@@ -75,7 +75,7 @@ declare class ToolbarWidget<V> implements OnInit, OnDestroy {
|
|
|
75
75
|
/** Whether the widget is 'hard' disabled, which is different from `aria-disabled`. A hard disabled widget cannot receive focus. */
|
|
76
76
|
readonly hardDisabled: Signal<boolean>;
|
|
77
77
|
/** The ToolbarWidget UIPattern. */
|
|
78
|
-
readonly
|
|
78
|
+
readonly _pattern: ToolbarWidgetPattern<V>;
|
|
79
79
|
ngOnInit(): void;
|
|
80
80
|
ngOnDestroy(): void;
|
|
81
81
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToolbarWidget<any>, never>;
|
|
@@ -103,7 +103,7 @@ declare class ToolbarWidgetGroup<V> implements OnInit, OnDestroy {
|
|
|
103
103
|
/** The controls that can be performed on the widget group. */
|
|
104
104
|
readonly controls: _angular_core.WritableSignal<ToolbarWidgetGroupControls | undefined>;
|
|
105
105
|
/** The ToolbarWidgetGroup UIPattern. */
|
|
106
|
-
readonly
|
|
106
|
+
readonly _pattern: ToolbarWidgetGroupPattern<V>;
|
|
107
107
|
ngOnInit(): void;
|
|
108
108
|
ngOnDestroy(): void;
|
|
109
109
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToolbarWidgetGroup<any>, never>;
|
package/types/tree.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as _angular_core from '@angular/core';
|
|
|
3
3
|
import { Signal, OnInit, OnDestroy } from '@angular/core';
|
|
4
4
|
import * as i1 from '@angular/aria/deferred-content';
|
|
5
5
|
import { DeferredContentAware } from '@angular/aria/deferred-content';
|
|
6
|
-
import { TreePattern, TreeItemPattern } from '@angular/aria/
|
|
6
|
+
import { TreePattern, TreeItemPattern } from '@angular/aria/private';
|
|
7
7
|
import { ComboboxPopup } from './combobox.js';
|
|
8
8
|
|
|
9
9
|
interface HasElement {
|
|
@@ -66,13 +66,14 @@ declare class Tree<V> {
|
|
|
66
66
|
/** The aria-current type. */
|
|
67
67
|
readonly currentType: _angular_core.InputSignal<"page" | "step" | "location" | "date" | "time" | "true" | "false">;
|
|
68
68
|
/** The UI pattern for the tree. */
|
|
69
|
-
readonly
|
|
69
|
+
readonly _pattern: TreePattern<V>;
|
|
70
70
|
/** Whether the tree has received focus yet. */
|
|
71
71
|
private _hasFocused;
|
|
72
72
|
constructor();
|
|
73
73
|
onFocus(): void;
|
|
74
74
|
register(child: TreeItem<V>): void;
|
|
75
75
|
unregister(child: TreeItem<V>): void;
|
|
76
|
+
scrollActiveItemIntoView(options?: ScrollIntoViewOptions): void;
|
|
76
77
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Tree<any>, never>;
|
|
77
78
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<Tree<any>, "[ngTree]", ["ngTree"], { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "multi": { "alias": "multi"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "focusMode": { "alias": "focusMode"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "skipDisabled": { "alias": "skipDisabled"; "required": false; "isSignal": true; }; "typeaheadDelay": { "alias": "typeaheadDelay"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "nav": { "alias": "nav"; "required": false; "isSignal": true; }; "currentType": { "alias": "currentType"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, [{ directive: typeof ComboboxPopup; inputs: {}; outputs: {}; }]>;
|
|
78
79
|
}
|
|
@@ -94,6 +95,8 @@ declare class TreeItem<V> extends DeferredContentAware implements OnInit, OnDest
|
|
|
94
95
|
readonly parent: _angular_core.InputSignal<TreeItemGroup<V> | Tree<V>>;
|
|
95
96
|
/** Whether the tree item is disabled. */
|
|
96
97
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
98
|
+
/** Whether the tree item is selectable. */
|
|
99
|
+
readonly selectable: _angular_core.InputSignal<boolean>;
|
|
97
100
|
/** Optional label for typeahead. Defaults to the element's textContent. */
|
|
98
101
|
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
99
102
|
/** Search term for typeahead. */
|
|
@@ -101,14 +104,14 @@ declare class TreeItem<V> extends DeferredContentAware implements OnInit, OnDest
|
|
|
101
104
|
/** The tree root. */
|
|
102
105
|
readonly tree: Signal<Tree<V>>;
|
|
103
106
|
/** The UI pattern for this item. */
|
|
104
|
-
|
|
107
|
+
_pattern: TreeItemPattern<V>;
|
|
105
108
|
constructor();
|
|
106
109
|
ngOnInit(): void;
|
|
107
110
|
ngOnDestroy(): void;
|
|
108
111
|
register(group: TreeItemGroup<V>): void;
|
|
109
112
|
unregister(): void;
|
|
110
113
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeItem<any>, never>;
|
|
111
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TreeItem<any>, "[ngTreeItem]", ["ngTreeItem"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "parent": { "alias": "parent"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
114
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TreeItem<any>, "[ngTreeItem]", ["ngTreeItem"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "parent": { "alias": "parent"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
112
115
|
}
|
|
113
116
|
/**
|
|
114
117
|
* Contains children tree itmes.
|