@workday/canvas-kit-react 9.0.0-alpha.415-next.17 → 9.0.0-alpha.416-next.18

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 (99) hide show
  1. package/collection/lib/useCursorListModel.tsx +0 -15
  2. package/collection/lib/useListItemRovingFocus.tsx +7 -0
  3. package/dist/commonjs/action-bar/lib/ActionBar.d.ts +124 -124
  4. package/dist/commonjs/action-bar/lib/ActionBar.d.ts.map +1 -1
  5. package/dist/commonjs/action-bar/lib/ActionBarItem.d.ts +12 -12
  6. package/dist/commonjs/action-bar/lib/ActionBarList.d.ts +12 -12
  7. package/dist/commonjs/action-bar/lib/ActionBarOverflowButton.d.ts +16 -16
  8. package/dist/commonjs/action-bar/lib/useActionBarModel.d.ts +52 -52
  9. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs.d.ts +136 -136
  10. package/dist/commonjs/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts +16 -16
  11. package/dist/commonjs/breadcrumbs/lib/BreadcrumbsItem.d.ts +12 -12
  12. package/dist/commonjs/breadcrumbs/lib/BreadcrumbsList.d.ts +8 -8
  13. package/dist/commonjs/breadcrumbs/lib/BreadcrumbsMenu.d.ts +64 -64
  14. package/dist/commonjs/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts +16 -16
  15. package/dist/commonjs/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts +52 -52
  16. package/dist/commonjs/collection/lib/ListBox.d.ts +48 -48
  17. package/dist/commonjs/collection/lib/useCursorListModel.d.ts +44 -56
  18. package/dist/commonjs/collection/lib/useCursorListModel.d.ts.map +1 -1
  19. package/dist/commonjs/collection/lib/useCursorListModel.js +2 -15
  20. package/dist/commonjs/collection/lib/useGridModel.d.ts +44 -44
  21. package/dist/commonjs/collection/lib/useListItemAllowChildStrings.d.ts +4 -4
  22. package/dist/commonjs/collection/lib/useListItemRegister.d.ts +4 -4
  23. package/dist/commonjs/collection/lib/useListItemRovingFocus.d.ts +4 -4
  24. package/dist/commonjs/collection/lib/useListItemRovingFocus.d.ts.map +1 -1
  25. package/dist/commonjs/collection/lib/useListItemRovingFocus.js +6 -0
  26. package/dist/commonjs/collection/lib/useListItemSelect.d.ts +4 -4
  27. package/dist/commonjs/collection/lib/useListModel.d.ts +44 -44
  28. package/dist/commonjs/collection/lib/useListResetCursorOnBlur.d.ts +4 -4
  29. package/dist/commonjs/collection/lib/useOverflowListItemMeasure.d.ts +4 -4
  30. package/dist/commonjs/collection/lib/useOverflowListMeasure.d.ts +4 -4
  31. package/dist/commonjs/collection/lib/useOverflowListModel.d.ts +44 -44
  32. package/dist/commonjs/collection/lib/useOverflowListTarget.d.ts +4 -4
  33. package/dist/commonjs/collection/lib/useSelectionListModel.d.ts +44 -44
  34. package/dist/commonjs/menu/lib/Menu.d.ts +60 -60
  35. package/dist/commonjs/menu/lib/MenuCard.d.ts +8 -8
  36. package/dist/commonjs/menu/lib/MenuContextTarget.d.ts +12 -12
  37. package/dist/commonjs/menu/lib/MenuItem.d.ts +8 -8
  38. package/dist/commonjs/menu/lib/MenuList.d.ts +8 -8
  39. package/dist/commonjs/menu/lib/MenuPopper.d.ts +4 -4
  40. package/dist/commonjs/menu/lib/MenuTarget.d.ts +20 -20
  41. package/dist/commonjs/menu/lib/useMenuModel.d.ts +44 -44
  42. package/dist/commonjs/tabs/lib/Tabs.d.ts +176 -176
  43. package/dist/commonjs/tabs/lib/TabsItem.d.ts +16 -16
  44. package/dist/commonjs/tabs/lib/TabsList.d.ts +16 -16
  45. package/dist/commonjs/tabs/lib/TabsMenuPopper.d.ts +4 -4
  46. package/dist/commonjs/tabs/lib/TabsOverflowButton.d.ts +16 -16
  47. package/dist/commonjs/tabs/lib/TabsPanel.d.ts +16 -16
  48. package/dist/commonjs/tabs/lib/TabsPanels.d.ts +8 -8
  49. package/dist/commonjs/tabs/lib/useTabsModel.d.ts +116 -116
  50. package/dist/commonjs/tabs/lib/useTabsModel.d.ts.map +1 -1
  51. package/dist/es6/action-bar/lib/ActionBar.d.ts +124 -124
  52. package/dist/es6/action-bar/lib/ActionBar.d.ts.map +1 -1
  53. package/dist/es6/action-bar/lib/ActionBarItem.d.ts +12 -12
  54. package/dist/es6/action-bar/lib/ActionBarList.d.ts +12 -12
  55. package/dist/es6/action-bar/lib/ActionBarOverflowButton.d.ts +16 -16
  56. package/dist/es6/action-bar/lib/useActionBarModel.d.ts +52 -52
  57. package/dist/es6/breadcrumbs/lib/Breadcrumbs.d.ts +136 -136
  58. package/dist/es6/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts +16 -16
  59. package/dist/es6/breadcrumbs/lib/BreadcrumbsItem.d.ts +12 -12
  60. package/dist/es6/breadcrumbs/lib/BreadcrumbsList.d.ts +8 -8
  61. package/dist/es6/breadcrumbs/lib/BreadcrumbsMenu.d.ts +64 -64
  62. package/dist/es6/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts +16 -16
  63. package/dist/es6/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts +52 -52
  64. package/dist/es6/collection/lib/ListBox.d.ts +48 -48
  65. package/dist/es6/collection/lib/useCursorListModel.d.ts +44 -56
  66. package/dist/es6/collection/lib/useCursorListModel.d.ts.map +1 -1
  67. package/dist/es6/collection/lib/useCursorListModel.js +2 -15
  68. package/dist/es6/collection/lib/useGridModel.d.ts +44 -44
  69. package/dist/es6/collection/lib/useListItemAllowChildStrings.d.ts +4 -4
  70. package/dist/es6/collection/lib/useListItemRegister.d.ts +4 -4
  71. package/dist/es6/collection/lib/useListItemRovingFocus.d.ts +4 -4
  72. package/dist/es6/collection/lib/useListItemRovingFocus.d.ts.map +1 -1
  73. package/dist/es6/collection/lib/useListItemRovingFocus.js +6 -0
  74. package/dist/es6/collection/lib/useListItemSelect.d.ts +4 -4
  75. package/dist/es6/collection/lib/useListModel.d.ts +44 -44
  76. package/dist/es6/collection/lib/useListResetCursorOnBlur.d.ts +4 -4
  77. package/dist/es6/collection/lib/useOverflowListItemMeasure.d.ts +4 -4
  78. package/dist/es6/collection/lib/useOverflowListMeasure.d.ts +4 -4
  79. package/dist/es6/collection/lib/useOverflowListModel.d.ts +44 -44
  80. package/dist/es6/collection/lib/useOverflowListTarget.d.ts +4 -4
  81. package/dist/es6/collection/lib/useSelectionListModel.d.ts +44 -44
  82. package/dist/es6/menu/lib/Menu.d.ts +60 -60
  83. package/dist/es6/menu/lib/MenuCard.d.ts +8 -8
  84. package/dist/es6/menu/lib/MenuContextTarget.d.ts +12 -12
  85. package/dist/es6/menu/lib/MenuItem.d.ts +8 -8
  86. package/dist/es6/menu/lib/MenuList.d.ts +8 -8
  87. package/dist/es6/menu/lib/MenuPopper.d.ts +4 -4
  88. package/dist/es6/menu/lib/MenuTarget.d.ts +20 -20
  89. package/dist/es6/menu/lib/useMenuModel.d.ts +44 -44
  90. package/dist/es6/tabs/lib/Tabs.d.ts +176 -176
  91. package/dist/es6/tabs/lib/TabsItem.d.ts +16 -16
  92. package/dist/es6/tabs/lib/TabsList.d.ts +16 -16
  93. package/dist/es6/tabs/lib/TabsMenuPopper.d.ts +4 -4
  94. package/dist/es6/tabs/lib/TabsOverflowButton.d.ts +16 -16
  95. package/dist/es6/tabs/lib/TabsPanel.d.ts +16 -16
  96. package/dist/es6/tabs/lib/TabsPanels.d.ts +8 -8
  97. package/dist/es6/tabs/lib/useTabsModel.d.ts +116 -116
  98. package/dist/es6/tabs/lib/useTabsModel.d.ts.map +1 -1
  99. package/package.json +3 -3
@@ -163,9 +163,8 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
163
163
  shouldVirtualize: boolean;
164
164
  items: any[];
165
165
  }> & {
166
- onRegisterItem?: ((data: {
167
- item: any;
168
- textValue: string;
166
+ onGoTo?: ((data: {
167
+ id: string;
169
168
  }, prevState: {
170
169
  /** The id of the list item the cursor is pointing to */
171
170
  cursorId: string;
@@ -196,9 +195,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
196
195
  isVirtualized: boolean;
197
196
  items: Item<any>[];
198
197
  }) => void) | undefined;
199
- onGoTo?: ((data: {
200
- id: string;
201
- }, prevState: {
198
+ onGoToNext?: ((data: undefined, prevState: {
202
199
  /** The id of the list item the cursor is pointing to */
203
200
  cursorId: string;
204
201
  /**
@@ -228,7 +225,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
228
225
  isVirtualized: boolean;
229
226
  items: Item<any>[];
230
227
  }) => void) | undefined;
231
- onGoToNext?: ((data: undefined, prevState: {
228
+ onGoToPrevious?: ((data: undefined, prevState: {
232
229
  /** The id of the list item the cursor is pointing to */
233
230
  cursorId: string;
234
231
  /**
@@ -258,7 +255,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
258
255
  isVirtualized: boolean;
259
256
  items: Item<any>[];
260
257
  }) => void) | undefined;
261
- onGoToPrevious?: ((data: undefined, prevState: {
258
+ onGoToPreviousRow?: ((data: undefined, prevState: {
262
259
  /** The id of the list item the cursor is pointing to */
263
260
  cursorId: string;
264
261
  /**
@@ -288,7 +285,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
288
285
  isVirtualized: boolean;
289
286
  items: Item<any>[];
290
287
  }) => void) | undefined;
291
- onGoToPreviousRow?: ((data: undefined, prevState: {
288
+ onGoToNextRow?: ((data: undefined, prevState: {
292
289
  /** The id of the list item the cursor is pointing to */
293
290
  cursorId: string;
294
291
  /**
@@ -318,7 +315,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
318
315
  isVirtualized: boolean;
319
316
  items: Item<any>[];
320
317
  }) => void) | undefined;
321
- onGoToNextRow?: ((data: undefined, prevState: {
318
+ onGoToFirst?: ((data: undefined, prevState: {
322
319
  /** The id of the list item the cursor is pointing to */
323
320
  cursorId: string;
324
321
  /**
@@ -348,7 +345,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
348
345
  isVirtualized: boolean;
349
346
  items: Item<any>[];
350
347
  }) => void) | undefined;
351
- onGoToFirst?: ((data: undefined, prevState: {
348
+ onGoToLast?: ((data: undefined, prevState: {
352
349
  /** The id of the list item the cursor is pointing to */
353
350
  cursorId: string;
354
351
  /**
@@ -378,7 +375,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
378
375
  isVirtualized: boolean;
379
376
  items: Item<any>[];
380
377
  }) => void) | undefined;
381
- onGoToLast?: ((data: undefined, prevState: {
378
+ onGoToFirstOfRow?: ((data: undefined, prevState: {
382
379
  /** The id of the list item the cursor is pointing to */
383
380
  cursorId: string;
384
381
  /**
@@ -408,7 +405,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
408
405
  isVirtualized: boolean;
409
406
  items: Item<any>[];
410
407
  }) => void) | undefined;
411
- onGoToFirstOfRow?: ((data: undefined, prevState: {
408
+ onGoToLastOfRow?: ((data: undefined, prevState: {
412
409
  /** The id of the list item the cursor is pointing to */
413
410
  cursorId: string;
414
411
  /**
@@ -438,7 +435,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
438
435
  isVirtualized: boolean;
439
436
  items: Item<any>[];
440
437
  }) => void) | undefined;
441
- onGoToLastOfRow?: ((data: undefined, prevState: {
438
+ onGoToNextPage?: ((data: undefined, prevState: {
442
439
  /** The id of the list item the cursor is pointing to */
443
440
  cursorId: string;
444
441
  /**
@@ -468,7 +465,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
468
465
  isVirtualized: boolean;
469
466
  items: Item<any>[];
470
467
  }) => void) | undefined;
471
- onGoToNextPage?: ((data: undefined, prevState: {
468
+ onGoToPreviousPage?: ((data: undefined, prevState: {
472
469
  /** The id of the list item the cursor is pointing to */
473
470
  cursorId: string;
474
471
  /**
@@ -498,7 +495,10 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
498
495
  isVirtualized: boolean;
499
496
  items: Item<any>[];
500
497
  }) => void) | undefined;
501
- onGoToPreviousPage?: ((data: undefined, prevState: {
498
+ onRegisterItem?: ((data: {
499
+ item: any;
500
+ textValue: string;
501
+ }, prevState: {
502
502
  /** The id of the list item the cursor is pointing to */
503
503
  cursorId: string;
504
504
  /**
@@ -593,9 +593,8 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
593
593
  items: Item<any>[];
594
594
  }) => void) | undefined;
595
595
  } & {
596
- shouldRegisterItem?: ((data: {
597
- item: any;
598
- textValue: string;
596
+ shouldGoTo?: ((data: {
597
+ id: string;
599
598
  }, state: {
600
599
  /** The id of the list item the cursor is pointing to */
601
600
  cursorId: string;
@@ -626,9 +625,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
626
625
  isVirtualized: boolean;
627
626
  items: Item<any>[];
628
627
  }) => boolean) | undefined;
629
- shouldGoTo?: ((data: {
630
- id: string;
631
- }, state: {
628
+ shouldGoToNext?: ((data: undefined, state: {
632
629
  /** The id of the list item the cursor is pointing to */
633
630
  cursorId: string;
634
631
  /**
@@ -658,7 +655,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
658
655
  isVirtualized: boolean;
659
656
  items: Item<any>[];
660
657
  }) => boolean) | undefined;
661
- shouldGoToNext?: ((data: undefined, state: {
658
+ shouldGoToPrevious?: ((data: undefined, state: {
662
659
  /** The id of the list item the cursor is pointing to */
663
660
  cursorId: string;
664
661
  /**
@@ -688,7 +685,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
688
685
  isVirtualized: boolean;
689
686
  items: Item<any>[];
690
687
  }) => boolean) | undefined;
691
- shouldGoToPrevious?: ((data: undefined, state: {
688
+ shouldGoToPreviousRow?: ((data: undefined, state: {
692
689
  /** The id of the list item the cursor is pointing to */
693
690
  cursorId: string;
694
691
  /**
@@ -718,7 +715,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
718
715
  isVirtualized: boolean;
719
716
  items: Item<any>[];
720
717
  }) => boolean) | undefined;
721
- shouldGoToPreviousRow?: ((data: undefined, state: {
718
+ shouldGoToNextRow?: ((data: undefined, state: {
722
719
  /** The id of the list item the cursor is pointing to */
723
720
  cursorId: string;
724
721
  /**
@@ -748,7 +745,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
748
745
  isVirtualized: boolean;
749
746
  items: Item<any>[];
750
747
  }) => boolean) | undefined;
751
- shouldGoToNextRow?: ((data: undefined, state: {
748
+ shouldGoToFirst?: ((data: undefined, state: {
752
749
  /** The id of the list item the cursor is pointing to */
753
750
  cursorId: string;
754
751
  /**
@@ -778,7 +775,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
778
775
  isVirtualized: boolean;
779
776
  items: Item<any>[];
780
777
  }) => boolean) | undefined;
781
- shouldGoToFirst?: ((data: undefined, state: {
778
+ shouldGoToLast?: ((data: undefined, state: {
782
779
  /** The id of the list item the cursor is pointing to */
783
780
  cursorId: string;
784
781
  /**
@@ -808,7 +805,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
808
805
  isVirtualized: boolean;
809
806
  items: Item<any>[];
810
807
  }) => boolean) | undefined;
811
- shouldGoToLast?: ((data: undefined, state: {
808
+ shouldGoToFirstOfRow?: ((data: undefined, state: {
812
809
  /** The id of the list item the cursor is pointing to */
813
810
  cursorId: string;
814
811
  /**
@@ -838,7 +835,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
838
835
  isVirtualized: boolean;
839
836
  items: Item<any>[];
840
837
  }) => boolean) | undefined;
841
- shouldGoToFirstOfRow?: ((data: undefined, state: {
838
+ shouldGoToLastOfRow?: ((data: undefined, state: {
842
839
  /** The id of the list item the cursor is pointing to */
843
840
  cursorId: string;
844
841
  /**
@@ -868,7 +865,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
868
865
  isVirtualized: boolean;
869
866
  items: Item<any>[];
870
867
  }) => boolean) | undefined;
871
- shouldGoToLastOfRow?: ((data: undefined, state: {
868
+ shouldGoToNextPage?: ((data: undefined, state: {
872
869
  /** The id of the list item the cursor is pointing to */
873
870
  cursorId: string;
874
871
  /**
@@ -898,7 +895,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
898
895
  isVirtualized: boolean;
899
896
  items: Item<any>[];
900
897
  }) => boolean) | undefined;
901
- shouldGoToNextPage?: ((data: undefined, state: {
898
+ shouldGoToPreviousPage?: ((data: undefined, state: {
902
899
  /** The id of the list item the cursor is pointing to */
903
900
  cursorId: string;
904
901
  /**
@@ -928,7 +925,10 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
928
925
  isVirtualized: boolean;
929
926
  items: Item<any>[];
930
927
  }) => boolean) | undefined;
931
- shouldGoToPreviousPage?: ((data: undefined, state: {
928
+ shouldRegisterItem?: ((data: {
929
+ item: any;
930
+ textValue: string;
931
+ }, state: {
932
932
  /** The id of the list item the cursor is pointing to */
933
933
  cursorId: string;
934
934
  /**
@@ -1054,14 +1054,6 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
1054
1054
  items: Item<any>[];
1055
1055
  };
1056
1056
  events: {
1057
- /**
1058
- * Register an item to the list. Takes in an identifier, a React.Ref and an optional index. This
1059
- * should be called on component mount
1060
- */
1061
- registerItem(data: {
1062
- item: any;
1063
- textValue: string;
1064
- }): void;
1065
1057
  /** Directly sets the cursor to the list item by its identifier. */
1066
1058
  goTo(data: {
1067
1059
  id: string;
@@ -1100,6 +1092,10 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
1100
1092
  goToLastOfRow(): void;
1101
1093
  goToNextPage(): void;
1102
1094
  goToPreviousPage(): void;
1095
+ registerItem(data: {
1096
+ item: any;
1097
+ textValue: string;
1098
+ }): void;
1103
1099
  unregisterItem(data: {
1104
1100
  id: string;
1105
1101
  }): void;
@@ -1192,14 +1188,6 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
1192
1188
  isVirtualized: boolean;
1193
1189
  items: Item<any>[];
1194
1190
  }, {
1195
- /**
1196
- * Register an item to the list. Takes in an identifier, a React.Ref and an optional index. This
1197
- * should be called on component mount
1198
- */
1199
- registerItem(data: {
1200
- item: any;
1201
- textValue: string;
1202
- }): void;
1203
1191
  /** Directly sets the cursor to the list item by its identifier. */
1204
1192
  goTo(data: {
1205
1193
  id: string;
@@ -1238,6 +1226,10 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
1238
1226
  goToLastOfRow(): void;
1239
1227
  goToNextPage(): void;
1240
1228
  goToPreviousPage(): void;
1229
+ registerItem(data: {
1230
+ item: any;
1231
+ textValue: string;
1232
+ }): void;
1241
1233
  unregisterItem(data: {
1242
1234
  id: string;
1243
1235
  }): void;
@@ -1276,14 +1268,6 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
1276
1268
  items: Item<any>[];
1277
1269
  };
1278
1270
  events: {
1279
- /**
1280
- * Register an item to the list. Takes in an identifier, a React.Ref and an optional index. This
1281
- * should be called on component mount
1282
- */
1283
- registerItem(data: {
1284
- item: any;
1285
- textValue: string;
1286
- }): void;
1287
1271
  /** Directly sets the cursor to the list item by its identifier. */
1288
1272
  goTo(data: {
1289
1273
  id: string;
@@ -1322,6 +1306,10 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
1322
1306
  goToLastOfRow(): void;
1323
1307
  goToNextPage(): void;
1324
1308
  goToPreviousPage(): void;
1309
+ registerItem(data: {
1310
+ item: any;
1311
+ textValue: string;
1312
+ }): void;
1325
1313
  unregisterItem(data: {
1326
1314
  id: string;
1327
1315
  }): void;
@@ -1 +1 @@
1
- {"version":3,"file":"useCursorListModel.d.ts","sourceRoot":"","sources":["../../../../collection/lib/useCursorListModel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAA0B,OAAO,EAAC,MAAM,kCAAkC,CAAC;AAElF,OAAO,EAAmB,IAAI,EAAC,MAAM,oBAAoB,CAAC;AAE1D,aAAK,eAA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AKG;;QAKH;;;WAGG;;QAKH;;;;;WAKG;;QAOH;;;;;WAKG;;QAKH,mDAAmD;;QAKnD,kDAAkD;;;;;;;;;;;;;;;;;;;;IAtHlD;;OAEG;;IAEH;;;OAGG;;IAEH;;;;;;;;;;;OAWG;;IAEH;;;OAGG;;;;IAzQP;;;;;;;;;;;;;;;;OAgBG;;;;;;;;IAmRC,wDAAwD;;IAExD;;;;OAIG;;IAEH;;;OAGG;;;;;;;;;;;;;;;;;;IAMH,mEAAmE;eACxD;QAAC,EAAE,EAAE,MAAM,CAAA;KAAC;IAIvB;;;;;OAKG;;IAKH;;;OAGG;;IAKH;;;;;OAKG;;IAOH;;;;;OAKG;;IAKH,mDAAmD;;IAKnD,kDAAkD;;;;;;;;;;;;;;;;;;QAnElD,wDAAwD;;QAExD;;;;WAIG;;QAEH;;;WAGG;;;;;;;;;;;;;;;;;;;QAMH,mEAAmE;mBACxD;YAAC,EAAE,EAAE,MAAM,CAAA;SAAC;QAIvB;;;;;WAKG;;QAKH;;;WAGG;;QAKH;;;;;WAKG;;QAOH;;;;;WAKG;;QAKH,mDAAmD;;QAKnD,kDAAkD;;;;;;;;;;;;;;;;;;;EA0BpD,CAAC"}
@@ -256,12 +256,11 @@ exports.useCursorListModel = common_1.createModelHook({
256
256
  requiredConfig: useBaseListModel_1.useBaseListModel.requiredConfig,
257
257
  contextOverride: useBaseListModel_1.useBaseListModel.Context,
258
258
  })(config => {
259
- var _a, _b;
259
+ var _a;
260
260
  const [cursorId, setCursorId] = react_1.default.useState(config.initialCursorId);
261
261
  const pageSizeRef = react_1.default.useRef(config.pageSize);
262
262
  const columnCount = config.columnCount || 0;
263
263
  const list = useBaseListModel_1.useBaseListModel(config);
264
- const initialCurrentRef = react_1.default.useRef(config.initialCursorId || (((_a = config.items) === null || _a === void 0 ? void 0 : _a.length) ? list.state.items[0].id : ''));
265
264
  const navigation = config.navigation;
266
265
  const cursorIndexRef = react_1.default.useRef(-1);
267
266
  const setCursor = (index) => {
@@ -270,7 +269,7 @@ exports.useCursorListModel = common_1.createModelHook({
270
269
  setCursorId(id);
271
270
  };
272
271
  // Keep the cursorIndex up to date with the cursor ID
273
- if (cursorId && ((_b = list.state.items[cursorIndexRef.current]) === null || _b === void 0 ? void 0 : _b.id) !== cursorId) {
272
+ if (cursorId && ((_a = list.state.items[cursorIndexRef.current]) === null || _a === void 0 ? void 0 : _a.id) !== cursorId) {
274
273
  cursorIndexRef.current = list.state.items.findIndex(item => item.id === cursorId);
275
274
  }
276
275
  else if (!cursorId) {
@@ -294,18 +293,6 @@ exports.useCursorListModel = common_1.createModelHook({
294
293
  };
295
294
  const events = {
296
295
  ...list.events,
297
- /**
298
- * Register an item to the list. Takes in an identifier, a React.Ref and an optional index. This
299
- * should be called on component mount
300
- */
301
- registerItem(data) {
302
- // point the cursor at the first item
303
- if (!initialCurrentRef.current) {
304
- initialCurrentRef.current = list.getId(data.item);
305
- setCursorId(initialCurrentRef.current);
306
- }
307
- list.events.registerItem(data);
308
- },
309
296
  /** Directly sets the cursor to the list item by its identifier. */
310
297
  goTo(data) {
311
298
  const index = state.items.findIndex(item => item.id === data.id);
@@ -100,9 +100,8 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
100
100
  isVirtualized: boolean;
101
101
  items: import("./useBaseListModel").Item<any>[];
102
102
  }) => void) | undefined;
103
- onRegisterItem?: ((data: {
104
- item: any;
105
- textValue: string;
103
+ onGoTo?: ((data: {
104
+ id: string;
106
105
  }, prevState: {
107
106
  selectedIds: string[] | "all";
108
107
  unselectedIds: string[];
@@ -125,9 +124,7 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
125
124
  isVirtualized: boolean;
126
125
  items: import("./useBaseListModel").Item<any>[];
127
126
  }) => void) | undefined;
128
- onGoTo?: ((data: {
129
- id: string;
130
- }, prevState: {
127
+ onGoToNext?: ((data: undefined, prevState: {
131
128
  selectedIds: string[] | "all";
132
129
  unselectedIds: string[];
133
130
  cursorId: string;
@@ -149,7 +146,7 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
149
146
  isVirtualized: boolean;
150
147
  items: import("./useBaseListModel").Item<any>[];
151
148
  }) => void) | undefined;
152
- onGoToNext?: ((data: undefined, prevState: {
149
+ onGoToPrevious?: ((data: undefined, prevState: {
153
150
  selectedIds: string[] | "all";
154
151
  unselectedIds: string[];
155
152
  cursorId: string;
@@ -171,7 +168,7 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
171
168
  isVirtualized: boolean;
172
169
  items: import("./useBaseListModel").Item<any>[];
173
170
  }) => void) | undefined;
174
- onGoToPrevious?: ((data: undefined, prevState: {
171
+ onGoToPreviousRow?: ((data: undefined, prevState: {
175
172
  selectedIds: string[] | "all";
176
173
  unselectedIds: string[];
177
174
  cursorId: string;
@@ -193,7 +190,7 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
193
190
  isVirtualized: boolean;
194
191
  items: import("./useBaseListModel").Item<any>[];
195
192
  }) => void) | undefined;
196
- onGoToPreviousRow?: ((data: undefined, prevState: {
193
+ onGoToNextRow?: ((data: undefined, prevState: {
197
194
  selectedIds: string[] | "all";
198
195
  unselectedIds: string[];
199
196
  cursorId: string;
@@ -215,7 +212,7 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
215
212
  isVirtualized: boolean;
216
213
  items: import("./useBaseListModel").Item<any>[];
217
214
  }) => void) | undefined;
218
- onGoToNextRow?: ((data: undefined, prevState: {
215
+ onGoToFirst?: ((data: undefined, prevState: {
219
216
  selectedIds: string[] | "all";
220
217
  unselectedIds: string[];
221
218
  cursorId: string;
@@ -237,7 +234,7 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
237
234
  isVirtualized: boolean;
238
235
  items: import("./useBaseListModel").Item<any>[];
239
236
  }) => void) | undefined;
240
- onGoToFirst?: ((data: undefined, prevState: {
237
+ onGoToLast?: ((data: undefined, prevState: {
241
238
  selectedIds: string[] | "all";
242
239
  unselectedIds: string[];
243
240
  cursorId: string;
@@ -259,7 +256,7 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
259
256
  isVirtualized: boolean;
260
257
  items: import("./useBaseListModel").Item<any>[];
261
258
  }) => void) | undefined;
262
- onGoToLast?: ((data: undefined, prevState: {
259
+ onGoToFirstOfRow?: ((data: undefined, prevState: {
263
260
  selectedIds: string[] | "all";
264
261
  unselectedIds: string[];
265
262
  cursorId: string;
@@ -281,7 +278,7 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
281
278
  isVirtualized: boolean;
282
279
  items: import("./useBaseListModel").Item<any>[];
283
280
  }) => void) | undefined;
284
- onGoToFirstOfRow?: ((data: undefined, prevState: {
281
+ onGoToLastOfRow?: ((data: undefined, prevState: {
285
282
  selectedIds: string[] | "all";
286
283
  unselectedIds: string[];
287
284
  cursorId: string;
@@ -303,7 +300,7 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
303
300
  isVirtualized: boolean;
304
301
  items: import("./useBaseListModel").Item<any>[];
305
302
  }) => void) | undefined;
306
- onGoToLastOfRow?: ((data: undefined, prevState: {
303
+ onGoToNextPage?: ((data: undefined, prevState: {
307
304
  selectedIds: string[] | "all";
308
305
  unselectedIds: string[];
309
306
  cursorId: string;
@@ -325,7 +322,7 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
325
322
  isVirtualized: boolean;
326
323
  items: import("./useBaseListModel").Item<any>[];
327
324
  }) => void) | undefined;
328
- onGoToNextPage?: ((data: undefined, prevState: {
325
+ onGoToPreviousPage?: ((data: undefined, prevState: {
329
326
  selectedIds: string[] | "all";
330
327
  unselectedIds: string[];
331
328
  cursorId: string;
@@ -347,7 +344,10 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
347
344
  isVirtualized: boolean;
348
345
  items: import("./useBaseListModel").Item<any>[];
349
346
  }) => void) | undefined;
350
- onGoToPreviousPage?: ((data: undefined, prevState: {
347
+ onRegisterItem?: ((data: {
348
+ item: any;
349
+ textValue: string;
350
+ }, prevState: {
351
351
  selectedIds: string[] | "all";
352
352
  unselectedIds: string[];
353
353
  cursorId: string;
@@ -486,9 +486,8 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
486
486
  isVirtualized: boolean;
487
487
  items: import("./useBaseListModel").Item<any>[];
488
488
  }) => boolean) | undefined;
489
- shouldRegisterItem?: ((data: {
490
- item: any;
491
- textValue: string;
489
+ shouldGoTo?: ((data: {
490
+ id: string;
492
491
  }, state: {
493
492
  selectedIds: string[] | "all";
494
493
  unselectedIds: string[];
@@ -511,9 +510,7 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
511
510
  isVirtualized: boolean;
512
511
  items: import("./useBaseListModel").Item<any>[];
513
512
  }) => boolean) | undefined;
514
- shouldGoTo?: ((data: {
515
- id: string;
516
- }, state: {
513
+ shouldGoToNext?: ((data: undefined, state: {
517
514
  selectedIds: string[] | "all";
518
515
  unselectedIds: string[];
519
516
  cursorId: string;
@@ -535,7 +532,7 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
535
532
  isVirtualized: boolean;
536
533
  items: import("./useBaseListModel").Item<any>[];
537
534
  }) => boolean) | undefined;
538
- shouldGoToNext?: ((data: undefined, state: {
535
+ shouldGoToPrevious?: ((data: undefined, state: {
539
536
  selectedIds: string[] | "all";
540
537
  unselectedIds: string[];
541
538
  cursorId: string;
@@ -557,7 +554,7 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
557
554
  isVirtualized: boolean;
558
555
  items: import("./useBaseListModel").Item<any>[];
559
556
  }) => boolean) | undefined;
560
- shouldGoToPrevious?: ((data: undefined, state: {
557
+ shouldGoToPreviousRow?: ((data: undefined, state: {
561
558
  selectedIds: string[] | "all";
562
559
  unselectedIds: string[];
563
560
  cursorId: string;
@@ -579,7 +576,7 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
579
576
  isVirtualized: boolean;
580
577
  items: import("./useBaseListModel").Item<any>[];
581
578
  }) => boolean) | undefined;
582
- shouldGoToPreviousRow?: ((data: undefined, state: {
579
+ shouldGoToNextRow?: ((data: undefined, state: {
583
580
  selectedIds: string[] | "all";
584
581
  unselectedIds: string[];
585
582
  cursorId: string;
@@ -601,7 +598,7 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
601
598
  isVirtualized: boolean;
602
599
  items: import("./useBaseListModel").Item<any>[];
603
600
  }) => boolean) | undefined;
604
- shouldGoToNextRow?: ((data: undefined, state: {
601
+ shouldGoToFirst?: ((data: undefined, state: {
605
602
  selectedIds: string[] | "all";
606
603
  unselectedIds: string[];
607
604
  cursorId: string;
@@ -623,7 +620,7 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
623
620
  isVirtualized: boolean;
624
621
  items: import("./useBaseListModel").Item<any>[];
625
622
  }) => boolean) | undefined;
626
- shouldGoToFirst?: ((data: undefined, state: {
623
+ shouldGoToLast?: ((data: undefined, state: {
627
624
  selectedIds: string[] | "all";
628
625
  unselectedIds: string[];
629
626
  cursorId: string;
@@ -645,7 +642,7 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
645
642
  isVirtualized: boolean;
646
643
  items: import("./useBaseListModel").Item<any>[];
647
644
  }) => boolean) | undefined;
648
- shouldGoToLast?: ((data: undefined, state: {
645
+ shouldGoToFirstOfRow?: ((data: undefined, state: {
649
646
  selectedIds: string[] | "all";
650
647
  unselectedIds: string[];
651
648
  cursorId: string;
@@ -667,7 +664,7 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
667
664
  isVirtualized: boolean;
668
665
  items: import("./useBaseListModel").Item<any>[];
669
666
  }) => boolean) | undefined;
670
- shouldGoToFirstOfRow?: ((data: undefined, state: {
667
+ shouldGoToLastOfRow?: ((data: undefined, state: {
671
668
  selectedIds: string[] | "all";
672
669
  unselectedIds: string[];
673
670
  cursorId: string;
@@ -689,7 +686,7 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
689
686
  isVirtualized: boolean;
690
687
  items: import("./useBaseListModel").Item<any>[];
691
688
  }) => boolean) | undefined;
692
- shouldGoToLastOfRow?: ((data: undefined, state: {
689
+ shouldGoToNextPage?: ((data: undefined, state: {
693
690
  selectedIds: string[] | "all";
694
691
  unselectedIds: string[];
695
692
  cursorId: string;
@@ -711,7 +708,7 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
711
708
  isVirtualized: boolean;
712
709
  items: import("./useBaseListModel").Item<any>[];
713
710
  }) => boolean) | undefined;
714
- shouldGoToNextPage?: ((data: undefined, state: {
711
+ shouldGoToPreviousPage?: ((data: undefined, state: {
715
712
  selectedIds: string[] | "all";
716
713
  unselectedIds: string[];
717
714
  cursorId: string;
@@ -733,7 +730,10 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
733
730
  isVirtualized: boolean;
734
731
  items: import("./useBaseListModel").Item<any>[];
735
732
  }) => boolean) | undefined;
736
- shouldGoToPreviousPage?: ((data: undefined, state: {
733
+ shouldRegisterItem?: ((data: {
734
+ item: any;
735
+ textValue: string;
736
+ }, state: {
737
737
  selectedIds: string[] | "all";
738
738
  unselectedIds: string[];
739
739
  cursorId: string;
@@ -832,10 +832,6 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
832
832
  }): void;
833
833
  selectAll(): void;
834
834
  unselectAll(): void;
835
- registerItem(data: {
836
- item: any;
837
- textValue: string;
838
- }): void;
839
835
  goTo(data: {
840
836
  id: string;
841
837
  }): void;
@@ -849,6 +845,10 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
849
845
  goToLastOfRow(): void;
850
846
  goToNextPage(): void;
851
847
  goToPreviousPage(): void;
848
+ registerItem(data: {
849
+ item: any;
850
+ textValue: string;
851
+ }): void;
852
852
  unregisterItem(data: {
853
853
  id: string;
854
854
  }): void;
@@ -915,10 +915,6 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
915
915
  }): void;
916
916
  selectAll(): void;
917
917
  unselectAll(): void;
918
- registerItem(data: {
919
- item: any;
920
- textValue: string;
921
- }): void;
922
918
  goTo(data: {
923
919
  id: string;
924
920
  }): void;
@@ -932,6 +928,10 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
932
928
  goToLastOfRow(): void;
933
929
  goToNextPage(): void;
934
930
  goToPreviousPage(): void;
931
+ registerItem(data: {
932
+ item: any;
933
+ textValue: string;
934
+ }): void;
935
935
  unregisterItem(data: {
936
936
  id: string;
937
937
  }): void;
@@ -967,10 +967,6 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
967
967
  }): void;
968
968
  selectAll(): void;
969
969
  unselectAll(): void;
970
- registerItem(data: {
971
- item: any;
972
- textValue: string;
973
- }): void;
974
970
  goTo(data: {
975
971
  id: string;
976
972
  }): void;
@@ -984,6 +980,10 @@ export declare const useGridModel: (<TT_Special_Generic>(config?: (Partial<{
984
980
  goToLastOfRow(): void;
985
981
  goToNextPage(): void;
986
982
  goToPreviousPage(): void;
983
+ registerItem(data: {
984
+ item: any;
985
+ textValue: string;
986
+ }): void;
987
987
  unregisterItem(data: {
988
988
  id: string;
989
989
  }): void;
@@ -51,10 +51,6 @@ export declare const useListItemAllowChildStrings: import("@workday/canvas-kit-r
51
51
  }): void;
52
52
  selectAll(): void;
53
53
  unselectAll(): void;
54
- registerItem(data: {
55
- item: any;
56
- textValue: string;
57
- }): void;
58
54
  goTo(data: {
59
55
  id: string;
60
56
  }): void;
@@ -68,6 +64,10 @@ export declare const useListItemAllowChildStrings: import("@workday/canvas-kit-r
68
64
  goToLastOfRow(): void;
69
65
  goToNextPage(): void;
70
66
  goToPreviousPage(): void;
67
+ registerItem(data: {
68
+ item: any;
69
+ textValue: string;
70
+ }): void;
71
71
  unregisterItem(data: {
72
72
  id: string;
73
73
  }): void;