@workday/canvas-kit-react 7.2.0-next.1 → 7.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/action-bar/lib/ActionBarList.tsx +2 -9
  2. package/action-bar/package.json +2 -1
  3. package/avatar/package.json +2 -1
  4. package/badge/package.json +2 -1
  5. package/banner/package.json +2 -1
  6. package/button/lib/TertiaryButton.tsx +18 -7
  7. package/button/package.json +2 -1
  8. package/card/package.json +2 -1
  9. package/checkbox/package.json +2 -1
  10. package/collection/index.ts +2 -0
  11. package/collection/lib/useBaseListModel.tsx +1 -1
  12. package/collection/lib/useCursorListModel.tsx +88 -20
  13. package/collection/lib/useGridModel.ts +34 -0
  14. package/collection/lib/useListItemRovingFocus.tsx +6 -4
  15. package/collection/package.json +2 -1
  16. package/color-picker/package.json +2 -1
  17. package/common/package.json +2 -1
  18. package/dialog/package.json +2 -1
  19. package/disclosure/package.json +2 -1
  20. package/dist/commonjs/action-bar/lib/ActionBarList.d.ts +0 -58
  21. package/dist/commonjs/action-bar/lib/ActionBarList.d.ts.map +1 -1
  22. package/dist/commonjs/action-bar/lib/ActionBarList.js +2 -3
  23. package/dist/commonjs/button/lib/TertiaryButton.d.ts +9 -0
  24. package/dist/commonjs/button/lib/TertiaryButton.d.ts.map +1 -1
  25. package/dist/commonjs/button/lib/TertiaryButton.js +9 -8
  26. package/dist/commonjs/collection/index.d.ts +2 -0
  27. package/dist/commonjs/collection/index.d.ts.map +1 -1
  28. package/dist/commonjs/collection/index.js +5 -1
  29. package/dist/commonjs/collection/lib/useBaseListModel.js +1 -1
  30. package/dist/commonjs/collection/lib/useCursorListModel.d.ts +64 -101
  31. package/dist/commonjs/collection/lib/useCursorListModel.d.ts.map +1 -1
  32. package/dist/commonjs/collection/lib/useCursorListModel.js +64 -23
  33. package/dist/commonjs/collection/lib/useGridModel.d.ts +955 -0
  34. package/dist/commonjs/collection/lib/useGridModel.d.ts.map +1 -0
  35. package/dist/commonjs/collection/lib/useGridModel.js +52 -0
  36. package/dist/commonjs/collection/lib/useListItemRovingFocus.d.ts.map +1 -1
  37. package/dist/commonjs/collection/lib/useListItemRovingFocus.js +6 -4
  38. package/dist/commonjs/pagination/lib/Pagination/common/useLiveRegion.d.ts +0 -1
  39. package/dist/commonjs/pagination/lib/Pagination/common/useLiveRegion.d.ts.map +1 -1
  40. package/dist/commonjs/pagination/lib/Pagination/common/useLiveRegion.js +1 -1
  41. package/dist/commonjs/radio/lib/RadioGroup.d.ts.map +1 -1
  42. package/dist/commonjs/radio/lib/RadioGroup.js +5 -1
  43. package/dist/es6/action-bar/lib/ActionBarList.d.ts +0 -58
  44. package/dist/es6/action-bar/lib/ActionBarList.d.ts.map +1 -1
  45. package/dist/es6/action-bar/lib/ActionBarList.js +3 -4
  46. package/dist/es6/button/lib/TertiaryButton.d.ts +9 -0
  47. package/dist/es6/button/lib/TertiaryButton.d.ts.map +1 -1
  48. package/dist/es6/button/lib/TertiaryButton.js +9 -8
  49. package/dist/es6/collection/index.d.ts +2 -0
  50. package/dist/es6/collection/index.d.ts.map +1 -1
  51. package/dist/es6/collection/index.js +2 -0
  52. package/dist/es6/collection/lib/useBaseListModel.js +1 -1
  53. package/dist/es6/collection/lib/useCursorListModel.d.ts +64 -101
  54. package/dist/es6/collection/lib/useCursorListModel.d.ts.map +1 -1
  55. package/dist/es6/collection/lib/useCursorListModel.js +64 -23
  56. package/dist/es6/collection/lib/useGridModel.d.ts +955 -0
  57. package/dist/es6/collection/lib/useGridModel.d.ts.map +1 -0
  58. package/dist/es6/collection/lib/useGridModel.js +49 -0
  59. package/dist/es6/collection/lib/useListItemRovingFocus.d.ts.map +1 -1
  60. package/dist/es6/collection/lib/useListItemRovingFocus.js +6 -4
  61. package/dist/es6/pagination/lib/Pagination/common/useLiveRegion.d.ts +0 -1
  62. package/dist/es6/pagination/lib/Pagination/common/useLiveRegion.d.ts.map +1 -1
  63. package/dist/es6/pagination/lib/Pagination/common/useLiveRegion.js +1 -1
  64. package/dist/es6/radio/lib/RadioGroup.d.ts.map +1 -1
  65. package/dist/es6/radio/lib/RadioGroup.js +5 -1
  66. package/form-field/package.json +2 -1
  67. package/icon/package.json +2 -1
  68. package/layout/package.json +2 -1
  69. package/loading-animation/package.json +2 -1
  70. package/menu/package.json +2 -1
  71. package/modal/package.json +2 -1
  72. package/package.json +5 -5
  73. package/pagination/lib/Pagination/common/useLiveRegion.tsx +0 -2
  74. package/pagination/package.json +2 -1
  75. package/popup/package.json +2 -1
  76. package/radio/lib/RadioGroup.tsx +5 -1
  77. package/radio/package.json +2 -1
  78. package/segmented-control/package.json +2 -1
  79. package/select/package.json +2 -1
  80. package/side-panel/package.json +2 -1
  81. package/skeleton/package.json +2 -1
  82. package/status-indicator/package.json +2 -1
  83. package/switch/package.json +2 -1
  84. package/table/package.json +2 -1
  85. package/tabs/package.json +2 -1
  86. package/text-area/package.json +2 -1
  87. package/text-input/package.json +2 -1
  88. package/toast/package.json +2 -1
  89. package/tokens/package.json +2 -1
  90. package/tooltip/package.json +2 -1
@@ -0,0 +1,955 @@
1
+ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
2
+ /**
3
+ * Controls the state changes when the user sends navigation events to the model. For example,
4
+ * when the user hits the "right" arrow, a behavior hook will determine directionality
5
+ * (left-to-right or right-to-left) and call the correct navigation method. In our example, a
6
+ * left-to-right language would send a `getNext`. The navigation manager may return the next
7
+ * item in the list. Different managers can be created for slightly different use cases. The
8
+ * default navigation manager will stop when the end of a row/column is detected. For example,
9
+ * `getNext` will return the same item the cursor was previously on if the cursor is on the last
10
+ * item of a row.
11
+ */
12
+ navigation: import("./useCursorListModel").NavigationManager;
13
+ initialSelectedIds: import("./useSelectionListModel").SelectedIds;
14
+ initialUnselectedIds: string[];
15
+ selection: import("./useSelectionListModel").SelectionManager;
16
+ initialCursorId: string;
17
+ id: string;
18
+ getId: (item: any) => string;
19
+ getTextValue: (item: any) => string;
20
+ nonInteractiveIds: string[];
21
+ defaultItemHeight: number;
22
+ shouldVirtualize: boolean;
23
+ items: any[];
24
+ }> & {
25
+ /**
26
+ * The number of columns represented in a grid
27
+ */
28
+ columnCount: number;
29
+ } & {
30
+ onSelect?: ((data: {
31
+ id: string;
32
+ }, prevState: {
33
+ selectedIds: import("./useSelectionListModel").SelectedIds;
34
+ unselectedIds: string[];
35
+ cursorId: string;
36
+ columnCount: number;
37
+ UNSTABLE_virtual: {
38
+ virtualItems: import("./react-virtual").VirtualItem[];
39
+ totalSize: number;
40
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
41
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
42
+ measure: () => void;
43
+ };
44
+ UNSTABLE_defaultItemHeight: number;
45
+ containerRef: import("react").RefObject<HTMLDivElement>;
46
+ id: string;
47
+ orientation: import("./useBaseListModel").Orientation;
48
+ indexRef: import("react").MutableRefObject<number>;
49
+ nonInteractiveIds: string[];
50
+ isVirtualized: boolean;
51
+ items: import("./useBaseListModel").Item<any>[];
52
+ }) => void) | undefined;
53
+ onSelectAll?: ((data: undefined, prevState: {
54
+ selectedIds: import("./useSelectionListModel").SelectedIds;
55
+ unselectedIds: string[];
56
+ cursorId: string;
57
+ columnCount: number;
58
+ UNSTABLE_virtual: {
59
+ virtualItems: import("./react-virtual").VirtualItem[];
60
+ totalSize: number;
61
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
62
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
63
+ measure: () => void;
64
+ };
65
+ UNSTABLE_defaultItemHeight: number;
66
+ containerRef: import("react").RefObject<HTMLDivElement>;
67
+ id: string;
68
+ orientation: import("./useBaseListModel").Orientation;
69
+ indexRef: import("react").MutableRefObject<number>;
70
+ nonInteractiveIds: string[];
71
+ isVirtualized: boolean;
72
+ items: import("./useBaseListModel").Item<any>[];
73
+ }) => void) | undefined;
74
+ onUnselectAll?: ((data: undefined, prevState: {
75
+ selectedIds: import("./useSelectionListModel").SelectedIds;
76
+ unselectedIds: string[];
77
+ cursorId: string;
78
+ columnCount: number;
79
+ UNSTABLE_virtual: {
80
+ virtualItems: import("./react-virtual").VirtualItem[];
81
+ totalSize: number;
82
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
83
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
84
+ measure: () => void;
85
+ };
86
+ UNSTABLE_defaultItemHeight: number;
87
+ containerRef: import("react").RefObject<HTMLDivElement>;
88
+ id: string;
89
+ orientation: import("./useBaseListModel").Orientation;
90
+ indexRef: import("react").MutableRefObject<number>;
91
+ nonInteractiveIds: string[];
92
+ isVirtualized: boolean;
93
+ items: import("./useBaseListModel").Item<any>[];
94
+ }) => void) | undefined;
95
+ onRegisterItem?: ((data: {
96
+ item: any;
97
+ textValue: string;
98
+ }, prevState: {
99
+ selectedIds: import("./useSelectionListModel").SelectedIds;
100
+ unselectedIds: string[];
101
+ cursorId: string;
102
+ columnCount: number;
103
+ UNSTABLE_virtual: {
104
+ virtualItems: import("./react-virtual").VirtualItem[];
105
+ totalSize: number;
106
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
107
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
108
+ measure: () => void;
109
+ };
110
+ UNSTABLE_defaultItemHeight: number;
111
+ containerRef: import("react").RefObject<HTMLDivElement>;
112
+ id: string;
113
+ orientation: import("./useBaseListModel").Orientation;
114
+ indexRef: import("react").MutableRefObject<number>;
115
+ nonInteractiveIds: string[];
116
+ isVirtualized: boolean;
117
+ items: import("./useBaseListModel").Item<any>[];
118
+ }) => void) | undefined;
119
+ onGoTo?: ((data: {
120
+ id: string;
121
+ }, prevState: {
122
+ selectedIds: import("./useSelectionListModel").SelectedIds;
123
+ unselectedIds: string[];
124
+ cursorId: string;
125
+ columnCount: number;
126
+ UNSTABLE_virtual: {
127
+ virtualItems: import("./react-virtual").VirtualItem[];
128
+ totalSize: number;
129
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
130
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
131
+ measure: () => void;
132
+ };
133
+ UNSTABLE_defaultItemHeight: number;
134
+ containerRef: import("react").RefObject<HTMLDivElement>;
135
+ id: string;
136
+ orientation: import("./useBaseListModel").Orientation;
137
+ indexRef: import("react").MutableRefObject<number>;
138
+ nonInteractiveIds: string[];
139
+ isVirtualized: boolean;
140
+ items: import("./useBaseListModel").Item<any>[];
141
+ }) => void) | undefined;
142
+ onGoToNext?: ((data: undefined, prevState: {
143
+ selectedIds: import("./useSelectionListModel").SelectedIds;
144
+ unselectedIds: string[];
145
+ cursorId: string;
146
+ columnCount: number;
147
+ UNSTABLE_virtual: {
148
+ virtualItems: import("./react-virtual").VirtualItem[];
149
+ totalSize: number;
150
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
151
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
152
+ measure: () => void;
153
+ };
154
+ UNSTABLE_defaultItemHeight: number;
155
+ containerRef: import("react").RefObject<HTMLDivElement>;
156
+ id: string;
157
+ orientation: import("./useBaseListModel").Orientation;
158
+ indexRef: import("react").MutableRefObject<number>;
159
+ nonInteractiveIds: string[];
160
+ isVirtualized: boolean;
161
+ items: import("./useBaseListModel").Item<any>[];
162
+ }) => void) | undefined;
163
+ onGoToPrevious?: ((data: undefined, prevState: {
164
+ selectedIds: import("./useSelectionListModel").SelectedIds;
165
+ unselectedIds: string[];
166
+ cursorId: string;
167
+ columnCount: number;
168
+ UNSTABLE_virtual: {
169
+ virtualItems: import("./react-virtual").VirtualItem[];
170
+ totalSize: number;
171
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
172
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
173
+ measure: () => void;
174
+ };
175
+ UNSTABLE_defaultItemHeight: number;
176
+ containerRef: import("react").RefObject<HTMLDivElement>;
177
+ id: string;
178
+ orientation: import("./useBaseListModel").Orientation;
179
+ indexRef: import("react").MutableRefObject<number>;
180
+ nonInteractiveIds: string[];
181
+ isVirtualized: boolean;
182
+ items: import("./useBaseListModel").Item<any>[];
183
+ }) => void) | undefined;
184
+ onGoToPreviousRow?: ((data: undefined, prevState: {
185
+ selectedIds: import("./useSelectionListModel").SelectedIds;
186
+ unselectedIds: string[];
187
+ cursorId: string;
188
+ columnCount: number;
189
+ UNSTABLE_virtual: {
190
+ virtualItems: import("./react-virtual").VirtualItem[];
191
+ totalSize: number;
192
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
193
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
194
+ measure: () => void;
195
+ };
196
+ UNSTABLE_defaultItemHeight: number;
197
+ containerRef: import("react").RefObject<HTMLDivElement>;
198
+ id: string;
199
+ orientation: import("./useBaseListModel").Orientation;
200
+ indexRef: import("react").MutableRefObject<number>;
201
+ nonInteractiveIds: string[];
202
+ isVirtualized: boolean;
203
+ items: import("./useBaseListModel").Item<any>[];
204
+ }) => void) | undefined;
205
+ onGoToNextRow?: ((data: undefined, prevState: {
206
+ selectedIds: import("./useSelectionListModel").SelectedIds;
207
+ unselectedIds: string[];
208
+ cursorId: string;
209
+ columnCount: number;
210
+ UNSTABLE_virtual: {
211
+ virtualItems: import("./react-virtual").VirtualItem[];
212
+ totalSize: number;
213
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
214
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
215
+ measure: () => void;
216
+ };
217
+ UNSTABLE_defaultItemHeight: number;
218
+ containerRef: import("react").RefObject<HTMLDivElement>;
219
+ id: string;
220
+ orientation: import("./useBaseListModel").Orientation;
221
+ indexRef: import("react").MutableRefObject<number>;
222
+ nonInteractiveIds: string[];
223
+ isVirtualized: boolean;
224
+ items: import("./useBaseListModel").Item<any>[];
225
+ }) => void) | undefined;
226
+ onGoToFirst?: ((data: undefined, prevState: {
227
+ selectedIds: import("./useSelectionListModel").SelectedIds;
228
+ unselectedIds: string[];
229
+ cursorId: string;
230
+ columnCount: number;
231
+ UNSTABLE_virtual: {
232
+ virtualItems: import("./react-virtual").VirtualItem[];
233
+ totalSize: number;
234
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
235
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
236
+ measure: () => void;
237
+ };
238
+ UNSTABLE_defaultItemHeight: number;
239
+ containerRef: import("react").RefObject<HTMLDivElement>;
240
+ id: string;
241
+ orientation: import("./useBaseListModel").Orientation;
242
+ indexRef: import("react").MutableRefObject<number>;
243
+ nonInteractiveIds: string[];
244
+ isVirtualized: boolean;
245
+ items: import("./useBaseListModel").Item<any>[];
246
+ }) => void) | undefined;
247
+ onGoToLast?: ((data: undefined, prevState: {
248
+ selectedIds: import("./useSelectionListModel").SelectedIds;
249
+ unselectedIds: string[];
250
+ cursorId: string;
251
+ columnCount: number;
252
+ UNSTABLE_virtual: {
253
+ virtualItems: import("./react-virtual").VirtualItem[];
254
+ totalSize: number;
255
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
256
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
257
+ measure: () => void;
258
+ };
259
+ UNSTABLE_defaultItemHeight: number;
260
+ containerRef: import("react").RefObject<HTMLDivElement>;
261
+ id: string;
262
+ orientation: import("./useBaseListModel").Orientation;
263
+ indexRef: import("react").MutableRefObject<number>;
264
+ nonInteractiveIds: string[];
265
+ isVirtualized: boolean;
266
+ items: import("./useBaseListModel").Item<any>[];
267
+ }) => void) | undefined;
268
+ onGoToFirstOfRow?: ((data: undefined, prevState: {
269
+ selectedIds: import("./useSelectionListModel").SelectedIds;
270
+ unselectedIds: string[];
271
+ cursorId: string;
272
+ columnCount: number;
273
+ UNSTABLE_virtual: {
274
+ virtualItems: import("./react-virtual").VirtualItem[];
275
+ totalSize: number;
276
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
277
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
278
+ measure: () => void;
279
+ };
280
+ UNSTABLE_defaultItemHeight: number;
281
+ containerRef: import("react").RefObject<HTMLDivElement>;
282
+ id: string;
283
+ orientation: import("./useBaseListModel").Orientation;
284
+ indexRef: import("react").MutableRefObject<number>;
285
+ nonInteractiveIds: string[];
286
+ isVirtualized: boolean;
287
+ items: import("./useBaseListModel").Item<any>[];
288
+ }) => void) | undefined;
289
+ onGoToLastOfRow?: ((data: undefined, prevState: {
290
+ selectedIds: import("./useSelectionListModel").SelectedIds;
291
+ unselectedIds: string[];
292
+ cursorId: string;
293
+ columnCount: number;
294
+ UNSTABLE_virtual: {
295
+ virtualItems: import("./react-virtual").VirtualItem[];
296
+ totalSize: number;
297
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
298
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
299
+ measure: () => void;
300
+ };
301
+ UNSTABLE_defaultItemHeight: number;
302
+ containerRef: import("react").RefObject<HTMLDivElement>;
303
+ id: string;
304
+ orientation: import("./useBaseListModel").Orientation;
305
+ indexRef: import("react").MutableRefObject<number>;
306
+ nonInteractiveIds: string[];
307
+ isVirtualized: boolean;
308
+ items: import("./useBaseListModel").Item<any>[];
309
+ }) => void) | undefined;
310
+ onGoToNextPage?: ((data: undefined, prevState: {
311
+ selectedIds: import("./useSelectionListModel").SelectedIds;
312
+ unselectedIds: string[];
313
+ cursorId: string;
314
+ columnCount: number;
315
+ UNSTABLE_virtual: {
316
+ virtualItems: import("./react-virtual").VirtualItem[];
317
+ totalSize: number;
318
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
319
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
320
+ measure: () => void;
321
+ };
322
+ UNSTABLE_defaultItemHeight: number;
323
+ containerRef: import("react").RefObject<HTMLDivElement>;
324
+ id: string;
325
+ orientation: import("./useBaseListModel").Orientation;
326
+ indexRef: import("react").MutableRefObject<number>;
327
+ nonInteractiveIds: string[];
328
+ isVirtualized: boolean;
329
+ items: import("./useBaseListModel").Item<any>[];
330
+ }) => void) | undefined;
331
+ onGoToPreviousPage?: ((data: undefined, prevState: {
332
+ selectedIds: import("./useSelectionListModel").SelectedIds;
333
+ unselectedIds: string[];
334
+ cursorId: string;
335
+ columnCount: number;
336
+ UNSTABLE_virtual: {
337
+ virtualItems: import("./react-virtual").VirtualItem[];
338
+ totalSize: number;
339
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
340
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
341
+ measure: () => void;
342
+ };
343
+ UNSTABLE_defaultItemHeight: number;
344
+ containerRef: import("react").RefObject<HTMLDivElement>;
345
+ id: string;
346
+ orientation: import("./useBaseListModel").Orientation;
347
+ indexRef: import("react").MutableRefObject<number>;
348
+ nonInteractiveIds: string[];
349
+ isVirtualized: boolean;
350
+ items: import("./useBaseListModel").Item<any>[];
351
+ }) => void) | undefined;
352
+ onUnregisterItem?: ((data: {
353
+ id: string;
354
+ }, prevState: {
355
+ selectedIds: import("./useSelectionListModel").SelectedIds;
356
+ unselectedIds: string[];
357
+ cursorId: string;
358
+ columnCount: number;
359
+ UNSTABLE_virtual: {
360
+ virtualItems: import("./react-virtual").VirtualItem[];
361
+ totalSize: number;
362
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
363
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
364
+ measure: () => void;
365
+ };
366
+ UNSTABLE_defaultItemHeight: number;
367
+ containerRef: import("react").RefObject<HTMLDivElement>;
368
+ id: string;
369
+ orientation: import("./useBaseListModel").Orientation;
370
+ indexRef: import("react").MutableRefObject<number>;
371
+ nonInteractiveIds: string[];
372
+ isVirtualized: boolean;
373
+ items: import("./useBaseListModel").Item<any>[];
374
+ }) => void) | undefined;
375
+ onUpdateItemHeight?: ((data: {
376
+ value: number;
377
+ }, prevState: {
378
+ selectedIds: import("./useSelectionListModel").SelectedIds;
379
+ unselectedIds: string[];
380
+ cursorId: string;
381
+ columnCount: number;
382
+ UNSTABLE_virtual: {
383
+ virtualItems: import("./react-virtual").VirtualItem[];
384
+ totalSize: number;
385
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
386
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
387
+ measure: () => void;
388
+ };
389
+ UNSTABLE_defaultItemHeight: number;
390
+ containerRef: import("react").RefObject<HTMLDivElement>;
391
+ id: string;
392
+ orientation: import("./useBaseListModel").Orientation;
393
+ indexRef: import("react").MutableRefObject<number>;
394
+ nonInteractiveIds: string[];
395
+ isVirtualized: boolean;
396
+ items: import("./useBaseListModel").Item<any>[];
397
+ }) => void) | undefined;
398
+ } & {
399
+ shouldSelect?: ((data: {
400
+ id: string;
401
+ }, state: {
402
+ selectedIds: import("./useSelectionListModel").SelectedIds;
403
+ unselectedIds: string[];
404
+ cursorId: string;
405
+ columnCount: number;
406
+ UNSTABLE_virtual: {
407
+ virtualItems: import("./react-virtual").VirtualItem[];
408
+ totalSize: number;
409
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
410
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
411
+ measure: () => void;
412
+ };
413
+ UNSTABLE_defaultItemHeight: number;
414
+ containerRef: import("react").RefObject<HTMLDivElement>;
415
+ id: string;
416
+ orientation: import("./useBaseListModel").Orientation;
417
+ indexRef: import("react").MutableRefObject<number>;
418
+ nonInteractiveIds: string[];
419
+ isVirtualized: boolean;
420
+ items: import("./useBaseListModel").Item<any>[];
421
+ }) => boolean) | undefined;
422
+ shouldSelectAll?: ((data: undefined, state: {
423
+ selectedIds: import("./useSelectionListModel").SelectedIds;
424
+ unselectedIds: string[];
425
+ cursorId: string;
426
+ columnCount: number;
427
+ UNSTABLE_virtual: {
428
+ virtualItems: import("./react-virtual").VirtualItem[];
429
+ totalSize: number;
430
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
431
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
432
+ measure: () => void;
433
+ };
434
+ UNSTABLE_defaultItemHeight: number;
435
+ containerRef: import("react").RefObject<HTMLDivElement>;
436
+ id: string;
437
+ orientation: import("./useBaseListModel").Orientation;
438
+ indexRef: import("react").MutableRefObject<number>;
439
+ nonInteractiveIds: string[];
440
+ isVirtualized: boolean;
441
+ items: import("./useBaseListModel").Item<any>[];
442
+ }) => boolean) | undefined;
443
+ shouldUnselectAll?: ((data: undefined, state: {
444
+ selectedIds: import("./useSelectionListModel").SelectedIds;
445
+ unselectedIds: string[];
446
+ cursorId: string;
447
+ columnCount: number;
448
+ UNSTABLE_virtual: {
449
+ virtualItems: import("./react-virtual").VirtualItem[];
450
+ totalSize: number;
451
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
452
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
453
+ measure: () => void;
454
+ };
455
+ UNSTABLE_defaultItemHeight: number;
456
+ containerRef: import("react").RefObject<HTMLDivElement>;
457
+ id: string;
458
+ orientation: import("./useBaseListModel").Orientation;
459
+ indexRef: import("react").MutableRefObject<number>;
460
+ nonInteractiveIds: string[];
461
+ isVirtualized: boolean;
462
+ items: import("./useBaseListModel").Item<any>[];
463
+ }) => boolean) | undefined;
464
+ shouldRegisterItem?: ((data: {
465
+ item: any;
466
+ textValue: string;
467
+ }, state: {
468
+ selectedIds: import("./useSelectionListModel").SelectedIds;
469
+ unselectedIds: string[];
470
+ cursorId: string;
471
+ columnCount: number;
472
+ UNSTABLE_virtual: {
473
+ virtualItems: import("./react-virtual").VirtualItem[];
474
+ totalSize: number;
475
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
476
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
477
+ measure: () => void;
478
+ };
479
+ UNSTABLE_defaultItemHeight: number;
480
+ containerRef: import("react").RefObject<HTMLDivElement>;
481
+ id: string;
482
+ orientation: import("./useBaseListModel").Orientation;
483
+ indexRef: import("react").MutableRefObject<number>;
484
+ nonInteractiveIds: string[];
485
+ isVirtualized: boolean;
486
+ items: import("./useBaseListModel").Item<any>[];
487
+ }) => boolean) | undefined;
488
+ shouldGoTo?: ((data: {
489
+ id: string;
490
+ }, state: {
491
+ selectedIds: import("./useSelectionListModel").SelectedIds;
492
+ unselectedIds: string[];
493
+ cursorId: string;
494
+ columnCount: number;
495
+ UNSTABLE_virtual: {
496
+ virtualItems: import("./react-virtual").VirtualItem[];
497
+ totalSize: number;
498
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
499
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
500
+ measure: () => void;
501
+ };
502
+ UNSTABLE_defaultItemHeight: number;
503
+ containerRef: import("react").RefObject<HTMLDivElement>;
504
+ id: string;
505
+ orientation: import("./useBaseListModel").Orientation;
506
+ indexRef: import("react").MutableRefObject<number>;
507
+ nonInteractiveIds: string[];
508
+ isVirtualized: boolean;
509
+ items: import("./useBaseListModel").Item<any>[];
510
+ }) => boolean) | undefined;
511
+ shouldGoToNext?: ((data: undefined, state: {
512
+ selectedIds: import("./useSelectionListModel").SelectedIds;
513
+ unselectedIds: string[];
514
+ cursorId: string;
515
+ columnCount: number;
516
+ UNSTABLE_virtual: {
517
+ virtualItems: import("./react-virtual").VirtualItem[];
518
+ totalSize: number;
519
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
520
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
521
+ measure: () => void;
522
+ };
523
+ UNSTABLE_defaultItemHeight: number;
524
+ containerRef: import("react").RefObject<HTMLDivElement>;
525
+ id: string;
526
+ orientation: import("./useBaseListModel").Orientation;
527
+ indexRef: import("react").MutableRefObject<number>;
528
+ nonInteractiveIds: string[];
529
+ isVirtualized: boolean;
530
+ items: import("./useBaseListModel").Item<any>[];
531
+ }) => boolean) | undefined;
532
+ shouldGoToPrevious?: ((data: undefined, state: {
533
+ selectedIds: import("./useSelectionListModel").SelectedIds;
534
+ unselectedIds: string[];
535
+ cursorId: string;
536
+ columnCount: number;
537
+ UNSTABLE_virtual: {
538
+ virtualItems: import("./react-virtual").VirtualItem[];
539
+ totalSize: number;
540
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
541
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
542
+ measure: () => void;
543
+ };
544
+ UNSTABLE_defaultItemHeight: number;
545
+ containerRef: import("react").RefObject<HTMLDivElement>;
546
+ id: string;
547
+ orientation: import("./useBaseListModel").Orientation;
548
+ indexRef: import("react").MutableRefObject<number>;
549
+ nonInteractiveIds: string[];
550
+ isVirtualized: boolean;
551
+ items: import("./useBaseListModel").Item<any>[];
552
+ }) => boolean) | undefined;
553
+ shouldGoToPreviousRow?: ((data: undefined, state: {
554
+ selectedIds: import("./useSelectionListModel").SelectedIds;
555
+ unselectedIds: string[];
556
+ cursorId: string;
557
+ columnCount: number;
558
+ UNSTABLE_virtual: {
559
+ virtualItems: import("./react-virtual").VirtualItem[];
560
+ totalSize: number;
561
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
562
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
563
+ measure: () => void;
564
+ };
565
+ UNSTABLE_defaultItemHeight: number;
566
+ containerRef: import("react").RefObject<HTMLDivElement>;
567
+ id: string;
568
+ orientation: import("./useBaseListModel").Orientation;
569
+ indexRef: import("react").MutableRefObject<number>;
570
+ nonInteractiveIds: string[];
571
+ isVirtualized: boolean;
572
+ items: import("./useBaseListModel").Item<any>[];
573
+ }) => boolean) | undefined;
574
+ shouldGoToNextRow?: ((data: undefined, state: {
575
+ selectedIds: import("./useSelectionListModel").SelectedIds;
576
+ unselectedIds: string[];
577
+ cursorId: string;
578
+ columnCount: number;
579
+ UNSTABLE_virtual: {
580
+ virtualItems: import("./react-virtual").VirtualItem[];
581
+ totalSize: number;
582
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
583
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
584
+ measure: () => void;
585
+ };
586
+ UNSTABLE_defaultItemHeight: number;
587
+ containerRef: import("react").RefObject<HTMLDivElement>;
588
+ id: string;
589
+ orientation: import("./useBaseListModel").Orientation;
590
+ indexRef: import("react").MutableRefObject<number>;
591
+ nonInteractiveIds: string[];
592
+ isVirtualized: boolean;
593
+ items: import("./useBaseListModel").Item<any>[];
594
+ }) => boolean) | undefined;
595
+ shouldGoToFirst?: ((data: undefined, state: {
596
+ selectedIds: import("./useSelectionListModel").SelectedIds;
597
+ unselectedIds: string[];
598
+ cursorId: string;
599
+ columnCount: number;
600
+ UNSTABLE_virtual: {
601
+ virtualItems: import("./react-virtual").VirtualItem[];
602
+ totalSize: number;
603
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
604
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
605
+ measure: () => void;
606
+ };
607
+ UNSTABLE_defaultItemHeight: number;
608
+ containerRef: import("react").RefObject<HTMLDivElement>;
609
+ id: string;
610
+ orientation: import("./useBaseListModel").Orientation;
611
+ indexRef: import("react").MutableRefObject<number>;
612
+ nonInteractiveIds: string[];
613
+ isVirtualized: boolean;
614
+ items: import("./useBaseListModel").Item<any>[];
615
+ }) => boolean) | undefined;
616
+ shouldGoToLast?: ((data: undefined, state: {
617
+ selectedIds: import("./useSelectionListModel").SelectedIds;
618
+ unselectedIds: string[];
619
+ cursorId: string;
620
+ columnCount: number;
621
+ UNSTABLE_virtual: {
622
+ virtualItems: import("./react-virtual").VirtualItem[];
623
+ totalSize: number;
624
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
625
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
626
+ measure: () => void;
627
+ };
628
+ UNSTABLE_defaultItemHeight: number;
629
+ containerRef: import("react").RefObject<HTMLDivElement>;
630
+ id: string;
631
+ orientation: import("./useBaseListModel").Orientation;
632
+ indexRef: import("react").MutableRefObject<number>;
633
+ nonInteractiveIds: string[];
634
+ isVirtualized: boolean;
635
+ items: import("./useBaseListModel").Item<any>[];
636
+ }) => boolean) | undefined;
637
+ shouldGoToFirstOfRow?: ((data: undefined, state: {
638
+ selectedIds: import("./useSelectionListModel").SelectedIds;
639
+ unselectedIds: string[];
640
+ cursorId: string;
641
+ columnCount: number;
642
+ UNSTABLE_virtual: {
643
+ virtualItems: import("./react-virtual").VirtualItem[];
644
+ totalSize: number;
645
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
646
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
647
+ measure: () => void;
648
+ };
649
+ UNSTABLE_defaultItemHeight: number;
650
+ containerRef: import("react").RefObject<HTMLDivElement>;
651
+ id: string;
652
+ orientation: import("./useBaseListModel").Orientation;
653
+ indexRef: import("react").MutableRefObject<number>;
654
+ nonInteractiveIds: string[];
655
+ isVirtualized: boolean;
656
+ items: import("./useBaseListModel").Item<any>[];
657
+ }) => boolean) | undefined;
658
+ shouldGoToLastOfRow?: ((data: undefined, state: {
659
+ selectedIds: import("./useSelectionListModel").SelectedIds;
660
+ unselectedIds: string[];
661
+ cursorId: string;
662
+ columnCount: number;
663
+ UNSTABLE_virtual: {
664
+ virtualItems: import("./react-virtual").VirtualItem[];
665
+ totalSize: number;
666
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
667
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
668
+ measure: () => void;
669
+ };
670
+ UNSTABLE_defaultItemHeight: number;
671
+ containerRef: import("react").RefObject<HTMLDivElement>;
672
+ id: string;
673
+ orientation: import("./useBaseListModel").Orientation;
674
+ indexRef: import("react").MutableRefObject<number>;
675
+ nonInteractiveIds: string[];
676
+ isVirtualized: boolean;
677
+ items: import("./useBaseListModel").Item<any>[];
678
+ }) => boolean) | undefined;
679
+ shouldGoToNextPage?: ((data: undefined, state: {
680
+ selectedIds: import("./useSelectionListModel").SelectedIds;
681
+ unselectedIds: string[];
682
+ cursorId: string;
683
+ columnCount: number;
684
+ UNSTABLE_virtual: {
685
+ virtualItems: import("./react-virtual").VirtualItem[];
686
+ totalSize: number;
687
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
688
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
689
+ measure: () => void;
690
+ };
691
+ UNSTABLE_defaultItemHeight: number;
692
+ containerRef: import("react").RefObject<HTMLDivElement>;
693
+ id: string;
694
+ orientation: import("./useBaseListModel").Orientation;
695
+ indexRef: import("react").MutableRefObject<number>;
696
+ nonInteractiveIds: string[];
697
+ isVirtualized: boolean;
698
+ items: import("./useBaseListModel").Item<any>[];
699
+ }) => boolean) | undefined;
700
+ shouldGoToPreviousPage?: ((data: undefined, state: {
701
+ selectedIds: import("./useSelectionListModel").SelectedIds;
702
+ unselectedIds: string[];
703
+ cursorId: string;
704
+ columnCount: number;
705
+ UNSTABLE_virtual: {
706
+ virtualItems: import("./react-virtual").VirtualItem[];
707
+ totalSize: number;
708
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
709
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
710
+ measure: () => void;
711
+ };
712
+ UNSTABLE_defaultItemHeight: number;
713
+ containerRef: import("react").RefObject<HTMLDivElement>;
714
+ id: string;
715
+ orientation: import("./useBaseListModel").Orientation;
716
+ indexRef: import("react").MutableRefObject<number>;
717
+ nonInteractiveIds: string[];
718
+ isVirtualized: boolean;
719
+ items: import("./useBaseListModel").Item<any>[];
720
+ }) => boolean) | undefined;
721
+ shouldUnregisterItem?: ((data: {
722
+ id: string;
723
+ }, state: {
724
+ selectedIds: import("./useSelectionListModel").SelectedIds;
725
+ unselectedIds: string[];
726
+ cursorId: string;
727
+ columnCount: number;
728
+ UNSTABLE_virtual: {
729
+ virtualItems: import("./react-virtual").VirtualItem[];
730
+ totalSize: number;
731
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
732
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
733
+ measure: () => void;
734
+ };
735
+ UNSTABLE_defaultItemHeight: number;
736
+ containerRef: import("react").RefObject<HTMLDivElement>;
737
+ id: string;
738
+ orientation: import("./useBaseListModel").Orientation;
739
+ indexRef: import("react").MutableRefObject<number>;
740
+ nonInteractiveIds: string[];
741
+ isVirtualized: boolean;
742
+ items: import("./useBaseListModel").Item<any>[];
743
+ }) => boolean) | undefined;
744
+ shouldUpdateItemHeight?: ((data: {
745
+ value: number;
746
+ }, state: {
747
+ selectedIds: import("./useSelectionListModel").SelectedIds;
748
+ unselectedIds: string[];
749
+ cursorId: string;
750
+ columnCount: number;
751
+ UNSTABLE_virtual: {
752
+ virtualItems: import("./react-virtual").VirtualItem[];
753
+ totalSize: number;
754
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
755
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
756
+ measure: () => void;
757
+ };
758
+ UNSTABLE_defaultItemHeight: number;
759
+ containerRef: import("react").RefObject<HTMLDivElement>;
760
+ id: string;
761
+ orientation: import("./useBaseListModel").Orientation;
762
+ indexRef: import("react").MutableRefObject<number>;
763
+ nonInteractiveIds: string[];
764
+ isVirtualized: boolean;
765
+ items: import("./useBaseListModel").Item<any>[];
766
+ }) => boolean) | undefined;
767
+ }) | undefined) => {
768
+ state: {
769
+ selectedIds: import("./useSelectionListModel").SelectedIds;
770
+ unselectedIds: string[];
771
+ cursorId: string;
772
+ columnCount: number;
773
+ UNSTABLE_virtual: {
774
+ virtualItems: import("./react-virtual").VirtualItem[];
775
+ totalSize: number;
776
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
777
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
778
+ measure: () => void;
779
+ };
780
+ UNSTABLE_defaultItemHeight: number;
781
+ containerRef: import("react").RefObject<HTMLDivElement>;
782
+ id: string;
783
+ orientation: import("./useBaseListModel").Orientation;
784
+ indexRef: import("react").MutableRefObject<number>;
785
+ nonInteractiveIds: string[];
786
+ isVirtualized: boolean;
787
+ items: import("./useBaseListModel").Item<any>[];
788
+ };
789
+ events: {
790
+ select(data: {
791
+ id: string;
792
+ }): void;
793
+ selectAll(): void;
794
+ unselectAll(): void;
795
+ registerItem(data: {
796
+ item: any;
797
+ textValue: string;
798
+ }): void;
799
+ goTo(data: {
800
+ id: string;
801
+ }): void;
802
+ goToNext(): void;
803
+ goToPrevious(): void;
804
+ goToPreviousRow(): void;
805
+ goToNextRow(): void;
806
+ goToFirst(): void;
807
+ goToLast(): void;
808
+ goToFirstOfRow(): void;
809
+ goToLastOfRow(): void;
810
+ goToNextPage(): void;
811
+ goToPreviousPage(): void;
812
+ unregisterItem(data: {
813
+ id: string;
814
+ }): void;
815
+ updateItemHeight(data: {
816
+ value: number;
817
+ }): void;
818
+ };
819
+ selection: import("./useSelectionListModel").SelectionManager;
820
+ navigation: import("./useCursorListModel").NavigationManager;
821
+ getId: (item: any) => string;
822
+ }) & import("../../common").ModelExtras<{
823
+ /**
824
+ * Controls the state changes when the user sends navigation events to the model. For example,
825
+ * when the user hits the "right" arrow, a behavior hook will determine directionality
826
+ * (left-to-right or right-to-left) and call the correct navigation method. In our example, a
827
+ * left-to-right language would send a `getNext`. The navigation manager may return the next
828
+ * item in the list. Different managers can be created for slightly different use cases. The
829
+ * default navigation manager will stop when the end of a row/column is detected. For example,
830
+ * `getNext` will return the same item the cursor was previously on if the cursor is on the last
831
+ * item of a row.
832
+ */
833
+ navigation: import("./useCursorListModel").NavigationManager;
834
+ initialSelectedIds: import("./useSelectionListModel").SelectedIds;
835
+ initialUnselectedIds: string[];
836
+ selection: import("./useSelectionListModel").SelectionManager;
837
+ initialCursorId: string;
838
+ id: string;
839
+ getId: (item: any) => string;
840
+ getTextValue: (item: any) => string;
841
+ nonInteractiveIds: string[];
842
+ defaultItemHeight: number;
843
+ shouldVirtualize: boolean;
844
+ items: any[];
845
+ }, {
846
+ /**
847
+ * The number of columns represented in a grid
848
+ */
849
+ columnCount: number;
850
+ }, {
851
+ selectedIds: import("./useSelectionListModel").SelectedIds;
852
+ unselectedIds: string[];
853
+ cursorId: string;
854
+ columnCount: number;
855
+ UNSTABLE_virtual: {
856
+ virtualItems: import("./react-virtual").VirtualItem[];
857
+ totalSize: number;
858
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
859
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
860
+ measure: () => void;
861
+ };
862
+ UNSTABLE_defaultItemHeight: number;
863
+ containerRef: import("react").RefObject<HTMLDivElement>;
864
+ id: string;
865
+ orientation: import("./useBaseListModel").Orientation;
866
+ indexRef: import("react").MutableRefObject<number>;
867
+ nonInteractiveIds: string[];
868
+ isVirtualized: boolean;
869
+ items: import("./useBaseListModel").Item<any>[];
870
+ }, {
871
+ select(data: {
872
+ id: string;
873
+ }): void;
874
+ selectAll(): void;
875
+ unselectAll(): void;
876
+ registerItem(data: {
877
+ item: any;
878
+ textValue: string;
879
+ }): void;
880
+ goTo(data: {
881
+ id: string;
882
+ }): void;
883
+ goToNext(): void;
884
+ goToPrevious(): void;
885
+ goToPreviousRow(): void;
886
+ goToNextRow(): void;
887
+ goToFirst(): void;
888
+ goToLast(): void;
889
+ goToFirstOfRow(): void;
890
+ goToLastOfRow(): void;
891
+ goToNextPage(): void;
892
+ goToPreviousPage(): void;
893
+ unregisterItem(data: {
894
+ id: string;
895
+ }): void;
896
+ updateItemHeight(data: {
897
+ value: number;
898
+ }): void;
899
+ }, {
900
+ state: {
901
+ selectedIds: import("./useSelectionListModel").SelectedIds;
902
+ unselectedIds: string[];
903
+ cursorId: string;
904
+ columnCount: number;
905
+ UNSTABLE_virtual: {
906
+ virtualItems: import("./react-virtual").VirtualItem[];
907
+ totalSize: number;
908
+ scrollToOffset: (index: number, options?: import("./react-virtual").ScrollToOffsetOptions | undefined) => void;
909
+ scrollToIndex: (index: number, options?: import("./react-virtual").ScrollToIndexOptions | undefined) => void;
910
+ measure: () => void;
911
+ };
912
+ UNSTABLE_defaultItemHeight: number;
913
+ containerRef: import("react").RefObject<HTMLDivElement>;
914
+ id: string;
915
+ orientation: import("./useBaseListModel").Orientation;
916
+ indexRef: import("react").MutableRefObject<number>;
917
+ nonInteractiveIds: string[];
918
+ isVirtualized: boolean;
919
+ items: import("./useBaseListModel").Item<any>[];
920
+ };
921
+ events: {
922
+ select(data: {
923
+ id: string;
924
+ }): void;
925
+ selectAll(): void;
926
+ unselectAll(): void;
927
+ registerItem(data: {
928
+ item: any;
929
+ textValue: string;
930
+ }): void;
931
+ goTo(data: {
932
+ id: string;
933
+ }): void;
934
+ goToNext(): void;
935
+ goToPrevious(): void;
936
+ goToPreviousRow(): void;
937
+ goToNextRow(): void;
938
+ goToFirst(): void;
939
+ goToLast(): void;
940
+ goToFirstOfRow(): void;
941
+ goToLastOfRow(): void;
942
+ goToNextPage(): void;
943
+ goToPreviousPage(): void;
944
+ unregisterItem(data: {
945
+ id: string;
946
+ }): void;
947
+ updateItemHeight(data: {
948
+ value: number;
949
+ }): void;
950
+ };
951
+ selection: import("./useSelectionListModel").SelectionManager;
952
+ navigation: import("./useCursorListModel").NavigationManager;
953
+ getId: (item: any) => string;
954
+ }>;
955
+ //# sourceMappingURL=useGridModel.d.ts.map