@angular/cdk-experimental 21.0.0-next.6 → 21.0.0-next.9

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.
Files changed (74) hide show
  1. package/fesm2022/_polyfill-chunk.mjs.map +1 -1
  2. package/fesm2022/cdk-experimental.mjs +1 -1
  3. package/fesm2022/cdk-experimental.mjs.map +1 -1
  4. package/fesm2022/column-resize.mjs.map +1 -1
  5. package/fesm2022/popover-edit.mjs.map +1 -1
  6. package/fesm2022/scrolling.mjs.map +1 -1
  7. package/fesm2022/selection.mjs.map +1 -1
  8. package/fesm2022/table-scroll-container.mjs.map +1 -1
  9. package/package.json +3 -38
  10. package/types/column-resize.d.ts +37 -37
  11. package/types/popover-edit.d.ts +30 -30
  12. package/types/scrolling.d.ts +6 -6
  13. package/types/selection.d.ts +14 -14
  14. package/types/table-scroll-container.d.ts +6 -6
  15. package/fesm2022/_accordion-chunk.mjs +0 -153
  16. package/fesm2022/_accordion-chunk.mjs.map +0 -1
  17. package/fesm2022/_combobox-chunk.mjs +0 -278
  18. package/fesm2022/_combobox-chunk.mjs.map +0 -1
  19. package/fesm2022/_combobox-listbox-chunk.mjs +0 -278
  20. package/fesm2022/_combobox-listbox-chunk.mjs.map +0 -1
  21. package/fesm2022/_combobox-tree-chunk.mjs +0 -398
  22. package/fesm2022/_combobox-tree-chunk.mjs.map +0 -1
  23. package/fesm2022/_expansion-chunk.mjs +0 -87
  24. package/fesm2022/_expansion-chunk.mjs.map +0 -1
  25. package/fesm2022/_list-chunk.mjs +0 -374
  26. package/fesm2022/_list-chunk.mjs.map +0 -1
  27. package/fesm2022/_list-navigation-chunk.mjs +0 -131
  28. package/fesm2022/_list-navigation-chunk.mjs.map +0 -1
  29. package/fesm2022/_pointer-event-manager-chunk.mjs +0 -145
  30. package/fesm2022/_pointer-event-manager-chunk.mjs.map +0 -1
  31. package/fesm2022/_tabs-chunk.mjs +0 -211
  32. package/fesm2022/_tabs-chunk.mjs.map +0 -1
  33. package/fesm2022/_toolbar-chunk.mjs +0 -273
  34. package/fesm2022/_toolbar-chunk.mjs.map +0 -1
  35. package/fesm2022/_toolbar-radio-group-chunk.mjs +0 -222
  36. package/fesm2022/_toolbar-radio-group-chunk.mjs.map +0 -1
  37. package/fesm2022/accordion.mjs +0 -195
  38. package/fesm2022/accordion.mjs.map +0 -1
  39. package/fesm2022/combobox.mjs +0 -131
  40. package/fesm2022/combobox.mjs.map +0 -1
  41. package/fesm2022/deferred-content.mjs +0 -59
  42. package/fesm2022/deferred-content.mjs.map +0 -1
  43. package/fesm2022/listbox.mjs +0 -204
  44. package/fesm2022/listbox.mjs.map +0 -1
  45. package/fesm2022/radio-group.mjs +0 -200
  46. package/fesm2022/radio-group.mjs.map +0 -1
  47. package/fesm2022/tabs.mjs +0 -303
  48. package/fesm2022/tabs.mjs.map +0 -1
  49. package/fesm2022/toolbar.mjs +0 -221
  50. package/fesm2022/toolbar.mjs.map +0 -1
  51. package/fesm2022/tree.mjs +0 -333
  52. package/fesm2022/tree.mjs.map +0 -1
  53. package/fesm2022/ui-patterns.mjs +0 -24
  54. package/fesm2022/ui-patterns.mjs.map +0 -1
  55. package/types/_accordion-chunk.d.ts +0 -90
  56. package/types/_combobox-chunk.d.ts +0 -138
  57. package/types/_expansion-chunk.d.ts +0 -71
  58. package/types/_list-chunk.d.ts +0 -209
  59. package/types/_list-navigation-chunk.d.ts +0 -101
  60. package/types/_listbox-chunk.d.ts +0 -105
  61. package/types/_pointer-event-manager-chunk.d.ts +0 -98
  62. package/types/_radio-group-chunk.d.ts +0 -92
  63. package/types/_tabs-chunk.d.ts +0 -138
  64. package/types/_toolbar-chunk.d.ts +0 -150
  65. package/types/_tree-chunk.d.ts +0 -139
  66. package/types/accordion.d.ts +0 -95
  67. package/types/combobox.d.ts +0 -54
  68. package/types/deferred-content.d.ts +0 -37
  69. package/types/listbox.d.ts +0 -99
  70. package/types/radio-group.d.ts +0 -85
  71. package/types/tabs.d.ts +0 -160
  72. package/types/toolbar.d.ts +0 -115
  73. package/types/tree.d.ts +0 -155
  74. package/types/ui-patterns.d.ts +0 -157
package/types/tree.d.ts DELETED
@@ -1,155 +0,0 @@
1
- import * as _angular_cdk_bidi from '@angular/cdk/bidi';
2
- import * as _angular_core from '@angular/core';
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';
11
-
12
- interface HasElement {
13
- element: Signal<HTMLElement>;
14
- }
15
- /**
16
- * A Tree container.
17
- *
18
- * Transforms nested lists into an accessible, ARIA-compliant tree structure.
19
- *
20
- * ```html
21
- * <ul cdkTree [(value)]="selectedItems" [multi]="true">
22
- * <li cdkTreeItem [value]="'leaf1'">Leaf Item 1</li>
23
- * <li cdkTreeItem [value]="'parent1'">
24
- * Parent Item 1
25
- * <ul cdkTreeItemGroup [value]="'parent1'">
26
- * <ng-template cdkTreeItemGroupContent>
27
- * <li cdkTreeItem [value]="'child1.1'">Child Item 1.1</li>
28
- * <li cdkTreeItem [value]="'child1.2'">Child Item 1.2</li>
29
- * </ng-template>
30
- * </ul>
31
- * </li>
32
- * <li cdkTreeItem [value]="'leaf2'" [disabled]="true">Disabled Leaf Item 2</li>
33
- * </ul>
34
- * ```
35
- */
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;
43
- /** A reference to the tree element. */
44
- private readonly _elementRef;
45
- /** All CdkTreeItem instances within this tree. */
46
- private readonly _unorderedItems;
47
- /** Orientation of the tree. */
48
- readonly orientation: _angular_core.InputSignal<"vertical" | "horizontal">;
49
- /** Whether multi-selection is allowed. */
50
- readonly multi: _angular_core.InputSignalWithTransform<boolean, unknown>;
51
- /** Whether the tree is disabled. */
52
- readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
53
- /** The selection strategy used by the tree. */
54
- readonly selectionMode: _angular_core.InputSignal<"explicit" | "follow">;
55
- /** The focus strategy used by the tree. */
56
- readonly focusMode: _angular_core.InputSignal<"roving" | "activedescendant">;
57
- /** Whether navigation wraps. */
58
- readonly wrap: _angular_core.InputSignalWithTransform<boolean, unknown>;
59
- /** Whether to skip disabled items during navigation. */
60
- readonly skipDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
61
- /** Typeahead delay. */
62
- readonly typeaheadDelay: _angular_core.InputSignal<number>;
63
- /** Selected item values. */
64
- readonly value: _angular_core.ModelSignal<V[]>;
65
- /** Text direction. */
66
- readonly textDirection: _angular_core.WritableSignal<_angular_cdk_bidi.Direction>;
67
- /** Whether the tree is in navigation mode. */
68
- readonly nav: _angular_core.InputSignal<boolean>;
69
- /** The aria-current type. */
70
- readonly currentType: _angular_core.InputSignal<"page" | "step" | "location" | "date" | "time" | "true" | "false">;
71
- /** The UI pattern for the tree. */
72
- readonly pattern: TreePattern<V>;
73
- /** Whether the tree has received focus yet. */
74
- private _hasFocused;
75
- constructor();
76
- onFocus(): void;
77
- register(child: CdkTreeItem<V>): void;
78
- unregister(child: CdkTreeItem<V>): void;
79
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkTree<any>, never>;
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: {}; }]>;
81
- }
82
- /**
83
- * A selectable and expandable Tree Item in a Tree.
84
- */
85
- declare class CdkTreeItem<V> implements OnInit, OnDestroy, HasElement {
86
- /** A reference to the tree item element. */
87
- private readonly _elementRef;
88
- /** A unique identifier for the tree item. */
89
- private readonly _id;
90
- /** The owned tree item group. */
91
- private readonly _group;
92
- /** The id of the owned group. */
93
- readonly ownsId: Signal<string | undefined>;
94
- /** The host native element. */
95
- readonly element: Signal<any>;
96
- /** The value of the tree item. */
97
- readonly value: _angular_core.InputSignal<V>;
98
- /** The parent tree root or tree item group. */
99
- readonly parent: _angular_core.InputSignal<CdkTreeItemGroup<V> | CdkTree<V>>;
100
- /** Whether the tree item is disabled. */
101
- readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
102
- /** Optional label for typeahead. Defaults to the element's textContent. */
103
- readonly label: _angular_core.InputSignal<string | undefined>;
104
- /** Search term for typeahead. */
105
- readonly searchTerm: Signal<any>;
106
- /** The tree root. */
107
- readonly tree: Signal<CdkTree<V>>;
108
- /** The UI pattern for this item. */
109
- pattern: TreeItemPattern<V>;
110
- constructor();
111
- ngOnInit(): void;
112
- ngOnDestroy(): void;
113
- register(group: CdkTreeItemGroup<V>): void;
114
- unregister(): void;
115
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkTreeItem<any>, never>;
116
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkTreeItem<any>, "[cdkTreeItem]", ["cdkTreeItem"], { "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>;
117
- }
118
- /**
119
- * Container that designates content as a group.
120
- */
121
- declare class CdkTreeItemGroup<V> implements OnInit, OnDestroy, HasElement {
122
- /** A reference to the group element. */
123
- private readonly _elementRef;
124
- /** The DeferredContentAware host directive. */
125
- private readonly _deferredContentAware;
126
- /** All groupable items that are descendants of the group. */
127
- private readonly _unorderedItems;
128
- /** The host native element. */
129
- readonly element: Signal<any>;
130
- /** Unique ID for the group. */
131
- readonly id: string;
132
- /** Whether the group is visible. */
133
- readonly visible: _angular_core.WritableSignal<boolean>;
134
- /** Child items within this group. */
135
- readonly children: Signal<CdkTreeItem<V>[]>;
136
- /** Tree item that owns the group. */
137
- readonly ownedBy: _angular_core.InputSignal<CdkTreeItem<V>>;
138
- constructor();
139
- ngOnInit(): void;
140
- ngOnDestroy(): void;
141
- register(child: CdkTreeItem<V>): void;
142
- unregister(child: CdkTreeItem<V>): void;
143
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkTreeItemGroup<any>, never>;
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: {}; }]>;
145
- }
146
- /**
147
- * A structural directive that marks the `ng-template` to be used as the content
148
- * for a `CdkTreeItemGroup`. This content can be lazily loaded.
149
- */
150
- declare class CdkTreeItemGroupContent {
151
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkTreeItemGroupContent, never>;
152
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkTreeItemGroupContent, "ng-template[cdkTreeItemGroupContent]", never, {}, {}, never, never, true, [{ directive: typeof i1$1.DeferredContent; inputs: {}; outputs: {}; }]>;
153
- }
154
-
155
- export { CdkTree, CdkTreeItem, CdkTreeItemGroup, CdkTreeItemGroupContent };
@@ -1,157 +0,0 @@
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 };