@workday/canvas-kit-react 9.0.0-alpha.415-next.17 → 9.0.0-alpha.417-next.19
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/collection/index.ts +1 -0
- package/collection/lib/useCursorListModel.tsx +17 -18
- package/collection/lib/useListItemAllowChildStrings.ts +3 -3
- package/collection/lib/useListItemRovingFocus.tsx +26 -7
- package/collection/lib/useListLoader.ts +313 -0
- package/dist/commonjs/action-bar/lib/ActionBar.d.ts +427 -124
- package/dist/commonjs/action-bar/lib/ActionBar.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/ActionBarItem.d.ts +21 -12
- package/dist/commonjs/action-bar/lib/ActionBarItem.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/ActionBarList.d.ts +21 -12
- package/dist/commonjs/action-bar/lib/ActionBarList.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/ActionBarOverflowButton.d.ts +28 -16
- package/dist/commonjs/action-bar/lib/ActionBarOverflowButton.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/useActionBarModel.d.ts +205 -52
- package/dist/commonjs/action-bar/lib/useActionBarModel.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs.d.ts +448 -136
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts +28 -16
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsItem.d.ts +21 -12
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsItem.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsList.d.ts +14 -8
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsList.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsMenu.d.ts +208 -64
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsMenu.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts +28 -16
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts +205 -52
- package/dist/commonjs/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts.map +1 -1
- package/dist/commonjs/collection/index.d.ts +1 -0
- package/dist/commonjs/collection/index.d.ts.map +1 -1
- package/dist/commonjs/collection/index.js +1 -0
- package/dist/commonjs/collection/lib/ListBox.d.ts +162 -48
- package/dist/commonjs/collection/lib/ListBox.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useCursorListModel.d.ts +354 -56
- package/dist/commonjs/collection/lib/useCursorListModel.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useCursorListModel.js +12 -15
- package/dist/commonjs/collection/lib/useGridModel.d.ts +155 -44
- package/dist/commonjs/collection/lib/useGridModel.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useListItemAllowChildStrings.d.ts +10 -7
- package/dist/commonjs/collection/lib/useListItemAllowChildStrings.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useListItemAllowChildStrings.js +3 -3
- package/dist/commonjs/collection/lib/useListItemRegister.d.ts +7 -4
- package/dist/commonjs/collection/lib/useListItemRegister.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useListItemRovingFocus.d.ts +7 -5
- package/dist/commonjs/collection/lib/useListItemRovingFocus.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useListItemRovingFocus.js +21 -8
- package/dist/commonjs/collection/lib/useListItemSelect.d.ts +7 -4
- package/dist/commonjs/collection/lib/useListItemSelect.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useListLoader.d.ts +67 -0
- package/dist/commonjs/collection/lib/useListLoader.d.ts.map +1 -0
- package/dist/commonjs/collection/lib/useListLoader.js +213 -0
- package/dist/commonjs/collection/lib/useListModel.d.ts +155 -44
- package/dist/commonjs/collection/lib/useListModel.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useListResetCursorOnBlur.d.ts +7 -4
- package/dist/commonjs/collection/lib/useListResetCursorOnBlur.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useOverflowListItemMeasure.d.ts +7 -4
- package/dist/commonjs/collection/lib/useOverflowListItemMeasure.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useOverflowListMeasure.d.ts +7 -4
- package/dist/commonjs/collection/lib/useOverflowListMeasure.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useOverflowListModel.d.ts +191 -44
- package/dist/commonjs/collection/lib/useOverflowListModel.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useOverflowListTarget.d.ts +7 -4
- package/dist/commonjs/collection/lib/useOverflowListTarget.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useSelectionListModel.d.ts +155 -44
- package/dist/commonjs/collection/lib/useSelectionListModel.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/Menu.d.ts +201 -60
- package/dist/commonjs/menu/lib/Menu.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/MenuCard.d.ts +14 -8
- package/dist/commonjs/menu/lib/MenuCard.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/MenuContextTarget.d.ts +21 -12
- package/dist/commonjs/menu/lib/MenuContextTarget.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/MenuItem.d.ts +14 -9
- package/dist/commonjs/menu/lib/MenuItem.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/MenuList.d.ts +14 -8
- package/dist/commonjs/menu/lib/MenuList.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/MenuPopper.d.ts +7 -4
- package/dist/commonjs/menu/lib/MenuPopper.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/MenuTarget.d.ts +35 -20
- package/dist/commonjs/menu/lib/MenuTarget.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/useMenuModel.d.ts +173 -44
- package/dist/commonjs/menu/lib/useMenuModel.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/Tabs.d.ts +626 -176
- package/dist/commonjs/tabs/lib/Tabs.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsItem.d.ts +28 -17
- package/dist/commonjs/tabs/lib/TabsItem.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsList.d.ts +28 -16
- package/dist/commonjs/tabs/lib/TabsList.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsMenuPopper.d.ts +7 -4
- package/dist/commonjs/tabs/lib/TabsMenuPopper.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsOverflowButton.d.ts +28 -16
- package/dist/commonjs/tabs/lib/TabsOverflowButton.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsPanel.d.ts +28 -16
- package/dist/commonjs/tabs/lib/TabsPanel.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsPanels.d.ts +14 -8
- package/dist/commonjs/tabs/lib/TabsPanels.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/useTabsModel.d.ts +521 -116
- package/dist/commonjs/tabs/lib/useTabsModel.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBar.d.ts +427 -124
- package/dist/es6/action-bar/lib/ActionBar.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBarItem.d.ts +21 -12
- package/dist/es6/action-bar/lib/ActionBarItem.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBarList.d.ts +21 -12
- package/dist/es6/action-bar/lib/ActionBarList.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBarOverflowButton.d.ts +28 -16
- package/dist/es6/action-bar/lib/ActionBarOverflowButton.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/useActionBarModel.d.ts +205 -52
- package/dist/es6/action-bar/lib/useActionBarModel.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs.d.ts +448 -136
- package/dist/es6/breadcrumbs/lib/Breadcrumbs.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts +28 -16
- package/dist/es6/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/BreadcrumbsItem.d.ts +21 -12
- package/dist/es6/breadcrumbs/lib/BreadcrumbsItem.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/BreadcrumbsList.d.ts +14 -8
- package/dist/es6/breadcrumbs/lib/BreadcrumbsList.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/BreadcrumbsMenu.d.ts +208 -64
- package/dist/es6/breadcrumbs/lib/BreadcrumbsMenu.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts +28 -16
- package/dist/es6/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts +205 -52
- package/dist/es6/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts.map +1 -1
- package/dist/es6/collection/index.d.ts +1 -0
- package/dist/es6/collection/index.d.ts.map +1 -1
- package/dist/es6/collection/index.js +1 -0
- package/dist/es6/collection/lib/ListBox.d.ts +162 -48
- package/dist/es6/collection/lib/ListBox.d.ts.map +1 -1
- package/dist/es6/collection/lib/useCursorListModel.d.ts +354 -56
- package/dist/es6/collection/lib/useCursorListModel.d.ts.map +1 -1
- package/dist/es6/collection/lib/useCursorListModel.js +12 -15
- package/dist/es6/collection/lib/useGridModel.d.ts +155 -44
- package/dist/es6/collection/lib/useGridModel.d.ts.map +1 -1
- package/dist/es6/collection/lib/useListItemAllowChildStrings.d.ts +10 -7
- package/dist/es6/collection/lib/useListItemAllowChildStrings.d.ts.map +1 -1
- package/dist/es6/collection/lib/useListItemAllowChildStrings.js +3 -3
- package/dist/es6/collection/lib/useListItemRegister.d.ts +7 -4
- package/dist/es6/collection/lib/useListItemRegister.d.ts.map +1 -1
- package/dist/es6/collection/lib/useListItemRovingFocus.d.ts +7 -5
- package/dist/es6/collection/lib/useListItemRovingFocus.d.ts.map +1 -1
- package/dist/es6/collection/lib/useListItemRovingFocus.js +21 -8
- package/dist/es6/collection/lib/useListItemSelect.d.ts +7 -4
- package/dist/es6/collection/lib/useListItemSelect.d.ts.map +1 -1
- package/dist/es6/collection/lib/useListLoader.d.ts +67 -0
- package/dist/es6/collection/lib/useListLoader.d.ts.map +1 -0
- package/dist/es6/collection/lib/useListLoader.js +204 -0
- package/dist/es6/collection/lib/useListModel.d.ts +155 -44
- package/dist/es6/collection/lib/useListModel.d.ts.map +1 -1
- package/dist/es6/collection/lib/useListResetCursorOnBlur.d.ts +7 -4
- package/dist/es6/collection/lib/useListResetCursorOnBlur.d.ts.map +1 -1
- package/dist/es6/collection/lib/useOverflowListItemMeasure.d.ts +7 -4
- package/dist/es6/collection/lib/useOverflowListItemMeasure.d.ts.map +1 -1
- package/dist/es6/collection/lib/useOverflowListMeasure.d.ts +7 -4
- package/dist/es6/collection/lib/useOverflowListMeasure.d.ts.map +1 -1
- package/dist/es6/collection/lib/useOverflowListModel.d.ts +191 -44
- package/dist/es6/collection/lib/useOverflowListModel.d.ts.map +1 -1
- package/dist/es6/collection/lib/useOverflowListTarget.d.ts +7 -4
- package/dist/es6/collection/lib/useOverflowListTarget.d.ts.map +1 -1
- package/dist/es6/collection/lib/useSelectionListModel.d.ts +155 -44
- package/dist/es6/collection/lib/useSelectionListModel.d.ts.map +1 -1
- package/dist/es6/menu/lib/Menu.d.ts +201 -60
- package/dist/es6/menu/lib/Menu.d.ts.map +1 -1
- package/dist/es6/menu/lib/MenuCard.d.ts +14 -8
- package/dist/es6/menu/lib/MenuCard.d.ts.map +1 -1
- package/dist/es6/menu/lib/MenuContextTarget.d.ts +21 -12
- package/dist/es6/menu/lib/MenuContextTarget.d.ts.map +1 -1
- package/dist/es6/menu/lib/MenuItem.d.ts +14 -9
- package/dist/es6/menu/lib/MenuItem.d.ts.map +1 -1
- package/dist/es6/menu/lib/MenuList.d.ts +14 -8
- package/dist/es6/menu/lib/MenuList.d.ts.map +1 -1
- package/dist/es6/menu/lib/MenuPopper.d.ts +7 -4
- package/dist/es6/menu/lib/MenuPopper.d.ts.map +1 -1
- package/dist/es6/menu/lib/MenuTarget.d.ts +35 -20
- package/dist/es6/menu/lib/MenuTarget.d.ts.map +1 -1
- package/dist/es6/menu/lib/useMenuModel.d.ts +173 -44
- package/dist/es6/menu/lib/useMenuModel.d.ts.map +1 -1
- package/dist/es6/tabs/lib/Tabs.d.ts +626 -176
- package/dist/es6/tabs/lib/Tabs.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsItem.d.ts +28 -17
- package/dist/es6/tabs/lib/TabsItem.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsList.d.ts +28 -16
- package/dist/es6/tabs/lib/TabsList.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsMenuPopper.d.ts +7 -4
- package/dist/es6/tabs/lib/TabsMenuPopper.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsOverflowButton.d.ts +28 -16
- package/dist/es6/tabs/lib/TabsOverflowButton.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsPanel.d.ts +28 -16
- package/dist/es6/tabs/lib/TabsPanel.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsPanels.d.ts +14 -8
- package/dist/es6/tabs/lib/TabsPanels.d.ts.map +1 -1
- package/dist/es6/tabs/lib/useTabsModel.d.ts +521 -116
- package/dist/es6/tabs/lib/useTabsModel.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -35,6 +35,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
35
35
|
cursorId: string;
|
|
36
36
|
columnCount: number;
|
|
37
37
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
38
|
+
cursorIndexRef: {
|
|
39
|
+
readonly current: number;
|
|
40
|
+
};
|
|
38
41
|
UNSTABLE_virtual: {
|
|
39
42
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
40
43
|
totalSize: number;
|
|
@@ -64,6 +67,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
64
67
|
cursorId: string;
|
|
65
68
|
columnCount: number;
|
|
66
69
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
70
|
+
cursorIndexRef: {
|
|
71
|
+
readonly current: number;
|
|
72
|
+
};
|
|
67
73
|
UNSTABLE_virtual: {
|
|
68
74
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
69
75
|
totalSize: number;
|
|
@@ -93,6 +99,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
93
99
|
cursorId: string;
|
|
94
100
|
columnCount: number;
|
|
95
101
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
102
|
+
cursorIndexRef: {
|
|
103
|
+
readonly current: number;
|
|
104
|
+
};
|
|
96
105
|
UNSTABLE_virtual: {
|
|
97
106
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
98
107
|
totalSize: number;
|
|
@@ -124,6 +133,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
124
133
|
cursorId: string;
|
|
125
134
|
columnCount: number;
|
|
126
135
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
136
|
+
cursorIndexRef: {
|
|
137
|
+
readonly current: number;
|
|
138
|
+
};
|
|
127
139
|
UNSTABLE_virtual: {
|
|
128
140
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
129
141
|
totalSize: number;
|
|
@@ -153,6 +165,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
153
165
|
cursorId: string;
|
|
154
166
|
columnCount: number;
|
|
155
167
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
168
|
+
cursorIndexRef: {
|
|
169
|
+
readonly current: number;
|
|
170
|
+
};
|
|
156
171
|
UNSTABLE_virtual: {
|
|
157
172
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
158
173
|
totalSize: number;
|
|
@@ -182,6 +197,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
182
197
|
cursorId: string;
|
|
183
198
|
columnCount: number;
|
|
184
199
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
200
|
+
cursorIndexRef: {
|
|
201
|
+
readonly current: number;
|
|
202
|
+
};
|
|
185
203
|
UNSTABLE_virtual: {
|
|
186
204
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
187
205
|
totalSize: number;
|
|
@@ -198,9 +216,8 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
198
216
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
199
217
|
mode: "multiple" | "single";
|
|
200
218
|
}) => void) | undefined;
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
textValue: string;
|
|
219
|
+
onGoTo?: ((data: {
|
|
220
|
+
id: string;
|
|
204
221
|
}, prevState: {
|
|
205
222
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
206
223
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
@@ -214,6 +231,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
214
231
|
cursorId: string;
|
|
215
232
|
columnCount: number;
|
|
216
233
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
234
|
+
cursorIndexRef: {
|
|
235
|
+
readonly current: number;
|
|
236
|
+
};
|
|
217
237
|
UNSTABLE_virtual: {
|
|
218
238
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
219
239
|
totalSize: number;
|
|
@@ -230,9 +250,7 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
230
250
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
231
251
|
mode: "multiple" | "single";
|
|
232
252
|
}) => void) | undefined;
|
|
233
|
-
|
|
234
|
-
id: string;
|
|
235
|
-
}, prevState: {
|
|
253
|
+
onGoToNext?: ((data: undefined, prevState: {
|
|
236
254
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
237
255
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
238
256
|
initialFocusRef: import("react").RefObject<any> | undefined;
|
|
@@ -245,6 +263,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
245
263
|
cursorId: string;
|
|
246
264
|
columnCount: number;
|
|
247
265
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
266
|
+
cursorIndexRef: {
|
|
267
|
+
readonly current: number;
|
|
268
|
+
};
|
|
248
269
|
UNSTABLE_virtual: {
|
|
249
270
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
250
271
|
totalSize: number;
|
|
@@ -261,7 +282,7 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
261
282
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
262
283
|
mode: "multiple" | "single";
|
|
263
284
|
}) => void) | undefined;
|
|
264
|
-
|
|
285
|
+
onGoToPrevious?: ((data: undefined, prevState: {
|
|
265
286
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
266
287
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
267
288
|
initialFocusRef: import("react").RefObject<any> | undefined;
|
|
@@ -274,6 +295,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
274
295
|
cursorId: string;
|
|
275
296
|
columnCount: number;
|
|
276
297
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
298
|
+
cursorIndexRef: {
|
|
299
|
+
readonly current: number;
|
|
300
|
+
};
|
|
277
301
|
UNSTABLE_virtual: {
|
|
278
302
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
279
303
|
totalSize: number;
|
|
@@ -290,7 +314,7 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
290
314
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
291
315
|
mode: "multiple" | "single";
|
|
292
316
|
}) => void) | undefined;
|
|
293
|
-
|
|
317
|
+
onGoToPreviousRow?: ((data: undefined, prevState: {
|
|
294
318
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
295
319
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
296
320
|
initialFocusRef: import("react").RefObject<any> | undefined;
|
|
@@ -303,6 +327,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
303
327
|
cursorId: string;
|
|
304
328
|
columnCount: number;
|
|
305
329
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
330
|
+
cursorIndexRef: {
|
|
331
|
+
readonly current: number;
|
|
332
|
+
};
|
|
306
333
|
UNSTABLE_virtual: {
|
|
307
334
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
308
335
|
totalSize: number;
|
|
@@ -319,7 +346,7 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
319
346
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
320
347
|
mode: "multiple" | "single";
|
|
321
348
|
}) => void) | undefined;
|
|
322
|
-
|
|
349
|
+
onGoToNextRow?: ((data: undefined, prevState: {
|
|
323
350
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
324
351
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
325
352
|
initialFocusRef: import("react").RefObject<any> | undefined;
|
|
@@ -332,6 +359,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
332
359
|
cursorId: string;
|
|
333
360
|
columnCount: number;
|
|
334
361
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
362
|
+
cursorIndexRef: {
|
|
363
|
+
readonly current: number;
|
|
364
|
+
};
|
|
335
365
|
UNSTABLE_virtual: {
|
|
336
366
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
337
367
|
totalSize: number;
|
|
@@ -348,7 +378,7 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
348
378
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
349
379
|
mode: "multiple" | "single";
|
|
350
380
|
}) => void) | undefined;
|
|
351
|
-
|
|
381
|
+
onGoToFirst?: ((data: undefined, prevState: {
|
|
352
382
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
353
383
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
354
384
|
initialFocusRef: import("react").RefObject<any> | undefined;
|
|
@@ -361,6 +391,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
361
391
|
cursorId: string;
|
|
362
392
|
columnCount: number;
|
|
363
393
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
394
|
+
cursorIndexRef: {
|
|
395
|
+
readonly current: number;
|
|
396
|
+
};
|
|
364
397
|
UNSTABLE_virtual: {
|
|
365
398
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
366
399
|
totalSize: number;
|
|
@@ -377,7 +410,7 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
377
410
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
378
411
|
mode: "multiple" | "single";
|
|
379
412
|
}) => void) | undefined;
|
|
380
|
-
|
|
413
|
+
onGoToLast?: ((data: undefined, prevState: {
|
|
381
414
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
382
415
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
383
416
|
initialFocusRef: import("react").RefObject<any> | undefined;
|
|
@@ -390,6 +423,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
390
423
|
cursorId: string;
|
|
391
424
|
columnCount: number;
|
|
392
425
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
426
|
+
cursorIndexRef: {
|
|
427
|
+
readonly current: number;
|
|
428
|
+
};
|
|
393
429
|
UNSTABLE_virtual: {
|
|
394
430
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
395
431
|
totalSize: number;
|
|
@@ -406,7 +442,7 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
406
442
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
407
443
|
mode: "multiple" | "single";
|
|
408
444
|
}) => void) | undefined;
|
|
409
|
-
|
|
445
|
+
onGoToFirstOfRow?: ((data: undefined, prevState: {
|
|
410
446
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
411
447
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
412
448
|
initialFocusRef: import("react").RefObject<any> | undefined;
|
|
@@ -419,6 +455,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
419
455
|
cursorId: string;
|
|
420
456
|
columnCount: number;
|
|
421
457
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
458
|
+
cursorIndexRef: {
|
|
459
|
+
readonly current: number;
|
|
460
|
+
};
|
|
422
461
|
UNSTABLE_virtual: {
|
|
423
462
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
424
463
|
totalSize: number;
|
|
@@ -435,7 +474,7 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
435
474
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
436
475
|
mode: "multiple" | "single";
|
|
437
476
|
}) => void) | undefined;
|
|
438
|
-
|
|
477
|
+
onGoToLastOfRow?: ((data: undefined, prevState: {
|
|
439
478
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
440
479
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
441
480
|
initialFocusRef: import("react").RefObject<any> | undefined;
|
|
@@ -448,6 +487,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
448
487
|
cursorId: string;
|
|
449
488
|
columnCount: number;
|
|
450
489
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
490
|
+
cursorIndexRef: {
|
|
491
|
+
readonly current: number;
|
|
492
|
+
};
|
|
451
493
|
UNSTABLE_virtual: {
|
|
452
494
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
453
495
|
totalSize: number;
|
|
@@ -464,7 +506,7 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
464
506
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
465
507
|
mode: "multiple" | "single";
|
|
466
508
|
}) => void) | undefined;
|
|
467
|
-
|
|
509
|
+
onGoToNextPage?: ((data: undefined, prevState: {
|
|
468
510
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
469
511
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
470
512
|
initialFocusRef: import("react").RefObject<any> | undefined;
|
|
@@ -477,6 +519,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
477
519
|
cursorId: string;
|
|
478
520
|
columnCount: number;
|
|
479
521
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
522
|
+
cursorIndexRef: {
|
|
523
|
+
readonly current: number;
|
|
524
|
+
};
|
|
480
525
|
UNSTABLE_virtual: {
|
|
481
526
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
482
527
|
totalSize: number;
|
|
@@ -493,7 +538,7 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
493
538
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
494
539
|
mode: "multiple" | "single";
|
|
495
540
|
}) => void) | undefined;
|
|
496
|
-
|
|
541
|
+
onGoToPreviousPage?: ((data: undefined, prevState: {
|
|
497
542
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
498
543
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
499
544
|
initialFocusRef: import("react").RefObject<any> | undefined;
|
|
@@ -506,6 +551,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
506
551
|
cursorId: string;
|
|
507
552
|
columnCount: number;
|
|
508
553
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
554
|
+
cursorIndexRef: {
|
|
555
|
+
readonly current: number;
|
|
556
|
+
};
|
|
509
557
|
UNSTABLE_virtual: {
|
|
510
558
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
511
559
|
totalSize: number;
|
|
@@ -522,7 +570,10 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
522
570
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
523
571
|
mode: "multiple" | "single";
|
|
524
572
|
}) => void) | undefined;
|
|
525
|
-
|
|
573
|
+
onRegisterItem?: ((data: {
|
|
574
|
+
item: any;
|
|
575
|
+
textValue: string;
|
|
576
|
+
}, prevState: {
|
|
526
577
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
527
578
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
528
579
|
initialFocusRef: import("react").RefObject<any> | undefined;
|
|
@@ -535,6 +586,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
535
586
|
cursorId: string;
|
|
536
587
|
columnCount: number;
|
|
537
588
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
589
|
+
cursorIndexRef: {
|
|
590
|
+
readonly current: number;
|
|
591
|
+
};
|
|
538
592
|
UNSTABLE_virtual: {
|
|
539
593
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
540
594
|
totalSize: number;
|
|
@@ -566,6 +620,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
566
620
|
cursorId: string;
|
|
567
621
|
columnCount: number;
|
|
568
622
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
623
|
+
cursorIndexRef: {
|
|
624
|
+
readonly current: number;
|
|
625
|
+
};
|
|
569
626
|
UNSTABLE_virtual: {
|
|
570
627
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
571
628
|
totalSize: number;
|
|
@@ -597,6 +654,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
597
654
|
cursorId: string;
|
|
598
655
|
columnCount: number;
|
|
599
656
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
657
|
+
cursorIndexRef: {
|
|
658
|
+
readonly current: number;
|
|
659
|
+
};
|
|
600
660
|
UNSTABLE_virtual: {
|
|
601
661
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
602
662
|
totalSize: number;
|
|
@@ -629,6 +689,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
629
689
|
cursorId: string;
|
|
630
690
|
columnCount: number;
|
|
631
691
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
692
|
+
cursorIndexRef: {
|
|
693
|
+
readonly current: number;
|
|
694
|
+
};
|
|
632
695
|
UNSTABLE_virtual: {
|
|
633
696
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
634
697
|
totalSize: number;
|
|
@@ -658,6 +721,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
658
721
|
cursorId: string;
|
|
659
722
|
columnCount: number;
|
|
660
723
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
724
|
+
cursorIndexRef: {
|
|
725
|
+
readonly current: number;
|
|
726
|
+
};
|
|
661
727
|
UNSTABLE_virtual: {
|
|
662
728
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
663
729
|
totalSize: number;
|
|
@@ -687,6 +753,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
687
753
|
cursorId: string;
|
|
688
754
|
columnCount: number;
|
|
689
755
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
756
|
+
cursorIndexRef: {
|
|
757
|
+
readonly current: number;
|
|
758
|
+
};
|
|
690
759
|
UNSTABLE_virtual: {
|
|
691
760
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
692
761
|
totalSize: number;
|
|
@@ -718,6 +787,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
718
787
|
cursorId: string;
|
|
719
788
|
columnCount: number;
|
|
720
789
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
790
|
+
cursorIndexRef: {
|
|
791
|
+
readonly current: number;
|
|
792
|
+
};
|
|
721
793
|
UNSTABLE_virtual: {
|
|
722
794
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
723
795
|
totalSize: number;
|
|
@@ -747,6 +819,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
747
819
|
cursorId: string;
|
|
748
820
|
columnCount: number;
|
|
749
821
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
822
|
+
cursorIndexRef: {
|
|
823
|
+
readonly current: number;
|
|
824
|
+
};
|
|
750
825
|
UNSTABLE_virtual: {
|
|
751
826
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
752
827
|
totalSize: number;
|
|
@@ -776,6 +851,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
776
851
|
cursorId: string;
|
|
777
852
|
columnCount: number;
|
|
778
853
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
854
|
+
cursorIndexRef: {
|
|
855
|
+
readonly current: number;
|
|
856
|
+
};
|
|
779
857
|
UNSTABLE_virtual: {
|
|
780
858
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
781
859
|
totalSize: number;
|
|
@@ -792,9 +870,8 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
792
870
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
793
871
|
mode: "multiple" | "single";
|
|
794
872
|
}) => boolean) | undefined;
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
textValue: string;
|
|
873
|
+
shouldGoTo?: ((data: {
|
|
874
|
+
id: string;
|
|
798
875
|
}, state: {
|
|
799
876
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
800
877
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
@@ -808,6 +885,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
808
885
|
cursorId: string;
|
|
809
886
|
columnCount: number;
|
|
810
887
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
888
|
+
cursorIndexRef: {
|
|
889
|
+
readonly current: number;
|
|
890
|
+
};
|
|
811
891
|
UNSTABLE_virtual: {
|
|
812
892
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
813
893
|
totalSize: number;
|
|
@@ -824,9 +904,7 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
824
904
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
825
905
|
mode: "multiple" | "single";
|
|
826
906
|
}) => boolean) | undefined;
|
|
827
|
-
|
|
828
|
-
id: string;
|
|
829
|
-
}, state: {
|
|
907
|
+
shouldGoToNext?: ((data: undefined, state: {
|
|
830
908
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
831
909
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
832
910
|
initialFocusRef: import("react").RefObject<any> | undefined;
|
|
@@ -839,6 +917,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
839
917
|
cursorId: string;
|
|
840
918
|
columnCount: number;
|
|
841
919
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
920
|
+
cursorIndexRef: {
|
|
921
|
+
readonly current: number;
|
|
922
|
+
};
|
|
842
923
|
UNSTABLE_virtual: {
|
|
843
924
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
844
925
|
totalSize: number;
|
|
@@ -855,7 +936,7 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
855
936
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
856
937
|
mode: "multiple" | "single";
|
|
857
938
|
}) => boolean) | undefined;
|
|
858
|
-
|
|
939
|
+
shouldGoToPrevious?: ((data: undefined, state: {
|
|
859
940
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
860
941
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
861
942
|
initialFocusRef: import("react").RefObject<any> | undefined;
|
|
@@ -868,6 +949,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
868
949
|
cursorId: string;
|
|
869
950
|
columnCount: number;
|
|
870
951
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
952
|
+
cursorIndexRef: {
|
|
953
|
+
readonly current: number;
|
|
954
|
+
};
|
|
871
955
|
UNSTABLE_virtual: {
|
|
872
956
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
873
957
|
totalSize: number;
|
|
@@ -884,7 +968,7 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
884
968
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
885
969
|
mode: "multiple" | "single";
|
|
886
970
|
}) => boolean) | undefined;
|
|
887
|
-
|
|
971
|
+
shouldGoToPreviousRow?: ((data: undefined, state: {
|
|
888
972
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
889
973
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
890
974
|
initialFocusRef: import("react").RefObject<any> | undefined;
|
|
@@ -897,6 +981,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
897
981
|
cursorId: string;
|
|
898
982
|
columnCount: number;
|
|
899
983
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
984
|
+
cursorIndexRef: {
|
|
985
|
+
readonly current: number;
|
|
986
|
+
};
|
|
900
987
|
UNSTABLE_virtual: {
|
|
901
988
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
902
989
|
totalSize: number;
|
|
@@ -913,7 +1000,7 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
913
1000
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
914
1001
|
mode: "multiple" | "single";
|
|
915
1002
|
}) => boolean) | undefined;
|
|
916
|
-
|
|
1003
|
+
shouldGoToNextRow?: ((data: undefined, state: {
|
|
917
1004
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
918
1005
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
919
1006
|
initialFocusRef: import("react").RefObject<any> | undefined;
|
|
@@ -926,6 +1013,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
926
1013
|
cursorId: string;
|
|
927
1014
|
columnCount: number;
|
|
928
1015
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
1016
|
+
cursorIndexRef: {
|
|
1017
|
+
readonly current: number;
|
|
1018
|
+
};
|
|
929
1019
|
UNSTABLE_virtual: {
|
|
930
1020
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
931
1021
|
totalSize: number;
|
|
@@ -942,7 +1032,7 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
942
1032
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
943
1033
|
mode: "multiple" | "single";
|
|
944
1034
|
}) => boolean) | undefined;
|
|
945
|
-
|
|
1035
|
+
shouldGoToFirst?: ((data: undefined, state: {
|
|
946
1036
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
947
1037
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
948
1038
|
initialFocusRef: import("react").RefObject<any> | undefined;
|
|
@@ -955,6 +1045,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
955
1045
|
cursorId: string;
|
|
956
1046
|
columnCount: number;
|
|
957
1047
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
1048
|
+
cursorIndexRef: {
|
|
1049
|
+
readonly current: number;
|
|
1050
|
+
};
|
|
958
1051
|
UNSTABLE_virtual: {
|
|
959
1052
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
960
1053
|
totalSize: number;
|
|
@@ -971,7 +1064,7 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
971
1064
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
972
1065
|
mode: "multiple" | "single";
|
|
973
1066
|
}) => boolean) | undefined;
|
|
974
|
-
|
|
1067
|
+
shouldGoToLast?: ((data: undefined, state: {
|
|
975
1068
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
976
1069
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
977
1070
|
initialFocusRef: import("react").RefObject<any> | undefined;
|
|
@@ -984,6 +1077,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
984
1077
|
cursorId: string;
|
|
985
1078
|
columnCount: number;
|
|
986
1079
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
1080
|
+
cursorIndexRef: {
|
|
1081
|
+
readonly current: number;
|
|
1082
|
+
};
|
|
987
1083
|
UNSTABLE_virtual: {
|
|
988
1084
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
989
1085
|
totalSize: number;
|
|
@@ -1000,7 +1096,7 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
1000
1096
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
1001
1097
|
mode: "multiple" | "single";
|
|
1002
1098
|
}) => boolean) | undefined;
|
|
1003
|
-
|
|
1099
|
+
shouldGoToFirstOfRow?: ((data: undefined, state: {
|
|
1004
1100
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
1005
1101
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
1006
1102
|
initialFocusRef: import("react").RefObject<any> | undefined;
|
|
@@ -1013,6 +1109,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
1013
1109
|
cursorId: string;
|
|
1014
1110
|
columnCount: number;
|
|
1015
1111
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
1112
|
+
cursorIndexRef: {
|
|
1113
|
+
readonly current: number;
|
|
1114
|
+
};
|
|
1016
1115
|
UNSTABLE_virtual: {
|
|
1017
1116
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
1018
1117
|
totalSize: number;
|
|
@@ -1029,7 +1128,7 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
1029
1128
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
1030
1129
|
mode: "multiple" | "single";
|
|
1031
1130
|
}) => boolean) | undefined;
|
|
1032
|
-
|
|
1131
|
+
shouldGoToLastOfRow?: ((data: undefined, state: {
|
|
1033
1132
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
1034
1133
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
1035
1134
|
initialFocusRef: import("react").RefObject<any> | undefined;
|
|
@@ -1042,6 +1141,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
1042
1141
|
cursorId: string;
|
|
1043
1142
|
columnCount: number;
|
|
1044
1143
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
1144
|
+
cursorIndexRef: {
|
|
1145
|
+
readonly current: number;
|
|
1146
|
+
};
|
|
1045
1147
|
UNSTABLE_virtual: {
|
|
1046
1148
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
1047
1149
|
totalSize: number;
|
|
@@ -1058,7 +1160,7 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
1058
1160
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
1059
1161
|
mode: "multiple" | "single";
|
|
1060
1162
|
}) => boolean) | undefined;
|
|
1061
|
-
|
|
1163
|
+
shouldGoToNextPage?: ((data: undefined, state: {
|
|
1062
1164
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
1063
1165
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
1064
1166
|
initialFocusRef: import("react").RefObject<any> | undefined;
|
|
@@ -1071,6 +1173,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
1071
1173
|
cursorId: string;
|
|
1072
1174
|
columnCount: number;
|
|
1073
1175
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
1176
|
+
cursorIndexRef: {
|
|
1177
|
+
readonly current: number;
|
|
1178
|
+
};
|
|
1074
1179
|
UNSTABLE_virtual: {
|
|
1075
1180
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
1076
1181
|
totalSize: number;
|
|
@@ -1087,7 +1192,7 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
1087
1192
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
1088
1193
|
mode: "multiple" | "single";
|
|
1089
1194
|
}) => boolean) | undefined;
|
|
1090
|
-
|
|
1195
|
+
shouldGoToPreviousPage?: ((data: undefined, state: {
|
|
1091
1196
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
1092
1197
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
1093
1198
|
initialFocusRef: import("react").RefObject<any> | undefined;
|
|
@@ -1100,6 +1205,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
1100
1205
|
cursorId: string;
|
|
1101
1206
|
columnCount: number;
|
|
1102
1207
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
1208
|
+
cursorIndexRef: {
|
|
1209
|
+
readonly current: number;
|
|
1210
|
+
};
|
|
1103
1211
|
UNSTABLE_virtual: {
|
|
1104
1212
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
1105
1213
|
totalSize: number;
|
|
@@ -1116,7 +1224,10 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
1116
1224
|
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
1117
1225
|
mode: "multiple" | "single";
|
|
1118
1226
|
}) => boolean) | undefined;
|
|
1119
|
-
|
|
1227
|
+
shouldRegisterItem?: ((data: {
|
|
1228
|
+
item: any;
|
|
1229
|
+
textValue: string;
|
|
1230
|
+
}, state: {
|
|
1120
1231
|
stackRef: import("react").RefObject<HTMLDivElement>;
|
|
1121
1232
|
targetRef: import("react").RefObject<HTMLButtonElement>;
|
|
1122
1233
|
initialFocusRef: import("react").RefObject<any> | undefined;
|
|
@@ -1129,6 +1240,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
1129
1240
|
cursorId: string;
|
|
1130
1241
|
columnCount: number;
|
|
1131
1242
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
1243
|
+
cursorIndexRef: {
|
|
1244
|
+
readonly current: number;
|
|
1245
|
+
};
|
|
1132
1246
|
UNSTABLE_virtual: {
|
|
1133
1247
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
1134
1248
|
totalSize: number;
|
|
@@ -1160,6 +1274,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
1160
1274
|
cursorId: string;
|
|
1161
1275
|
columnCount: number;
|
|
1162
1276
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
1277
|
+
cursorIndexRef: {
|
|
1278
|
+
readonly current: number;
|
|
1279
|
+
};
|
|
1163
1280
|
UNSTABLE_virtual: {
|
|
1164
1281
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
1165
1282
|
totalSize: number;
|
|
@@ -1191,6 +1308,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
1191
1308
|
cursorId: string;
|
|
1192
1309
|
columnCount: number;
|
|
1193
1310
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
1311
|
+
cursorIndexRef: {
|
|
1312
|
+
readonly current: number;
|
|
1313
|
+
};
|
|
1194
1314
|
UNSTABLE_virtual: {
|
|
1195
1315
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
1196
1316
|
totalSize: number;
|
|
@@ -1221,6 +1341,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
1221
1341
|
cursorId: string;
|
|
1222
1342
|
columnCount: number;
|
|
1223
1343
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
1344
|
+
cursorIndexRef: {
|
|
1345
|
+
readonly current: number;
|
|
1346
|
+
};
|
|
1224
1347
|
UNSTABLE_virtual: {
|
|
1225
1348
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
1226
1349
|
totalSize: number;
|
|
@@ -1248,10 +1371,6 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
1248
1371
|
}): void;
|
|
1249
1372
|
selectAll(): void;
|
|
1250
1373
|
unselectAll(): void;
|
|
1251
|
-
registerItem(data: {
|
|
1252
|
-
item: any;
|
|
1253
|
-
textValue: string;
|
|
1254
|
-
}): void;
|
|
1255
1374
|
goTo(data: {
|
|
1256
1375
|
id: string;
|
|
1257
1376
|
}): void;
|
|
@@ -1265,6 +1384,10 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
1265
1384
|
goToLastOfRow(): void;
|
|
1266
1385
|
goToNextPage(): void;
|
|
1267
1386
|
goToPreviousPage(): void;
|
|
1387
|
+
registerItem(data: {
|
|
1388
|
+
item: any;
|
|
1389
|
+
textValue: string;
|
|
1390
|
+
}): void;
|
|
1268
1391
|
unregisterItem(data: {
|
|
1269
1392
|
id: string;
|
|
1270
1393
|
}): void;
|
|
@@ -1309,6 +1432,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
1309
1432
|
cursorId: string;
|
|
1310
1433
|
columnCount: number;
|
|
1311
1434
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
1435
|
+
cursorIndexRef: {
|
|
1436
|
+
readonly current: number;
|
|
1437
|
+
};
|
|
1312
1438
|
UNSTABLE_virtual: {
|
|
1313
1439
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
1314
1440
|
totalSize: number;
|
|
@@ -1335,10 +1461,6 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
1335
1461
|
}): void;
|
|
1336
1462
|
selectAll(): void;
|
|
1337
1463
|
unselectAll(): void;
|
|
1338
|
-
registerItem(data: {
|
|
1339
|
-
item: any;
|
|
1340
|
-
textValue: string;
|
|
1341
|
-
}): void;
|
|
1342
1464
|
goTo(data: {
|
|
1343
1465
|
id: string;
|
|
1344
1466
|
}): void;
|
|
@@ -1352,6 +1474,10 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
1352
1474
|
goToLastOfRow(): void;
|
|
1353
1475
|
goToNextPage(): void;
|
|
1354
1476
|
goToPreviousPage(): void;
|
|
1477
|
+
registerItem(data: {
|
|
1478
|
+
item: any;
|
|
1479
|
+
textValue: string;
|
|
1480
|
+
}): void;
|
|
1355
1481
|
unregisterItem(data: {
|
|
1356
1482
|
id: string;
|
|
1357
1483
|
}): void;
|
|
@@ -1372,6 +1498,9 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
1372
1498
|
cursorId: string;
|
|
1373
1499
|
columnCount: number;
|
|
1374
1500
|
pageSizeRef: import("react").MutableRefObject<number>;
|
|
1501
|
+
cursorIndexRef: {
|
|
1502
|
+
readonly current: number;
|
|
1503
|
+
};
|
|
1375
1504
|
UNSTABLE_virtual: {
|
|
1376
1505
|
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
1377
1506
|
totalSize: number;
|
|
@@ -1399,10 +1528,6 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
1399
1528
|
}): void;
|
|
1400
1529
|
selectAll(): void;
|
|
1401
1530
|
unselectAll(): void;
|
|
1402
|
-
registerItem(data: {
|
|
1403
|
-
item: any;
|
|
1404
|
-
textValue: string;
|
|
1405
|
-
}): void;
|
|
1406
1531
|
goTo(data: {
|
|
1407
1532
|
id: string;
|
|
1408
1533
|
}): void;
|
|
@@ -1416,6 +1541,10 @@ export declare const useMenuModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
|
1416
1541
|
goToLastOfRow(): void;
|
|
1417
1542
|
goToNextPage(): void;
|
|
1418
1543
|
goToPreviousPage(): void;
|
|
1544
|
+
registerItem(data: {
|
|
1545
|
+
item: any;
|
|
1546
|
+
textValue: string;
|
|
1547
|
+
}): void;
|
|
1419
1548
|
unregisterItem(data: {
|
|
1420
1549
|
id: string;
|
|
1421
1550
|
}): void;
|