@angular/cdk-experimental 21.0.0-next.4 → 21.0.0-next.6
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/{accordion2.mjs → _accordion-chunk.mjs} +4 -3
- package/fesm2022/_accordion-chunk.mjs.map +1 -0
- package/fesm2022/_combobox-chunk.mjs +278 -0
- package/fesm2022/_combobox-chunk.mjs.map +1 -0
- package/fesm2022/{option.mjs → _combobox-listbox-chunk.mjs} +55 -8
- package/fesm2022/_combobox-listbox-chunk.mjs.map +1 -0
- package/fesm2022/_combobox-tree-chunk.mjs +398 -0
- package/fesm2022/_combobox-tree-chunk.mjs.map +1 -0
- package/fesm2022/{expansion.mjs → _expansion-chunk.mjs} +2 -2
- package/fesm2022/_expansion-chunk.mjs.map +1 -0
- package/fesm2022/{list.mjs → _list-chunk.mjs} +9 -5
- package/fesm2022/_list-chunk.mjs.map +1 -0
- package/fesm2022/_list-navigation-chunk.mjs +131 -0
- package/fesm2022/_list-navigation-chunk.mjs.map +1 -0
- package/fesm2022/{list-navigation.mjs → _pointer-event-manager-chunk.mjs} +2 -118
- package/fesm2022/_pointer-event-manager-chunk.mjs.map +1 -0
- package/fesm2022/{polyfill.mjs → _polyfill-chunk.mjs} +1 -1
- package/fesm2022/_polyfill-chunk.mjs.map +1 -0
- package/fesm2022/{tabs2.mjs → _tabs-chunk.mjs} +4 -4
- package/fesm2022/_tabs-chunk.mjs.map +1 -0
- package/fesm2022/_toolbar-chunk.mjs +273 -0
- package/fesm2022/_toolbar-chunk.mjs.map +1 -0
- package/fesm2022/_toolbar-radio-group-chunk.mjs +222 -0
- package/fesm2022/_toolbar-radio-group-chunk.mjs.map +1 -0
- package/fesm2022/accordion.mjs +4 -3
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/cdk-experimental.mjs +1 -1
- package/fesm2022/cdk-experimental.mjs.map +1 -1
- package/fesm2022/column-resize.mjs +1 -1
- package/fesm2022/combobox.mjs +99 -308
- package/fesm2022/combobox.mjs.map +1 -1
- package/fesm2022/deferred-content.mjs +6 -7
- package/fesm2022/deferred-content.mjs.map +1 -1
- package/fesm2022/listbox.mjs +53 -12
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/popover-edit.mjs +1 -1
- package/fesm2022/radio-group.mjs +42 -47
- package/fesm2022/radio-group.mjs.map +1 -1
- package/fesm2022/tabs.mjs +5 -4
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +69 -19
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tree.mjs +57 -344
- package/fesm2022/tree.mjs.map +1 -1
- package/fesm2022/ui-patterns.mjs +11 -8
- package/fesm2022/ui-patterns.mjs.map +1 -1
- package/package.json +18 -18
- package/{accordion.d.d.ts → types/_accordion-chunk.d.ts} +3 -2
- package/types/_combobox-chunk.d.ts +138 -0
- package/{expansion.d.d.ts → types/_expansion-chunk.d.ts} +2 -2
- package/{list.d.d.ts → types/_list-chunk.d.ts} +4 -2
- package/{pointer-event-manager.d.d.ts → types/_list-navigation-chunk.d.ts} +7 -96
- package/{listbox.d.d.ts → types/_listbox-chunk.d.ts} +8 -4
- package/types/_pointer-event-manager-chunk.d.ts +98 -0
- package/types/_radio-group-chunk.d.ts +92 -0
- package/{tabs.d.d.ts → types/_tabs-chunk.d.ts} +4 -3
- package/types/_toolbar-chunk.d.ts +150 -0
- package/types/_tree-chunk.d.ts +139 -0
- package/{accordion/index.d.ts → types/accordion.d.ts} +4 -3
- package/types/combobox.d.ts +54 -0
- package/{deferred-content/index.d.ts → types/deferred-content.d.ts} +3 -3
- package/{listbox/index.d.ts → types/listbox.d.ts} +15 -5
- package/{radio-group/index.d.ts → types/radio-group.d.ts} +21 -23
- package/{tabs/index.d.ts → types/tabs.d.ts} +5 -4
- package/types/toolbar.d.ts +115 -0
- package/{tree/index.d.ts → types/tree.d.ts} +17 -137
- package/types/ui-patterns.d.ts +157 -0
- package/combobox/index.d.ts +0 -94
- package/fesm2022/accordion2.mjs.map +0 -1
- package/fesm2022/expansion.mjs.map +0 -1
- package/fesm2022/list-navigation.mjs.map +0 -1
- package/fesm2022/list.mjs.map +0 -1
- package/fesm2022/option.mjs.map +0 -1
- package/fesm2022/polyfill.mjs.map +0 -1
- package/fesm2022/radio-group2.mjs +0 -143
- package/fesm2022/radio-group2.mjs.map +0 -1
- package/fesm2022/tabs2.mjs.map +0 -1
- package/fesm2022/toolbar2.mjs +0 -224
- package/fesm2022/toolbar2.mjs.map +0 -1
- package/radio-group.d.d.ts +0 -80
- package/toolbar/index.d.ts +0 -91
- package/toolbar.d.d.ts +0 -136
- package/ui-patterns/index.d.ts +0 -9
- /package/{index.d.ts → types/cdk-experimental.d.ts} +0 -0
- /package/{column-resize/index.d.ts → types/column-resize.d.ts} +0 -0
- /package/{popover-edit/index.d.ts → types/popover-edit.d.ts} +0 -0
- /package/{scrolling/index.d.ts → types/scrolling.d.ts} +0 -0
- /package/{selection/index.d.ts → types/selection.d.ts} +0 -0
- /package/{table-scroll-container/index.d.ts → types/table-scroll-container.d.ts} +0 -0
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
1
|
import * as _angular_cdk_bidi from '@angular/cdk/bidi';
|
|
3
|
-
import
|
|
4
|
-
import '
|
|
5
|
-
import '
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
|
+
import { OptionPattern, ListboxPattern } from './_listbox-chunk.js';
|
|
4
|
+
import { CdkComboboxPopup } from './combobox.js';
|
|
5
|
+
import './_list-navigation-chunk.js';
|
|
6
|
+
import './_list-chunk.js';
|
|
7
|
+
import './_pointer-event-manager-chunk.js';
|
|
8
|
+
import './_combobox-chunk.js';
|
|
9
|
+
import '@angular/cdk-experimental/deferred-content';
|
|
6
10
|
|
|
7
11
|
/**
|
|
8
12
|
* A listbox container.
|
|
@@ -19,6 +23,12 @@ import '../list.d.js';
|
|
|
19
23
|
* ```
|
|
20
24
|
*/
|
|
21
25
|
declare class CdkListbox<V> {
|
|
26
|
+
/** A unique identifier for the listbox. */
|
|
27
|
+
private readonly _generatedId;
|
|
28
|
+
/** A unique identifier for the listbox. */
|
|
29
|
+
protected id: _angular_core.Signal<string>;
|
|
30
|
+
/** A reference to the parent combobox popup, if one exists. */
|
|
31
|
+
private readonly _popup;
|
|
22
32
|
/** A reference to the listbox element. */
|
|
23
33
|
private readonly _elementRef;
|
|
24
34
|
/** The directionality (LTR / RTL) context for the application (or a subtree of it). */
|
|
@@ -56,7 +66,7 @@ declare class CdkListbox<V> {
|
|
|
56
66
|
constructor();
|
|
57
67
|
onFocus(): void;
|
|
58
68
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkListbox<any>, never>;
|
|
59
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkListbox<any>, "[cdkListbox]", ["cdkListbox"], { "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"; }, ["_cdkOptions"], never, true,
|
|
69
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkListbox<any>, "[cdkListbox]", ["cdkListbox"], { "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"; }, ["_cdkOptions"], never, true, [{ directive: typeof CdkComboboxPopup; inputs: {}; outputs: {}; }]>;
|
|
60
70
|
}
|
|
61
71
|
/** A selectable option in a CdkListbox. */
|
|
62
72
|
declare class CdkOption<V> {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { WritableSignal
|
|
2
|
+
import { WritableSignal } from '@angular/core';
|
|
3
3
|
import * as _angular_cdk_bidi from '@angular/cdk/bidi';
|
|
4
|
-
import { RadioGroupPattern } from '
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import '
|
|
8
|
-
import '
|
|
4
|
+
import { RadioButtonPattern, RadioGroupPattern } from './_radio-group-chunk.js';
|
|
5
|
+
import * as i1 from '@angular/cdk-experimental/toolbar';
|
|
6
|
+
import './_pointer-event-manager-chunk.js';
|
|
7
|
+
import './_list-navigation-chunk.js';
|
|
8
|
+
import './_list-chunk.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* A radio button group container.
|
|
@@ -25,42 +25,41 @@ import '../list.d.js';
|
|
|
25
25
|
declare class CdkRadioGroup<V> {
|
|
26
26
|
/** A reference to the radio group element. */
|
|
27
27
|
private readonly _elementRef;
|
|
28
|
+
/** A reference to the CdkToolbarWidgetGroup, if the radio group is in a toolbar. */
|
|
29
|
+
private readonly _cdkToolbarWidgetGroup;
|
|
30
|
+
/** Whether the radio group is inside of a CdkToolbar. */
|
|
31
|
+
private readonly _hasToolbar;
|
|
28
32
|
/** The CdkRadioButtons nested inside of the CdkRadioGroup. */
|
|
29
33
|
private readonly _cdkRadioButtons;
|
|
30
34
|
/** A signal wrapper for directionality. */
|
|
31
35
|
protected textDirection: WritableSignal<_angular_cdk_bidi.Direction>;
|
|
32
|
-
/** A signal wrapper for toolbar. */
|
|
33
|
-
toolbar: CdkToolbar<any> | null;
|
|
34
|
-
/** Toolbar pattern if applicable */
|
|
35
|
-
private readonly _toolbarPattern;
|
|
36
36
|
/** The RadioButton UIPatterns of the child CdkRadioButtons. */
|
|
37
37
|
protected items: _angular_core.Signal<RadioButtonPattern<any>[]>;
|
|
38
38
|
/** Whether the radio group is vertically or horizontally oriented. */
|
|
39
|
-
orientation: _angular_core.InputSignal<"vertical" | "horizontal">;
|
|
39
|
+
readonly orientation: _angular_core.InputSignal<"vertical" | "horizontal">;
|
|
40
40
|
/** Whether disabled items in the group should be skipped when navigating. */
|
|
41
|
-
skipDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
41
|
+
readonly skipDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
42
42
|
/** The focus strategy used by the radio group. */
|
|
43
|
-
focusMode: _angular_core.InputSignal<"roving" | "activedescendant">;
|
|
43
|
+
readonly focusMode: _angular_core.InputSignal<"roving" | "activedescendant">;
|
|
44
44
|
/** Whether the radio group is disabled. */
|
|
45
|
-
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
45
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
46
46
|
/** Whether the radio group is readonly. */
|
|
47
|
-
readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
47
|
+
readonly readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
48
48
|
/** The value of the currently selected radio button. */
|
|
49
|
-
value: _angular_core.ModelSignal<V | null>;
|
|
49
|
+
readonly value: _angular_core.ModelSignal<V | null>;
|
|
50
50
|
/** The internal selection state for the radio group. */
|
|
51
51
|
private readonly _value;
|
|
52
52
|
/** The RadioGroup UIPattern. */
|
|
53
|
-
pattern: RadioGroupPattern<V>;
|
|
53
|
+
readonly pattern: RadioGroupPattern<V>;
|
|
54
54
|
/** Whether the radio group has received focus yet. */
|
|
55
55
|
private _hasFocused;
|
|
56
56
|
constructor();
|
|
57
57
|
onFocus(): void;
|
|
58
|
-
toolbarButtonUnregister(radio: CdkRadioButton<V>): void;
|
|
59
58
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkRadioGroup<any>, never>;
|
|
60
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkRadioGroup<any>, "[cdkRadioGroup]", ["cdkRadioGroup"], { "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"; }, ["_cdkRadioButtons"], never, true,
|
|
59
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkRadioGroup<any>, "[cdkRadioGroup]", ["cdkRadioGroup"], { "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"; }, ["_cdkRadioButtons"], never, true, [{ directive: typeof i1.CdkToolbarWidgetGroup; inputs: { "disabled": "disabled"; }; outputs: {}; }]>;
|
|
61
60
|
}
|
|
62
61
|
/** A selectable radio button in a CdkRadioGroup. */
|
|
63
|
-
declare class CdkRadioButton<V>
|
|
62
|
+
declare class CdkRadioButton<V> {
|
|
64
63
|
/** A reference to the radio button element. */
|
|
65
64
|
private readonly _elementRef;
|
|
66
65
|
/** The parent CdkRadioGroup. */
|
|
@@ -68,18 +67,17 @@ declare class CdkRadioButton<V> implements OnDestroy {
|
|
|
68
67
|
/** A unique identifier for the radio button. */
|
|
69
68
|
private readonly _generatedId;
|
|
70
69
|
/** A unique identifier for the radio button. */
|
|
71
|
-
|
|
70
|
+
readonly id: _angular_core.Signal<string>;
|
|
72
71
|
/** The value associated with the radio button. */
|
|
73
72
|
readonly value: _angular_core.InputSignal<V>;
|
|
74
73
|
/** The parent RadioGroup UIPattern. */
|
|
75
|
-
|
|
74
|
+
readonly group: _angular_core.Signal<RadioGroupPattern<any>>;
|
|
76
75
|
/** A reference to the radio button element to be focused on navigation. */
|
|
77
76
|
element: _angular_core.Signal<any>;
|
|
78
77
|
/** Whether the radio button is disabled. */
|
|
79
78
|
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
80
79
|
/** The RadioButton UIPattern. */
|
|
81
80
|
pattern: RadioButtonPattern<V>;
|
|
82
|
-
ngOnDestroy(): void;
|
|
83
81
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkRadioButton<any>, never>;
|
|
84
82
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkRadioButton<any>, "[cdkRadioButton]", ["cdkRadioButton"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
85
83
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
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 '
|
|
4
|
+
import { TabPattern, TabPanelPattern, TabListPattern } from './_tabs-chunk.js';
|
|
5
5
|
import * as i1 from '@angular/cdk-experimental/deferred-content';
|
|
6
|
-
import '
|
|
7
|
-
import '
|
|
8
|
-
import '
|
|
6
|
+
import './_pointer-event-manager-chunk.js';
|
|
7
|
+
import './_list-navigation-chunk.js';
|
|
8
|
+
import './_expansion-chunk.js';
|
|
9
|
+
import './_list-chunk.js';
|
|
9
10
|
|
|
10
11
|
interface HasElement {
|
|
11
12
|
element: Signal<HTMLElement>;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { Signal, OnInit, OnDestroy } from '@angular/core';
|
|
3
|
+
import * as _angular_cdk_bidi from '@angular/cdk/bidi';
|
|
4
|
+
import { ToolbarWidgetPattern, ToolbarWidgetGroupPattern, ToolbarPattern, ToolbarWidgetGroupControls } from './_toolbar-chunk.js';
|
|
5
|
+
import './_list-navigation-chunk.js';
|
|
6
|
+
import './_list-chunk.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A toolbar widget container.
|
|
10
|
+
*
|
|
11
|
+
* Widgets such as radio groups or buttons are nested within a toolbar to allow for a single
|
|
12
|
+
* place of reference for focus and navigation. The CdkToolbar is meant to be used in conjunction
|
|
13
|
+
* with CdkToolbarWidget and CdkRadioGroup as follows:
|
|
14
|
+
*
|
|
15
|
+
* ```html
|
|
16
|
+
* <div cdkToolbar>
|
|
17
|
+
* <button cdkToolbarWidget>Button</button>
|
|
18
|
+
* <div cdkRadioGroup>
|
|
19
|
+
* <label cdkRadioButton value="1">Option 1</label>
|
|
20
|
+
* <label cdkRadioButton value="2">Option 2</label>
|
|
21
|
+
* <label cdkRadioButton value="3">Option 3</label>
|
|
22
|
+
* </div>
|
|
23
|
+
* </div>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
declare class CdkToolbar<V> {
|
|
27
|
+
/** A reference to the toolbar element. */
|
|
28
|
+
private readonly _elementRef;
|
|
29
|
+
/** The CdkTabList nested inside of the container. */
|
|
30
|
+
private readonly _cdkWidgets;
|
|
31
|
+
/** A signal wrapper for directionality. */
|
|
32
|
+
readonly textDirection: _angular_core.WritableSignal<_angular_cdk_bidi.Direction>;
|
|
33
|
+
/** Sorted UIPatterns of the child widgets */
|
|
34
|
+
readonly items: Signal<(ToolbarWidgetPattern<V> | ToolbarWidgetGroupPattern<V>)[]>;
|
|
35
|
+
/** Whether the toolbar 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
|
+
/** Whether the toolbar is disabled. */
|
|
40
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
41
|
+
/** Whether focus should wrap when navigating. */
|
|
42
|
+
readonly wrap: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
43
|
+
/** The toolbar UIPattern. */
|
|
44
|
+
readonly pattern: ToolbarPattern<V>;
|
|
45
|
+
/** Whether the toolbar has received focus yet. */
|
|
46
|
+
private _hasFocused;
|
|
47
|
+
constructor();
|
|
48
|
+
onFocus(): void;
|
|
49
|
+
register(widget: CdkToolbarWidget<V> | CdkToolbarWidgetGroup<V>): void;
|
|
50
|
+
unregister(widget: CdkToolbarWidget<V> | CdkToolbarWidgetGroup<V>): void;
|
|
51
|
+
/** Finds the toolbar item associated with a given element. */
|
|
52
|
+
private _getItem;
|
|
53
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkToolbar<any>, never>;
|
|
54
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkToolbar<any>, "[cdkToolbar]", ["cdkToolbar"], { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "skipDisabled": { "alias": "skipDisabled"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* A widget within a toolbar.
|
|
58
|
+
*
|
|
59
|
+
* A widget is anything that is within a toolbar. It should be applied to any native HTML element
|
|
60
|
+
* that has the purpose of acting as a widget navigatable within a toolbar.
|
|
61
|
+
*/
|
|
62
|
+
declare class CdkToolbarWidget<V> implements OnInit, OnDestroy {
|
|
63
|
+
/** A reference to the widget element. */
|
|
64
|
+
private readonly _elementRef;
|
|
65
|
+
/** The parent CdkToolbar. */
|
|
66
|
+
private readonly _cdkToolbar;
|
|
67
|
+
/** A unique identifier for the widget. */
|
|
68
|
+
private readonly _generatedId;
|
|
69
|
+
/** A unique identifier for the widget. */
|
|
70
|
+
readonly id: Signal<string>;
|
|
71
|
+
/** The parent Toolbar UIPattern. */
|
|
72
|
+
readonly toolbar: Signal<ToolbarPattern<any>>;
|
|
73
|
+
/** A reference to the widget element to be focused on navigation. */
|
|
74
|
+
readonly element: Signal<any>;
|
|
75
|
+
/** Whether the widget is disabled. */
|
|
76
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
77
|
+
/** Whether the widget is 'hard' disabled, which is different from `aria-disabled`. A hard disabled widget cannot receive focus. */
|
|
78
|
+
readonly hardDisabled: Signal<boolean>;
|
|
79
|
+
/** The ToolbarWidget UIPattern. */
|
|
80
|
+
readonly pattern: ToolbarWidgetPattern<V>;
|
|
81
|
+
ngOnInit(): void;
|
|
82
|
+
ngOnDestroy(): void;
|
|
83
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkToolbarWidget<any>, never>;
|
|
84
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkToolbarWidget<any>, "[cdkToolbarWidget]", ["cdkToolbarWidget"], { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* A directive that groups toolbar widgets, used for more complex widgets like radio groups that
|
|
88
|
+
* have their own internal navigation.
|
|
89
|
+
*/
|
|
90
|
+
declare class CdkToolbarWidgetGroup<V> implements OnInit, OnDestroy {
|
|
91
|
+
/** A reference to the widget element. */
|
|
92
|
+
private readonly _elementRef;
|
|
93
|
+
/** The parent CdkToolbar. */
|
|
94
|
+
private readonly _cdkToolbar;
|
|
95
|
+
/** A unique identifier for the widget. */
|
|
96
|
+
private readonly _generatedId;
|
|
97
|
+
/** A unique identifier for the widget. */
|
|
98
|
+
readonly id: Signal<string>;
|
|
99
|
+
/** The parent Toolbar UIPattern. */
|
|
100
|
+
readonly toolbar: Signal<ToolbarPattern<any> | undefined>;
|
|
101
|
+
/** A reference to the widget element to be focused on navigation. */
|
|
102
|
+
readonly element: Signal<any>;
|
|
103
|
+
/** Whether the widget group is disabled. */
|
|
104
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
105
|
+
/** The controls that can be performed on the widget group. */
|
|
106
|
+
readonly controls: _angular_core.WritableSignal<ToolbarWidgetGroupControls | undefined>;
|
|
107
|
+
/** The ToolbarWidgetGroup UIPattern. */
|
|
108
|
+
readonly pattern: ToolbarWidgetGroupPattern<V>;
|
|
109
|
+
ngOnInit(): void;
|
|
110
|
+
ngOnDestroy(): void;
|
|
111
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkToolbarWidgetGroup<any>, never>;
|
|
112
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkToolbarWidgetGroup<any>, never, never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export { CdkToolbar, CdkToolbarWidget, CdkToolbarWidgetGroup };
|
|
@@ -1,139 +1,13 @@
|
|
|
1
1
|
import * as _angular_cdk_bidi from '@angular/cdk/bidi';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { OnInit, OnDestroy
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/** The parent item. */
|
|
12
|
-
parent: SignalLike<TreeItemPattern<V> | TreePattern<V>>;
|
|
13
|
-
/** Whether this item has children. Children can be lazily loaded. */
|
|
14
|
-
hasChildren: SignalLike<boolean>;
|
|
15
|
-
/** The children items. */
|
|
16
|
-
children: SignalLike<TreeItemPattern<V>[]>;
|
|
17
|
-
/** The tree pattern this item belongs to. */
|
|
18
|
-
tree: SignalLike<TreePattern<V>>;
|
|
19
|
-
}
|
|
20
|
-
interface TreeItemPattern<V> extends TreeItemInputs<V> {
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Represents an item in a Tree.
|
|
24
|
-
*/
|
|
25
|
-
declare class TreeItemPattern<V> implements ExpansionItem {
|
|
26
|
-
readonly inputs: TreeItemInputs<V>;
|
|
27
|
-
/** The position of this item among its siblings. */
|
|
28
|
-
readonly index: _angular_core.Signal<number>;
|
|
29
|
-
/** The unique identifier used by the expansion behavior. */
|
|
30
|
-
readonly expansionId: SignalLike<string>;
|
|
31
|
-
/** Controls expansion for child items. */
|
|
32
|
-
readonly expansionManager: ListExpansion;
|
|
33
|
-
/** Controls expansion for this item. */
|
|
34
|
-
readonly expansion: ExpansionControl;
|
|
35
|
-
/** Whether the item is expandable. It's expandable if children item exist. */
|
|
36
|
-
readonly expandable: SignalLike<boolean>;
|
|
37
|
-
/** The level of the current item in a tree. */
|
|
38
|
-
readonly level: SignalLike<number>;
|
|
39
|
-
/** Whether this item is currently expanded. */
|
|
40
|
-
readonly expanded: _angular_core.Signal<boolean>;
|
|
41
|
-
/** Whether this item is visible. */
|
|
42
|
-
readonly visible: _angular_core.Signal<boolean>;
|
|
43
|
-
/** The number of items under the same parent at the same level. */
|
|
44
|
-
readonly setsize: _angular_core.Signal<number>;
|
|
45
|
-
/** The position of this item among its siblings (1-based). */
|
|
46
|
-
readonly posinset: _angular_core.Signal<number>;
|
|
47
|
-
/** Whether the item is active. */
|
|
48
|
-
readonly active: _angular_core.Signal<boolean>;
|
|
49
|
-
/** The tabindex of the item. */
|
|
50
|
-
readonly tabindex: _angular_core.Signal<0 | -1>;
|
|
51
|
-
/** Whether the item is selected. */
|
|
52
|
-
readonly selected: _angular_core.Signal<boolean | undefined>;
|
|
53
|
-
/** The current type of this item. */
|
|
54
|
-
readonly current: _angular_core.Signal<"page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined>;
|
|
55
|
-
constructor(inputs: TreeItemInputs<V>);
|
|
56
|
-
}
|
|
57
|
-
/** The selection operations that the tree can perform. */
|
|
58
|
-
interface SelectOptions {
|
|
59
|
-
toggle?: boolean;
|
|
60
|
-
selectOne?: boolean;
|
|
61
|
-
selectRange?: boolean;
|
|
62
|
-
anchor?: boolean;
|
|
63
|
-
}
|
|
64
|
-
/** Represents the required inputs for a tree. */
|
|
65
|
-
interface TreeInputs<V> extends Omit<ListInputs<TreeItemPattern<V>, V>, 'items'> {
|
|
66
|
-
/** All items in the tree, in document order (DFS-like, a flattened list). */
|
|
67
|
-
allItems: SignalLike<TreeItemPattern<V>[]>;
|
|
68
|
-
/** Whether the tree is in navigation mode. */
|
|
69
|
-
nav: SignalLike<boolean>;
|
|
70
|
-
/** The aria-current type. */
|
|
71
|
-
currentType: SignalLike<'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false'>;
|
|
72
|
-
}
|
|
73
|
-
interface TreePattern<V> extends TreeInputs<V> {
|
|
74
|
-
}
|
|
75
|
-
/** Controls the state and interactions of a tree view. */
|
|
76
|
-
declare class TreePattern<V> {
|
|
77
|
-
readonly inputs: TreeInputs<V>;
|
|
78
|
-
/** The list behavior for the tree. */
|
|
79
|
-
readonly listBehavior: List<TreeItemPattern<V>, V>;
|
|
80
|
-
/** Controls expansion for direct children of the tree root (top-level items). */
|
|
81
|
-
readonly expansionManager: ListExpansion;
|
|
82
|
-
/** The root level is 0. */
|
|
83
|
-
readonly level: () => number;
|
|
84
|
-
/** The root is always expanded. */
|
|
85
|
-
readonly expanded: () => boolean;
|
|
86
|
-
/** The tabindex of the tree. */
|
|
87
|
-
readonly tabindex: _angular_core.Signal<0 | -1>;
|
|
88
|
-
/** The id of the current active item. */
|
|
89
|
-
readonly activedescendant: _angular_core.Signal<string | undefined>;
|
|
90
|
-
/** The direct children of the root (top-level tree items). */
|
|
91
|
-
readonly children: _angular_core.Signal<TreeItemPattern<V>[]>;
|
|
92
|
-
/** All currently visible tree items. An item is visible if their parent is expanded. */
|
|
93
|
-
readonly visibleItems: _angular_core.Signal<TreeItemPattern<V>[]>;
|
|
94
|
-
/** Whether the tree selection follows focus. */
|
|
95
|
-
readonly followFocus: _angular_core.Signal<boolean>;
|
|
96
|
-
/** The key for navigating to the previous item. */
|
|
97
|
-
readonly prevKey: _angular_core.Signal<"ArrowUp" | "ArrowRight" | "ArrowLeft">;
|
|
98
|
-
/** The key for navigating to the next item. */
|
|
99
|
-
readonly nextKey: _angular_core.Signal<"ArrowRight" | "ArrowLeft" | "ArrowDown">;
|
|
100
|
-
/** The key for collapsing an item or moving to its parent. */
|
|
101
|
-
readonly collapseKey: _angular_core.Signal<"ArrowUp" | "ArrowRight" | "ArrowLeft">;
|
|
102
|
-
/** The key for expanding an item or moving to its first child. */
|
|
103
|
-
readonly expandKey: _angular_core.Signal<"ArrowRight" | "ArrowLeft" | "ArrowDown">;
|
|
104
|
-
/** Represents the space key. Does nothing when the user is actively using typeahead. */
|
|
105
|
-
readonly dynamicSpaceKey: _angular_core.Signal<"" | " ">;
|
|
106
|
-
/** Regular expression to match characters for typeahead. */
|
|
107
|
-
readonly typeaheadRegexp: RegExp;
|
|
108
|
-
/** The keydown event manager for the tree. */
|
|
109
|
-
readonly keydown: _angular_core.Signal<KeyboardEventManager<KeyboardEvent>>;
|
|
110
|
-
/** The pointerdown event manager for the tree. */
|
|
111
|
-
pointerdown: _angular_core.Signal<PointerEventManager<PointerEvent>>;
|
|
112
|
-
constructor(inputs: TreeInputs<V>);
|
|
113
|
-
/**
|
|
114
|
-
* Sets the tree to it's default initial state.
|
|
115
|
-
*
|
|
116
|
-
* Sets the active index of the tree to the first focusable selected tree item if one exists.
|
|
117
|
-
* Otherwise, sets focus to the first focusable tree item.
|
|
118
|
-
*/
|
|
119
|
-
setDefaultState(): void;
|
|
120
|
-
/** Handles keydown events on the tree. */
|
|
121
|
-
onKeydown(event: KeyboardEvent): void;
|
|
122
|
-
/** Handles pointerdown events on the tree. */
|
|
123
|
-
onPointerdown(event: PointerEvent): void;
|
|
124
|
-
/** Navigates to the given tree item in the tree. */
|
|
125
|
-
goto(e: PointerEvent, opts?: SelectOptions): void;
|
|
126
|
-
/** Toggles to expand or collapse a tree item. */
|
|
127
|
-
toggleExpansion(item?: TreeItemPattern<V>): void;
|
|
128
|
-
/** Expands a tree item. */
|
|
129
|
-
expand(opts?: SelectOptions): void;
|
|
130
|
-
/** Expands all sibling tree items including itself. */
|
|
131
|
-
expandSiblings(item?: TreeItemPattern<V>): void;
|
|
132
|
-
/** Collapses a tree item. */
|
|
133
|
-
collapse(opts?: SelectOptions): void;
|
|
134
|
-
/** Retrieves the TreeItemPattern associated with a DOM event, if any. */
|
|
135
|
-
private _getItem;
|
|
136
|
-
}
|
|
3
|
+
import { Signal, OnInit, OnDestroy } from '@angular/core';
|
|
4
|
+
import { TreePattern, TreeItemPattern } from './_tree-chunk.js';
|
|
5
|
+
import * as i1 from '@angular/cdk-experimental/combobox';
|
|
6
|
+
import * as i1$1 from '@angular/cdk-experimental/deferred-content';
|
|
7
|
+
import './_list-navigation-chunk.js';
|
|
8
|
+
import './_list-chunk.js';
|
|
9
|
+
import './_expansion-chunk.js';
|
|
10
|
+
import './_pointer-event-manager-chunk.js';
|
|
137
11
|
|
|
138
12
|
interface HasElement {
|
|
139
13
|
element: Signal<HTMLElement>;
|
|
@@ -160,6 +34,12 @@ interface HasElement {
|
|
|
160
34
|
* ```
|
|
161
35
|
*/
|
|
162
36
|
declare class CdkTree<V> {
|
|
37
|
+
/** A unique identifier for the tree. */
|
|
38
|
+
private readonly _generatedId;
|
|
39
|
+
/** A unique identifier for the tree. */
|
|
40
|
+
protected id: Signal<string>;
|
|
41
|
+
/** A reference to the parent combobox popup, if one exists. */
|
|
42
|
+
private readonly _popup;
|
|
163
43
|
/** A reference to the tree element. */
|
|
164
44
|
private readonly _elementRef;
|
|
165
45
|
/** All CdkTreeItem instances within this tree. */
|
|
@@ -197,7 +77,7 @@ declare class CdkTree<V> {
|
|
|
197
77
|
register(child: CdkTreeItem<V>): void;
|
|
198
78
|
unregister(child: CdkTreeItem<V>): void;
|
|
199
79
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkTree<any>, never>;
|
|
200
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkTree<any>, "[cdkTree]", ["cdkTree"], { "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,
|
|
80
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkTree<any>, "[cdkTree]", ["cdkTree"], { "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 i1.CdkComboboxPopup; inputs: {}; outputs: {}; }]>;
|
|
201
81
|
}
|
|
202
82
|
/**
|
|
203
83
|
* A selectable and expandable Tree Item in a Tree.
|
|
@@ -261,7 +141,7 @@ declare class CdkTreeItemGroup<V> implements OnInit, OnDestroy, HasElement {
|
|
|
261
141
|
register(child: CdkTreeItem<V>): void;
|
|
262
142
|
unregister(child: CdkTreeItem<V>): void;
|
|
263
143
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkTreeItemGroup<any>, never>;
|
|
264
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkTreeItemGroup<any>, "[cdkTreeItemGroup]", ["cdkTreeItemGroup"], { "ownedBy": { "alias": "ownedBy"; "required": true; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.DeferredContentAware; inputs: { "preserveContent": "preserveContent"; }; outputs: {}; }]>;
|
|
144
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkTreeItemGroup<any>, "[cdkTreeItemGroup]", ["cdkTreeItemGroup"], { "ownedBy": { "alias": "ownedBy"; "required": true; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1$1.DeferredContentAware; inputs: { "preserveContent": "preserveContent"; }; outputs: {}; }]>;
|
|
265
145
|
}
|
|
266
146
|
/**
|
|
267
147
|
* A structural directive that marks the `ng-template` to be used as the content
|
|
@@ -269,7 +149,7 @@ declare class CdkTreeItemGroup<V> implements OnInit, OnDestroy, HasElement {
|
|
|
269
149
|
*/
|
|
270
150
|
declare class CdkTreeItemGroupContent {
|
|
271
151
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkTreeItemGroupContent, never>;
|
|
272
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkTreeItemGroupContent, "ng-template[cdkTreeItemGroupContent]", never, {}, {}, never, never, true, [{ directive: typeof i1.DeferredContent; inputs: {}; outputs: {}; }]>;
|
|
152
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkTreeItemGroupContent, "ng-template[cdkTreeItemGroupContent]", never, {}, {}, never, never, true, [{ directive: typeof i1$1.DeferredContent; inputs: {}; outputs: {}; }]>;
|
|
273
153
|
}
|
|
274
154
|
|
|
275
155
|
export { CdkTree, CdkTreeItem, CdkTreeItemGroup, CdkTreeItemGroupContent };
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { ComboboxPattern, ComboboxListboxControls, ComboboxTreeControls } from './_combobox-chunk.js';
|
|
2
|
+
export { ComboboxInputs } from './_combobox-chunk.js';
|
|
3
|
+
import { ListboxInputs, OptionPattern, ListboxPattern } from './_listbox-chunk.js';
|
|
4
|
+
export { OptionInputs } from './_listbox-chunk.js';
|
|
5
|
+
import * as _angular_core from '@angular/core';
|
|
6
|
+
import { SignalLike } from './_list-navigation-chunk.js';
|
|
7
|
+
export { WritableSignalLike, convertGetterSetterToWritableSignalLike } from './_list-navigation-chunk.js';
|
|
8
|
+
import { RadioGroupInputs, RadioGroupPattern } from './_radio-group-chunk.js';
|
|
9
|
+
export { RadioButtonInputs, RadioButtonPattern } from './_radio-group-chunk.js';
|
|
10
|
+
import { ToolbarPattern, ToolbarWidgetGroupControls } from './_toolbar-chunk.js';
|
|
11
|
+
export { ToolbarInputs, ToolbarWidgetGroupInputs, ToolbarWidgetGroupPattern, ToolbarWidgetInputs, ToolbarWidgetPattern } from './_toolbar-chunk.js';
|
|
12
|
+
export { TabInputs, TabListInputs, TabListPattern, TabPanelInputs, TabPanelPattern, TabPattern } from './_tabs-chunk.js';
|
|
13
|
+
export { AccordionGroupInputs, AccordionGroupPattern, AccordionPanelInputs, AccordionPanelPattern, AccordionTriggerInputs, AccordionTriggerPattern } from './_accordion-chunk.js';
|
|
14
|
+
import { TreeInputs, TreeItemPattern, TreePattern } from './_tree-chunk.js';
|
|
15
|
+
export { TreeItemInputs } from './_tree-chunk.js';
|
|
16
|
+
import './_pointer-event-manager-chunk.js';
|
|
17
|
+
import './_list-chunk.js';
|
|
18
|
+
import './_expansion-chunk.js';
|
|
19
|
+
|
|
20
|
+
type ComboboxListboxInputs<V> = ListboxInputs<V> & {
|
|
21
|
+
/** The combobox controlling the listbox. */
|
|
22
|
+
combobox: SignalLike<ComboboxPattern<OptionPattern<V>, V> | undefined>;
|
|
23
|
+
};
|
|
24
|
+
declare class ComboboxListboxPattern<V> extends ListboxPattern<V> implements ComboboxListboxControls<OptionPattern<V>, V> {
|
|
25
|
+
readonly inputs: ComboboxListboxInputs<V>;
|
|
26
|
+
/** A unique identifier for the popup. */
|
|
27
|
+
id: _angular_core.Signal<string>;
|
|
28
|
+
/** The ARIA role for the listbox. */
|
|
29
|
+
role: _angular_core.Signal<"listbox">;
|
|
30
|
+
/** The id of the active (focused) item in the listbox. */
|
|
31
|
+
activeId: _angular_core.Signal<string | undefined>;
|
|
32
|
+
/** The list of options in the listbox. */
|
|
33
|
+
items: SignalLike<OptionPattern<V>[]>;
|
|
34
|
+
/** The tabindex for the listbox. Always -1 because the combobox handles focus. */
|
|
35
|
+
tabindex: SignalLike<-1 | 0>;
|
|
36
|
+
constructor(inputs: ComboboxListboxInputs<V>);
|
|
37
|
+
/** Noop. The combobox handles keydown events. */
|
|
38
|
+
onKeydown(_: KeyboardEvent): void;
|
|
39
|
+
/** Noop. The combobox handles pointerdown events. */
|
|
40
|
+
onPointerdown(_: PointerEvent): void;
|
|
41
|
+
/** Noop. The combobox controls the open state. */
|
|
42
|
+
setDefaultState(): void;
|
|
43
|
+
/** Navigates to the specified item in the listbox. */
|
|
44
|
+
focus: (item: OptionPattern<V>) => void;
|
|
45
|
+
/** Navigates to the next focusable item in the listbox. */
|
|
46
|
+
next: () => void;
|
|
47
|
+
/** Navigates to the previous focusable item in the listbox. */
|
|
48
|
+
prev: () => void;
|
|
49
|
+
/** Navigates to the last focusable item in the listbox. */
|
|
50
|
+
last: () => void;
|
|
51
|
+
/** Navigates to the first focusable item in the listbox. */
|
|
52
|
+
first: () => void;
|
|
53
|
+
/** Unfocuses the currently focused item in the listbox. */
|
|
54
|
+
unfocus: () => void;
|
|
55
|
+
/** Selects the specified item in the listbox. */
|
|
56
|
+
select: (item?: OptionPattern<V>) => void;
|
|
57
|
+
/** Clears the selection in the listbox. */
|
|
58
|
+
clearSelection: () => void;
|
|
59
|
+
/** Retrieves the OptionPattern associated with a pointer event. */
|
|
60
|
+
getItem: (e: PointerEvent) => OptionPattern<V> | undefined;
|
|
61
|
+
/** Retrieves the currently selected item in the listbox. */
|
|
62
|
+
getSelectedItem: () => OptionPattern<V> | undefined;
|
|
63
|
+
/** Sets the value of the combobox listbox. */
|
|
64
|
+
setValue: (value: V | undefined) => void;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** Represents the required inputs for a toolbar controlled radio group. */
|
|
68
|
+
type ToolbarRadioGroupInputs<V> = RadioGroupInputs<V> & {
|
|
69
|
+
/** The toolbar controlling the radio group. */
|
|
70
|
+
toolbar: SignalLike<ToolbarPattern<V> | undefined>;
|
|
71
|
+
};
|
|
72
|
+
/** Controls the state of a radio group in a toolbar. */
|
|
73
|
+
declare class ToolbarRadioGroupPattern<V> extends RadioGroupPattern<V> implements ToolbarWidgetGroupControls {
|
|
74
|
+
readonly inputs: ToolbarRadioGroupInputs<V>;
|
|
75
|
+
constructor(inputs: ToolbarRadioGroupInputs<V>);
|
|
76
|
+
/** Noop. The toolbar handles keydown events. */
|
|
77
|
+
onKeydown(_: KeyboardEvent): void;
|
|
78
|
+
/** Noop. The toolbar handles pointerdown events. */
|
|
79
|
+
onPointerdown(_: PointerEvent): void;
|
|
80
|
+
/** Whether the radio group is currently on the first item. */
|
|
81
|
+
isOnFirstItem(): boolean;
|
|
82
|
+
/** Whether the radio group is currently on the last item. */
|
|
83
|
+
isOnLastItem(): boolean;
|
|
84
|
+
/** Navigates to the next radio button in the group. */
|
|
85
|
+
next(wrap: boolean): void;
|
|
86
|
+
/** Navigates to the previous radio button in the group. */
|
|
87
|
+
prev(wrap: boolean): void;
|
|
88
|
+
/** Navigates to the first radio button in the group. */
|
|
89
|
+
first(): void;
|
|
90
|
+
/** Navigates to the last radio button in the group. */
|
|
91
|
+
last(): void;
|
|
92
|
+
/** Removes focus from the radio group. */
|
|
93
|
+
unfocus(): void;
|
|
94
|
+
/** Triggers the action of the currently active radio button in the group. */
|
|
95
|
+
trigger(): void;
|
|
96
|
+
/** Navigates to the radio button targeted by a pointer event. */
|
|
97
|
+
goto(e: PointerEvent): void;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
type ComboboxTreeInputs<V> = TreeInputs<V> & {
|
|
101
|
+
/** The combobox controlling the tree. */
|
|
102
|
+
combobox: SignalLike<ComboboxPattern<TreeItemPattern<V>, V> | undefined>;
|
|
103
|
+
};
|
|
104
|
+
declare class ComboboxTreePattern<V> extends TreePattern<V> implements ComboboxTreeControls<TreeItemPattern<V>, V> {
|
|
105
|
+
readonly inputs: ComboboxTreeInputs<V>;
|
|
106
|
+
/** Whether the currently focused item is collapsible. */
|
|
107
|
+
isItemCollapsible: () => boolean;
|
|
108
|
+
/** The ARIA role for the tree. */
|
|
109
|
+
role: () => "tree";
|
|
110
|
+
activeId: _angular_core.Signal<string | undefined>;
|
|
111
|
+
/** The list of items in the tree. */
|
|
112
|
+
items: _angular_core.Signal<TreeItemPattern<V>[]>;
|
|
113
|
+
/** The tabindex for the tree. Always -1 because the combobox handles focus. */
|
|
114
|
+
tabindex: SignalLike<-1 | 0>;
|
|
115
|
+
constructor(inputs: ComboboxTreeInputs<V>);
|
|
116
|
+
/** Noop. The combobox handles keydown events. */
|
|
117
|
+
onKeydown(_: KeyboardEvent): void;
|
|
118
|
+
/** Noop. The combobox handles pointerdown events. */
|
|
119
|
+
onPointerdown(_: PointerEvent): void;
|
|
120
|
+
/** Noop. The combobox controls the open state. */
|
|
121
|
+
setDefaultState(): void;
|
|
122
|
+
/** Navigates to the specified item in the tree. */
|
|
123
|
+
focus: (item: TreeItemPattern<V>) => void;
|
|
124
|
+
/** Navigates to the next focusable item in the tree. */
|
|
125
|
+
next: () => void;
|
|
126
|
+
/** Navigates to the previous focusable item in the tree. */
|
|
127
|
+
prev: () => void;
|
|
128
|
+
/** Navigates to the last focusable item in the tree. */
|
|
129
|
+
last: () => void;
|
|
130
|
+
/** Navigates to the first focusable item in the tree. */
|
|
131
|
+
first: () => void;
|
|
132
|
+
/** Unfocuses the currently focused item in the tree. */
|
|
133
|
+
unfocus: () => void;
|
|
134
|
+
/** Selects the specified item in the tree or the current active item if not provided. */
|
|
135
|
+
select: (item?: TreeItemPattern<V>) => void;
|
|
136
|
+
/** Clears the selection in the tree. */
|
|
137
|
+
clearSelection: () => void;
|
|
138
|
+
/** Retrieves the TreeItemPattern associated with a pointer event. */
|
|
139
|
+
getItem: (e: PointerEvent) => TreeItemPattern<V> | undefined;
|
|
140
|
+
/** Retrieves the currently selected item in the tree */
|
|
141
|
+
getSelectedItem: () => TreeItemPattern<V> | undefined;
|
|
142
|
+
/** Sets the value of the combobox tree. */
|
|
143
|
+
setValue: (value: V | undefined) => void;
|
|
144
|
+
/** Expands the currently focused item if it is expandable. */
|
|
145
|
+
expandItem: () => void;
|
|
146
|
+
/** Collapses the currently focused item if it is expandable. */
|
|
147
|
+
collapseItem: () => void;
|
|
148
|
+
/** Whether the specified item or the currently active item is expandable. */
|
|
149
|
+
isItemExpandable(item?: TreeItemPattern<V> | undefined): boolean;
|
|
150
|
+
/** Expands all of the tree items. */
|
|
151
|
+
expandAll: () => void;
|
|
152
|
+
/** Collapses all of the tree items. */
|
|
153
|
+
collapseAll: () => void;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export { ComboboxListboxControls, ComboboxListboxPattern, ComboboxPattern, ComboboxTreeControls, ComboboxTreePattern, ListboxInputs, ListboxPattern, OptionPattern, RadioGroupInputs, RadioGroupPattern, SignalLike, ToolbarPattern, ToolbarRadioGroupPattern, ToolbarWidgetGroupControls, TreeInputs, TreeItemPattern, TreePattern };
|
|
157
|
+
export type { ComboboxListboxInputs, ComboboxTreeInputs, ToolbarRadioGroupInputs };
|