@angular/aria 21.0.0-next.9 → 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 +373 -0
- package/_adev_assets/aria-combobox.json +383 -0
- package/_adev_assets/aria-grid.json +647 -0
- package/_adev_assets/aria-listbox.json +511 -0
- package/_adev_assets/aria-menu.json +852 -0
- package/_adev_assets/aria-tabs.json +987 -0
- package/_adev_assets/aria-toolbar.json +696 -0
- package/_adev_assets/aria-tree.json +1071 -0
- package/fesm2022/_widget-chunk.mjs +949 -0
- package/fesm2022/_widget-chunk.mjs.map +1 -0
- package/fesm2022/accordion.mjs +372 -174
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/aria.mjs +1 -2
- package/fesm2022/aria.mjs.map +1 -1
- package/fesm2022/combobox.mjs +308 -116
- package/fesm2022/combobox.mjs.map +1 -1
- package/fesm2022/grid.mjs +566 -0
- package/fesm2022/grid.mjs.map +1 -0
- package/fesm2022/listbox.mjs +384 -184
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +591 -0
- package/fesm2022/menu.mjs.map +1 -0
- package/fesm2022/private.mjs +2338 -0
- package/fesm2022/private.mjs.map +1 -0
- package/fesm2022/tabs.mjs +484 -276
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +366 -200
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tree.mjs +515 -267
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +12 -12
- package/types/_grid-chunk.d.ts +608 -0
- package/types/accordion.d.ts +8 -8
- package/types/combobox.d.ts +20 -7
- package/types/grid.d.ts +120 -0
- package/types/listbox.d.ts +9 -7
- package/types/menu.d.ts +170 -0
- package/types/{ui-patterns.d.ts → private.d.ts} +555 -433
- package/types/tabs.d.ts +8 -8
- package/types/toolbar.d.ts +31 -28
- package/types/tree.d.ts +11 -9
- package/fesm2022/deferred-content.mjs +0 -60
- package/fesm2022/deferred-content.mjs.map +0 -1
- package/fesm2022/radio-group.mjs +0 -197
- package/fesm2022/radio-group.mjs.map +0 -1
- package/fesm2022/ui-patterns.mjs +0 -2504
- package/fesm2022/ui-patterns.mjs.map +0 -1
- package/types/deferred-content.d.ts +0 -38
- package/types/radio-group.d.ts +0 -82
package/types/radio-group.d.ts
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { WritableSignal } from '@angular/core';
|
|
3
|
-
import * as _angular_cdk_bidi from '@angular/cdk/bidi';
|
|
4
|
-
import { RadioButtonPattern, RadioGroupPattern } from '@angular/aria/ui-patterns';
|
|
5
|
-
import * as i1 from '@angular/aria/toolbar';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* A radio button group container.
|
|
9
|
-
*
|
|
10
|
-
* Radio groups are used to group multiple radio buttons or radio group labels so they function as
|
|
11
|
-
* a single form control. The RadioGroup is meant to be used in conjunction with RadioButton
|
|
12
|
-
* as follows:
|
|
13
|
-
*
|
|
14
|
-
* ```html
|
|
15
|
-
* <div ngRadioGroup>
|
|
16
|
-
* <div ngRadioButton value="1">Option 1</div>
|
|
17
|
-
* <div ngRadioButton value="2">Option 2</div>
|
|
18
|
-
* <div ngRadioButton value="3">Option 3</div>
|
|
19
|
-
* </div>
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
declare class RadioGroup<V> {
|
|
23
|
-
/** A reference to the radio group element. */
|
|
24
|
-
private readonly _elementRef;
|
|
25
|
-
/** A reference to the ToolbarWidgetGroup, if the radio group is in a toolbar. */
|
|
26
|
-
private readonly _toolbarWidgetGroup;
|
|
27
|
-
/** Whether the radio group is inside of a Toolbar. */
|
|
28
|
-
private readonly _hasToolbar;
|
|
29
|
-
/** The RadioButtons nested inside of the RadioGroup. */
|
|
30
|
-
private readonly _radioButtons;
|
|
31
|
-
/** A signal wrapper for directionality. */
|
|
32
|
-
protected textDirection: WritableSignal<_angular_cdk_bidi.Direction>;
|
|
33
|
-
/** The RadioButton UIPatterns of the child RadioButtons. */
|
|
34
|
-
protected items: _angular_core.Signal<RadioButtonPattern<any>[]>;
|
|
35
|
-
/** Whether the radio group is vertically or horizontally oriented. */
|
|
36
|
-
readonly orientation: _angular_core.InputSignal<"vertical" | "horizontal">;
|
|
37
|
-
/** Whether disabled items in the group should be skipped when navigating. */
|
|
38
|
-
readonly skipDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
39
|
-
/** The focus strategy used by the radio group. */
|
|
40
|
-
readonly focusMode: _angular_core.InputSignal<"roving" | "activedescendant">;
|
|
41
|
-
/** Whether the radio group is disabled. */
|
|
42
|
-
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
43
|
-
/** Whether the radio group is readonly. */
|
|
44
|
-
readonly readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
45
|
-
/** The value of the currently selected radio button. */
|
|
46
|
-
readonly value: _angular_core.ModelSignal<V | null>;
|
|
47
|
-
/** The internal selection state for the radio group. */
|
|
48
|
-
private readonly _value;
|
|
49
|
-
/** The RadioGroup UIPattern. */
|
|
50
|
-
readonly pattern: RadioGroupPattern<V>;
|
|
51
|
-
/** Whether the radio group has received focus yet. */
|
|
52
|
-
private _hasFocused;
|
|
53
|
-
constructor();
|
|
54
|
-
onFocus(): void;
|
|
55
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RadioGroup<any>, never>;
|
|
56
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RadioGroup<any>, "[ngRadioGroup]", ["ngRadioGroup"], { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "skipDisabled": { "alias": "skipDisabled"; "required": false; "isSignal": true; }; "focusMode": { "alias": "focusMode"; "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"; }, ["_radioButtons"], never, true, [{ directive: typeof i1.ToolbarWidgetGroup; inputs: { "disabled": "disabled"; }; outputs: {}; }]>;
|
|
57
|
-
}
|
|
58
|
-
/** A selectable radio button in a RadioGroup. */
|
|
59
|
-
declare class RadioButton<V> {
|
|
60
|
-
/** A reference to the radio button element. */
|
|
61
|
-
private readonly _elementRef;
|
|
62
|
-
/** The parent RadioGroup. */
|
|
63
|
-
private readonly _radioGroup;
|
|
64
|
-
/** A unique identifier for the radio button. */
|
|
65
|
-
private readonly _generatedId;
|
|
66
|
-
/** A unique identifier for the radio button. */
|
|
67
|
-
readonly id: _angular_core.Signal<string>;
|
|
68
|
-
/** The value associated with the radio button. */
|
|
69
|
-
readonly value: _angular_core.InputSignal<V>;
|
|
70
|
-
/** The parent RadioGroup UIPattern. */
|
|
71
|
-
readonly group: _angular_core.Signal<RadioGroupPattern<any>>;
|
|
72
|
-
/** A reference to the radio button element to be focused on navigation. */
|
|
73
|
-
element: _angular_core.Signal<any>;
|
|
74
|
-
/** Whether the radio button is disabled. */
|
|
75
|
-
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
76
|
-
/** The RadioButton UIPattern. */
|
|
77
|
-
pattern: RadioButtonPattern<V>;
|
|
78
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RadioButton<any>, never>;
|
|
79
|
-
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
|
-
}
|
|
81
|
-
|
|
82
|
-
export { RadioButton, RadioGroup };
|