@angular/cdk-experimental 20.0.0-next.1 → 20.0.0-next.10
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/column-resize/index.d.ts +39 -4
- package/combobox/index.d.ts +3 -2
- package/deferred-content/index.d.ts +37 -0
- package/fesm2022/cdk-experimental.mjs +1 -1
- package/fesm2022/cdk-experimental.mjs.map +1 -1
- package/fesm2022/column-resize.mjs +134 -61
- package/fesm2022/column-resize.mjs.map +1 -1
- package/fesm2022/combobox.mjs +19 -22
- package/fesm2022/combobox.mjs.map +1 -1
- package/fesm2022/deferred-content.mjs +60 -0
- package/fesm2022/deferred-content.mjs.map +1 -0
- package/fesm2022/list-focus-Di7m_z_6.mjs +382 -0
- package/fesm2022/list-focus-Di7m_z_6.mjs.map +1 -0
- package/fesm2022/listbox.mjs +42 -17
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/option-f_gNslw8.mjs +367 -0
- package/fesm2022/option-f_gNslw8.mjs.map +1 -0
- package/fesm2022/{polyfill-ae40ec6f.mjs → polyfill-CXksG4af.mjs} +1 -1
- package/fesm2022/polyfill-CXksG4af.mjs.map +1 -0
- package/fesm2022/popover-edit.mjs +92 -65
- package/fesm2022/popover-edit.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +7 -7
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/selection.mjs +19 -19
- package/fesm2022/selection.mjs.map +1 -1
- package/fesm2022/table-scroll-container.mjs +8 -9
- package/fesm2022/table-scroll-container.mjs.map +1 -1
- package/fesm2022/tabs-BunANY1M.mjs +176 -0
- package/fesm2022/tabs-BunANY1M.mjs.map +1 -0
- package/fesm2022/tabs.mjs +225 -0
- package/fesm2022/tabs.mjs.map +1 -0
- package/fesm2022/ui-patterns.mjs +14 -1
- package/fesm2022/ui-patterns.mjs.map +1 -1
- package/list-navigation.d-DfOSxsSp.d.ts +247 -0
- package/listbox/index.d.ts +30 -17
- package/listbox.d-QWPLmxRe.d.ts +193 -0
- package/package.json +13 -2
- package/popover-edit/index.d.ts +6 -4
- package/selection/index.d.ts +2 -1
- package/tabs/index.d.ts +128 -0
- package/tabs.d-BAo141mw.d.ts +110 -0
- package/ui-patterns/index.d.ts +3 -1
- package/fesm2022/option-d2bb1041.mjs +0 -607
- package/fesm2022/option-d2bb1041.mjs.map +0 -1
- package/fesm2022/polyfill-ae40ec6f.mjs.map +0 -1
- package/listbox.d-8e28229b.d.ts +0 -376
package/tabs/index.d.ts
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import * as _angular_cdk_bidi from '@angular/cdk/bidi';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { a as TabPattern, d as TabPanelPattern, e as TabListPattern } from '../tabs.d-BAo141mw.js';
|
|
4
|
+
import * as i1 from '@angular/cdk-experimental/deferred-content';
|
|
5
|
+
import '../list-navigation.d-DfOSxsSp.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A Tabs container.
|
|
9
|
+
*
|
|
10
|
+
* Represents a set of layered sections of content. The CdkTabs is a container meant to be used with
|
|
11
|
+
* CdkTabList, CdkTab, and CdkTabPanel as follows:
|
|
12
|
+
*
|
|
13
|
+
* ```html
|
|
14
|
+
* <div cdkTabs>
|
|
15
|
+
* <ul cdkTabList>
|
|
16
|
+
* <li cdkTab>Tab 1</li>
|
|
17
|
+
* <li cdkTab>Tab 2</li>
|
|
18
|
+
* <li cdkTab>Tab 3</li>
|
|
19
|
+
* </ul>
|
|
20
|
+
*
|
|
21
|
+
* <div cdkTabPanel>Tab content 1</div>
|
|
22
|
+
* <div cdkTabPanel>Tab content 2</div>
|
|
23
|
+
* <div cdkTabPanel>Tab content 3</div>
|
|
24
|
+
* </div>
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
declare class CdkTabs {
|
|
28
|
+
/** The CdkTabList nested inside of the container. */
|
|
29
|
+
private readonly _cdkTabList;
|
|
30
|
+
/** The CdkTabPanels nested inside of the container. */
|
|
31
|
+
private readonly _cdkTabPanels;
|
|
32
|
+
/** The Tab UIPattern of the child Tabs. */
|
|
33
|
+
tabs: i0.Signal<TabPattern[] | undefined>;
|
|
34
|
+
/** The TabPanel UIPattern of the child TabPanels. */
|
|
35
|
+
tabpanels: i0.Signal<TabPanelPattern[]>;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTabs, never>;
|
|
37
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTabs, "[cdkTabs]", ["cdkTabs"], {}, {}, ["_cdkTabList", "_cdkTabPanels"], never, true, never>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A TabList container.
|
|
41
|
+
*
|
|
42
|
+
* Controls a list of CdkTab(s).
|
|
43
|
+
*/
|
|
44
|
+
declare class CdkTabList {
|
|
45
|
+
/** The directionality (LTR / RTL) context for the application (or a subtree of it). */
|
|
46
|
+
private readonly _directionality;
|
|
47
|
+
/** The CdkTabs nested inside of the CdkTabList. */
|
|
48
|
+
private readonly _cdkTabs;
|
|
49
|
+
/** A signal wrapper for directionality. */
|
|
50
|
+
protected textDirection: i0.Signal<_angular_cdk_bidi.Direction>;
|
|
51
|
+
/** The Tab UIPatterns of the child Tabs. */
|
|
52
|
+
tabs: i0.Signal<TabPattern[]>;
|
|
53
|
+
/** Whether the tablist is vertically or horizontally oriented. */
|
|
54
|
+
orientation: i0.InputSignal<"vertical" | "horizontal">;
|
|
55
|
+
/** Whether focus should wrap when navigating. */
|
|
56
|
+
wrap: i0.InputSignalWithTransform<boolean, unknown>;
|
|
57
|
+
/** Whether disabled items in the list should be skipped when navigating. */
|
|
58
|
+
skipDisabled: i0.InputSignalWithTransform<boolean, unknown>;
|
|
59
|
+
/** The focus strategy used by the tablist. */
|
|
60
|
+
focusMode: i0.InputSignal<"roving" | "activedescendant">;
|
|
61
|
+
/** The selection strategy used by the tablist. */
|
|
62
|
+
selectionMode: i0.InputSignal<"follow" | "explicit">;
|
|
63
|
+
/** Whether the tablist is disabled. */
|
|
64
|
+
disabled: i0.InputSignalWithTransform<boolean, unknown>;
|
|
65
|
+
/** The current index that has been navigated to. */
|
|
66
|
+
activeIndex: i0.ModelSignal<number>;
|
|
67
|
+
/** The TabList UIPattern. */
|
|
68
|
+
pattern: TabListPattern;
|
|
69
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTabList, never>;
|
|
70
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTabList, "[cdkTabList]", ["cdkTabList"], { "orientation": { "alias": "orientation"; "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; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "activeIndex": { "alias": "activeIndex"; "required": false; "isSignal": true; }; }, { "activeIndex": "activeIndexChange"; }, ["_cdkTabs"], never, true, never>;
|
|
71
|
+
}
|
|
72
|
+
/** A selectable tab in a TabList. */
|
|
73
|
+
declare class CdkTab {
|
|
74
|
+
/** A reference to the tab element. */
|
|
75
|
+
private readonly _elementRef;
|
|
76
|
+
/** The parent CdkTabs. */
|
|
77
|
+
private readonly _cdkTabs;
|
|
78
|
+
/** The parent CdkTabList. */
|
|
79
|
+
private readonly _cdkTabList;
|
|
80
|
+
/** A global unique identifier for the tab. */
|
|
81
|
+
private readonly _id;
|
|
82
|
+
/** The parent TabList UIPattern. */
|
|
83
|
+
protected tablist: i0.Signal<TabListPattern>;
|
|
84
|
+
/** The TabPanel UIPattern associated with the tab */
|
|
85
|
+
protected tabpanel: i0.Signal<TabPanelPattern | undefined>;
|
|
86
|
+
/** Whether a tab is disabled. */
|
|
87
|
+
disabled: i0.InputSignalWithTransform<boolean, unknown>;
|
|
88
|
+
/** A local unique identifier for the tab. */
|
|
89
|
+
value: i0.InputSignal<string>;
|
|
90
|
+
/** The Tab UIPattern. */
|
|
91
|
+
pattern: TabPattern;
|
|
92
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTab, never>;
|
|
93
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTab, "[cdkTab]", ["cdkTab"], { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* A TabPanel container for the resources of layered content associated with a tab.
|
|
97
|
+
*
|
|
98
|
+
* If a tabpanel is hidden due to its corresponding tab is not activated, the `inert` attribute
|
|
99
|
+
* will be applied to the tabpanel element to remove it from the accessibility tree and stop
|
|
100
|
+
* all the keyboard and pointer interactions. Note that this does not visually hide the tabpenl
|
|
101
|
+
* and a proper styling is required.
|
|
102
|
+
*/
|
|
103
|
+
declare class CdkTabPanel {
|
|
104
|
+
/** The DeferredContentAware host directive. */
|
|
105
|
+
private readonly _deferredContentAware;
|
|
106
|
+
/** The parent CdkTabs. */
|
|
107
|
+
private readonly _cdkTabs;
|
|
108
|
+
/** A global unique identifier for the tab. */
|
|
109
|
+
private readonly _id;
|
|
110
|
+
/** The Tab UIPattern associated with the tabpanel */
|
|
111
|
+
protected tab: i0.Signal<TabPattern | undefined>;
|
|
112
|
+
/** A local unique identifier for the tabpanel. */
|
|
113
|
+
value: i0.InputSignal<string>;
|
|
114
|
+
/** The TabPanel UIPattern. */
|
|
115
|
+
pattern: TabPanelPattern;
|
|
116
|
+
constructor();
|
|
117
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTabPanel, never>;
|
|
118
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTabPanel, "[cdkTabPanel]", ["cdkTabPanel"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.DeferredContentAware; inputs: { "preserveContent": "preserveContent"; }; outputs: {}; }]>;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* A TabContent container for the lazy-loaded content.
|
|
122
|
+
*/
|
|
123
|
+
declare class CdkTabContent {
|
|
124
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTabContent, never>;
|
|
125
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTabContent, "ng-template[cdkTabContent]", ["cdTabContent"], {}, {}, never, never, true, [{ directive: typeof i1.DeferredContent; inputs: {}; outputs: {}; }]>;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export { CdkTab, CdkTabContent, CdkTabList, CdkTabPanel, CdkTabs };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { L as ListNavigationItem, a as ListSelectionItem, b as ListFocusItem, S as SignalLike, d as ListNavigationInputs, e as ListSelectionInputs, f as ListFocusInputs, g as ListNavigation, h as ListSelection, i as ListFocus, K as KeyboardEventManager, P as PointerEventManager } from './list-navigation.d-DfOSxsSp.js';
|
|
3
|
+
|
|
4
|
+
/** The required inputs to tabs. */
|
|
5
|
+
interface TabInputs extends ListNavigationItem, ListSelectionItem<string>, ListFocusItem {
|
|
6
|
+
tablist: SignalLike<TabListPattern>;
|
|
7
|
+
tabpanel: SignalLike<TabPanelPattern | undefined>;
|
|
8
|
+
}
|
|
9
|
+
/** A tab in a tablist. */
|
|
10
|
+
declare class TabPattern {
|
|
11
|
+
/** A global unique identifier for the tab. */
|
|
12
|
+
id: SignalLike<string>;
|
|
13
|
+
/** A local unique identifier for the tab. */
|
|
14
|
+
value: SignalLike<string>;
|
|
15
|
+
/** Whether the tab is active. */
|
|
16
|
+
active: i0.Signal<boolean>;
|
|
17
|
+
/** Whether the tab is selected. */
|
|
18
|
+
selected: i0.Signal<boolean>;
|
|
19
|
+
/** A Tabpanel Id controlled by the tab. */
|
|
20
|
+
controls: i0.Signal<string | undefined>;
|
|
21
|
+
/** Whether the tab is disabled. */
|
|
22
|
+
disabled: SignalLike<boolean>;
|
|
23
|
+
/** A reference to the parent tablist. */
|
|
24
|
+
tablist: SignalLike<TabListPattern>;
|
|
25
|
+
/** A reference to the corresponding tabpanel. */
|
|
26
|
+
tabpanel: SignalLike<TabPanelPattern | undefined>;
|
|
27
|
+
/** The tabindex of the tab. */
|
|
28
|
+
tabindex: i0.Signal<0 | -1>;
|
|
29
|
+
/** The html element that should receive focus. */
|
|
30
|
+
element: SignalLike<HTMLElement>;
|
|
31
|
+
constructor(inputs: TabInputs);
|
|
32
|
+
}
|
|
33
|
+
/** The selection operations that the tablist can perform. */
|
|
34
|
+
interface SelectOptions {
|
|
35
|
+
select?: boolean;
|
|
36
|
+
toggle?: boolean;
|
|
37
|
+
toggleOne?: boolean;
|
|
38
|
+
selectOne?: boolean;
|
|
39
|
+
}
|
|
40
|
+
/** The required inputs for the tablist. */
|
|
41
|
+
type TabListInputs = ListNavigationInputs<TabPattern> & Omit<ListSelectionInputs<TabPattern, string>, 'multi'> & ListFocusInputs<TabPattern> & {
|
|
42
|
+
disabled: SignalLike<boolean>;
|
|
43
|
+
};
|
|
44
|
+
/** The required inputs for the tabpanel. */
|
|
45
|
+
interface TabPanelInputs {
|
|
46
|
+
id: SignalLike<string>;
|
|
47
|
+
tab: SignalLike<TabPattern | undefined>;
|
|
48
|
+
value: SignalLike<string>;
|
|
49
|
+
}
|
|
50
|
+
/** A tabpanel associated with a tab. */
|
|
51
|
+
declare class TabPanelPattern {
|
|
52
|
+
/** A global unique identifier for the tabpanel. */
|
|
53
|
+
id: SignalLike<string>;
|
|
54
|
+
/** A local unique identifier for the tabpanel. */
|
|
55
|
+
value: SignalLike<string>;
|
|
56
|
+
/** A reference to the corresponding tab. */
|
|
57
|
+
tab: SignalLike<TabPattern | undefined>;
|
|
58
|
+
/** Whether the tabpanel is hidden. */
|
|
59
|
+
hidden: i0.Signal<boolean>;
|
|
60
|
+
constructor(inputs: TabPanelInputs);
|
|
61
|
+
}
|
|
62
|
+
/** Controls the state of a tablist. */
|
|
63
|
+
declare class TabListPattern {
|
|
64
|
+
readonly inputs: TabListInputs;
|
|
65
|
+
/** Controls navigation for the tablist. */
|
|
66
|
+
navigation: ListNavigation<TabPattern>;
|
|
67
|
+
/** Controls selection for the tablist. */
|
|
68
|
+
selection: ListSelection<TabPattern, string>;
|
|
69
|
+
/** Controls focus for the tablist. */
|
|
70
|
+
focusManager: ListFocus<TabPattern>;
|
|
71
|
+
/** Whether the tablist is vertically or horizontally oriented. */
|
|
72
|
+
orientation: SignalLike<'vertical' | 'horizontal'>;
|
|
73
|
+
/** Whether the tablist is disabled. */
|
|
74
|
+
disabled: SignalLike<boolean>;
|
|
75
|
+
/** The tabindex of the tablist. */
|
|
76
|
+
tabindex: i0.Signal<0 | -1>;
|
|
77
|
+
/** The id of the current active tab. */
|
|
78
|
+
activedescendant: i0.Signal<string | undefined>;
|
|
79
|
+
/** Whether selection should follow focus. */
|
|
80
|
+
followFocus: i0.Signal<boolean>;
|
|
81
|
+
/** The key used to navigate to the previous tab in the tablist. */
|
|
82
|
+
prevKey: i0.Signal<"ArrowUp" | "ArrowRight" | "ArrowLeft">;
|
|
83
|
+
/** The key used to navigate to the next item in the list. */
|
|
84
|
+
nextKey: i0.Signal<"ArrowRight" | "ArrowLeft" | "ArrowDown">;
|
|
85
|
+
/** The keydown event manager for the tablist. */
|
|
86
|
+
keydown: i0.Signal<KeyboardEventManager<KeyboardEvent>>;
|
|
87
|
+
/** The pointerdown event manager for the tablist. */
|
|
88
|
+
pointerdown: i0.Signal<PointerEventManager<PointerEvent>>;
|
|
89
|
+
constructor(inputs: TabListInputs);
|
|
90
|
+
/** Handles keydown events for the tablist. */
|
|
91
|
+
onKeydown(event: KeyboardEvent): void;
|
|
92
|
+
/** The pointerdown event manager for the tablist. */
|
|
93
|
+
onPointerdown(event: PointerEvent): void;
|
|
94
|
+
/** Navigates to the first option in the tablist. */
|
|
95
|
+
first(opts?: SelectOptions): void;
|
|
96
|
+
/** Navigates to the last option in the tablist. */
|
|
97
|
+
last(opts?: SelectOptions): void;
|
|
98
|
+
/** Navigates to the next option in the tablist. */
|
|
99
|
+
next(opts?: SelectOptions): void;
|
|
100
|
+
/** Navigates to the previous option in the tablist. */
|
|
101
|
+
prev(opts?: SelectOptions): void;
|
|
102
|
+
/** Navigates to the given item in the tablist. */
|
|
103
|
+
goto(event: PointerEvent, opts?: SelectOptions): void;
|
|
104
|
+
/** Handles updating selection for the tablist. */
|
|
105
|
+
private _updateSelection;
|
|
106
|
+
private _getItem;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export { TabPattern as a, TabPanelPattern as d, TabListPattern as e };
|
|
110
|
+
export type { TabInputs as T, TabListInputs as b, TabPanelInputs as c };
|
package/ui-patterns/index.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { L as ListboxInputs, a as ListboxPattern, O as OptionInputs, b as OptionPattern } from '../listbox.d-QWPLmxRe.js';
|
|
2
|
+
export { S as SignalLike, W as WritableSignalLike, c as convertGetterSetterToWritableSignalLike } from '../list-navigation.d-DfOSxsSp.js';
|
|
3
|
+
export { T as TabInputs, b as TabListInputs, e as TabListPattern, c as TabPanelInputs, d as TabPanelPattern, a as TabPattern } from '../tabs.d-BAo141mw.js';
|
|
2
4
|
import '@angular/core';
|