@fluentui/react-table 9.2.12 → 9.4.0

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 (557) hide show
  1. package/CHANGELOG.json +193 -1
  2. package/CHANGELOG.md +51 -2
  3. package/dist/index.d.ts +15 -1
  4. package/lib/DataGrid.js +0 -1
  5. package/lib/DataGrid.js.map +1 -1
  6. package/lib/DataGridBody.js +0 -1
  7. package/lib/DataGridBody.js.map +1 -1
  8. package/lib/DataGridCell.js +0 -1
  9. package/lib/DataGridCell.js.map +1 -1
  10. package/lib/DataGridHeader.js +0 -1
  11. package/lib/DataGridHeader.js.map +1 -1
  12. package/lib/DataGridHeaderCell.js +0 -1
  13. package/lib/DataGridHeaderCell.js.map +1 -1
  14. package/lib/DataGridRow.js +0 -1
  15. package/lib/DataGridRow.js.map +1 -1
  16. package/lib/DataGridSelectionCell.js +0 -1
  17. package/lib/DataGridSelectionCell.js.map +1 -1
  18. package/lib/Table.js +0 -1
  19. package/lib/Table.js.map +1 -1
  20. package/lib/TableBody.js +0 -1
  21. package/lib/TableBody.js.map +1 -1
  22. package/lib/TableCell.js +0 -1
  23. package/lib/TableCell.js.map +1 -1
  24. package/lib/TableCellActions.js +0 -1
  25. package/lib/TableCellActions.js.map +1 -1
  26. package/lib/TableCellLayout.js +0 -1
  27. package/lib/TableCellLayout.js.map +1 -1
  28. package/lib/TableCellPrimaryLayout.js +0 -1
  29. package/lib/TableCellPrimaryLayout.js.map +1 -1
  30. package/lib/TableHeader.js +0 -1
  31. package/lib/TableHeader.js.map +1 -1
  32. package/lib/TableHeaderCell.js +0 -1
  33. package/lib/TableHeaderCell.js.map +1 -1
  34. package/lib/TableResizeHandle.js +0 -1
  35. package/lib/TableResizeHandle.js.map +1 -1
  36. package/lib/TableRow.js +0 -1
  37. package/lib/TableRow.js.map +1 -1
  38. package/lib/TableSelectionCell.js +0 -1
  39. package/lib/TableSelectionCell.js.map +1 -1
  40. package/lib/components/DataGrid/DataGrid.js +5 -7
  41. package/lib/components/DataGrid/DataGrid.js.map +1 -1
  42. package/lib/components/DataGrid/DataGrid.types.js +0 -1
  43. package/lib/components/DataGrid/DataGrid.types.js.map +1 -1
  44. package/lib/components/DataGrid/index.js +0 -1
  45. package/lib/components/DataGrid/index.js.map +1 -1
  46. package/lib/components/DataGrid/renderDataGrid.js +4 -6
  47. package/lib/components/DataGrid/renderDataGrid.js.map +1 -1
  48. package/lib/components/DataGrid/useDataGrid.js +72 -89
  49. package/lib/components/DataGrid/useDataGrid.js.map +1 -1
  50. package/lib/components/DataGrid/useDataGridContextValues.js +12 -13
  51. package/lib/components/DataGrid/useDataGridContextValues.js.map +1 -1
  52. package/lib/components/DataGrid/useDataGridStyles.styles.js.map +1 -1
  53. package/lib/components/DataGridBody/DataGridBody.js +5 -7
  54. package/lib/components/DataGridBody/DataGridBody.js.map +1 -1
  55. package/lib/components/DataGridBody/DataGridBody.types.js +0 -1
  56. package/lib/components/DataGridBody/DataGridBody.types.js.map +1 -1
  57. package/lib/components/DataGridBody/index.js +0 -1
  58. package/lib/components/DataGridBody/index.js.map +1 -1
  59. package/lib/components/DataGridBody/renderDataGridBody.js +7 -12
  60. package/lib/components/DataGridBody/renderDataGridBody.js.map +1 -1
  61. package/lib/components/DataGridBody/useDataGridBody.js +15 -19
  62. package/lib/components/DataGridBody/useDataGridBody.js.map +1 -1
  63. package/lib/components/DataGridBody/useDataGridBodyStyles.styles.js.map +1 -1
  64. package/lib/components/DataGridCell/DataGridCell.js +5 -7
  65. package/lib/components/DataGridCell/DataGridCell.js.map +1 -1
  66. package/lib/components/DataGridCell/DataGridCell.types.js +1 -2
  67. package/lib/components/DataGridCell/DataGridCell.types.js.map +1 -1
  68. package/lib/components/DataGridCell/index.js +0 -1
  69. package/lib/components/DataGridCell/index.js.map +1 -1
  70. package/lib/components/DataGridCell/renderDataGridCell.js +2 -4
  71. package/lib/components/DataGridCell/renderDataGridCell.js.map +1 -1
  72. package/lib/components/DataGridCell/useDataGridCell.js +18 -14
  73. package/lib/components/DataGridCell/useDataGridCell.js.map +1 -1
  74. package/lib/components/DataGridCell/useDataGridCellStyles.styles.js.map +1 -1
  75. package/lib/components/DataGridHeader/DataGridHeader.js +5 -7
  76. package/lib/components/DataGridHeader/DataGridHeader.js.map +1 -1
  77. package/lib/components/DataGridHeader/DataGridHeader.types.js +1 -2
  78. package/lib/components/DataGridHeader/DataGridHeader.types.js.map +1 -1
  79. package/lib/components/DataGridHeader/index.js +0 -1
  80. package/lib/components/DataGridHeader/index.js.map +1 -1
  81. package/lib/components/DataGridHeader/renderDataGridHeader.js +2 -4
  82. package/lib/components/DataGridHeader/renderDataGridHeader.js.map +1 -1
  83. package/lib/components/DataGridHeader/useDataGridHeader.js +5 -7
  84. package/lib/components/DataGridHeader/useDataGridHeader.js.map +1 -1
  85. package/lib/components/DataGridHeader/useDataGridHeaderStyles.styles.js.map +1 -1
  86. package/lib/components/DataGridHeaderCell/DataGridHeaderCell.js +5 -7
  87. package/lib/components/DataGridHeaderCell/DataGridHeaderCell.js.map +1 -1
  88. package/lib/components/DataGridHeaderCell/DataGridHeaderCell.types.js +1 -2
  89. package/lib/components/DataGridHeaderCell/DataGridHeaderCell.types.js.map +1 -1
  90. package/lib/components/DataGridHeaderCell/index.js +0 -1
  91. package/lib/components/DataGridHeaderCell/index.js.map +1 -1
  92. package/lib/components/DataGridHeaderCell/renderDataGridHeaderCell.js +2 -4
  93. package/lib/components/DataGridHeaderCell/renderDataGridHeaderCell.js.map +1 -1
  94. package/lib/components/DataGridHeaderCell/useDataGridHeaderCell.js +23 -26
  95. package/lib/components/DataGridHeaderCell/useDataGridHeaderCell.js.map +1 -1
  96. package/lib/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.js.map +1 -1
  97. package/lib/components/DataGridRow/DataGridRow.js +5 -7
  98. package/lib/components/DataGridRow/DataGridRow.js.map +1 -1
  99. package/lib/components/DataGridRow/DataGridRow.types.js +0 -1
  100. package/lib/components/DataGridRow/DataGridRow.types.js.map +1 -1
  101. package/lib/components/DataGridRow/index.js +0 -1
  102. package/lib/components/DataGridRow/index.js.map +1 -1
  103. package/lib/components/DataGridRow/renderDataGridRow.js +7 -12
  104. package/lib/components/DataGridRow/renderDataGridRow.js.map +1 -1
  105. package/lib/components/DataGridRow/useDataGridRow.js +54 -56
  106. package/lib/components/DataGridRow/useDataGridRow.js.map +1 -1
  107. package/lib/components/DataGridRow/useDataGridRowStyles.styles.js.map +1 -1
  108. package/lib/components/DataGridSelectionCell/DataGridSelectionCell.js +5 -7
  109. package/lib/components/DataGridSelectionCell/DataGridSelectionCell.js.map +1 -1
  110. package/lib/components/DataGridSelectionCell/DataGridSelectionCell.types.js +1 -2
  111. package/lib/components/DataGridSelectionCell/DataGridSelectionCell.types.js.map +1 -1
  112. package/lib/components/DataGridSelectionCell/index.js +0 -1
  113. package/lib/components/DataGridSelectionCell/index.js.map +1 -1
  114. package/lib/components/DataGridSelectionCell/renderDataGridSelectionCell.js +2 -4
  115. package/lib/components/DataGridSelectionCell/renderDataGridSelectionCell.js.map +1 -1
  116. package/lib/components/DataGridSelectionCell/useDataGridSelectionCell.js +31 -33
  117. package/lib/components/DataGridSelectionCell/useDataGridSelectionCell.js.map +1 -1
  118. package/lib/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.js.map +1 -1
  119. package/lib/components/Table/Table.js +5 -7
  120. package/lib/components/Table/Table.js.map +1 -1
  121. package/lib/components/Table/Table.types.js +1 -2
  122. package/lib/components/Table/Table.types.js.map +1 -1
  123. package/lib/components/Table/index.js +0 -1
  124. package/lib/components/Table/index.js.map +1 -1
  125. package/lib/components/Table/renderTable.js +6 -11
  126. package/lib/components/Table/renderTable.js.map +1 -1
  127. package/lib/components/Table/useTable.js +17 -19
  128. package/lib/components/Table/useTable.js.map +1 -1
  129. package/lib/components/Table/useTableContextValues.js +13 -14
  130. package/lib/components/Table/useTableContextValues.js.map +1 -1
  131. package/lib/components/Table/useTableStyles.styles.js.map +1 -1
  132. package/lib/components/TableBody/TableBody.js +5 -7
  133. package/lib/components/TableBody/TableBody.js.map +1 -1
  134. package/lib/components/TableBody/TableBody.types.js +1 -2
  135. package/lib/components/TableBody/TableBody.types.js.map +1 -1
  136. package/lib/components/TableBody/index.js +0 -1
  137. package/lib/components/TableBody/index.js.map +1 -1
  138. package/lib/components/TableBody/renderTableBody.js +4 -9
  139. package/lib/components/TableBody/renderTableBody.js.map +1 -1
  140. package/lib/components/TableBody/useTableBody.js +15 -19
  141. package/lib/components/TableBody/useTableBody.js.map +1 -1
  142. package/lib/components/TableBody/useTableBodyStyles.styles.js.map +1 -1
  143. package/lib/components/TableCell/TableCell.js +5 -7
  144. package/lib/components/TableCell/TableCell.js.map +1 -1
  145. package/lib/components/TableCell/TableCell.types.js +1 -2
  146. package/lib/components/TableCell/TableCell.types.js.map +1 -1
  147. package/lib/components/TableCell/index.js +0 -1
  148. package/lib/components/TableCell/index.js.map +1 -1
  149. package/lib/components/TableCell/renderTableCell.js +4 -9
  150. package/lib/components/TableCell/renderTableCell.js.map +1 -1
  151. package/lib/components/TableCell/useTableCell.js +16 -21
  152. package/lib/components/TableCell/useTableCell.js.map +1 -1
  153. package/lib/components/TableCell/useTableCellStyles.styles.js.map +1 -1
  154. package/lib/components/TableCellActions/TableCellActions.js +5 -7
  155. package/lib/components/TableCellActions/TableCellActions.js.map +1 -1
  156. package/lib/components/TableCellActions/TableCellActions.types.js +1 -2
  157. package/lib/components/TableCellActions/TableCellActions.types.js.map +1 -1
  158. package/lib/components/TableCellActions/index.js +0 -1
  159. package/lib/components/TableCellActions/index.js.map +1 -1
  160. package/lib/components/TableCellActions/renderTableCellActions.js +4 -9
  161. package/lib/components/TableCellActions/renderTableCellActions.js.map +1 -1
  162. package/lib/components/TableCellActions/useTableCellActions.js +12 -14
  163. package/lib/components/TableCellActions/useTableCellActions.js.map +1 -1
  164. package/lib/components/TableCellActions/useTableCellActionsStyles.styles.js.map +1 -1
  165. package/lib/components/TableCellLayout/TableCellLayout.js +5 -7
  166. package/lib/components/TableCellLayout/TableCellLayout.js.map +1 -1
  167. package/lib/components/TableCellLayout/TableCellLayout.types.js +1 -2
  168. package/lib/components/TableCellLayout/TableCellLayout.types.js.map +1 -1
  169. package/lib/components/TableCellLayout/index.js +0 -1
  170. package/lib/components/TableCellLayout/index.js.map +1 -1
  171. package/lib/components/TableCellLayout/renderTableCellLayout.js +6 -11
  172. package/lib/components/TableCellLayout/renderTableCellLayout.js.map +1 -1
  173. package/lib/components/TableCellLayout/useTableCellLayout.js +30 -34
  174. package/lib/components/TableCellLayout/useTableCellLayout.js.map +1 -1
  175. package/lib/components/TableCellLayout/useTableCellLayoutContextValues.js +9 -10
  176. package/lib/components/TableCellLayout/useTableCellLayoutContextValues.js.map +1 -1
  177. package/lib/components/TableCellLayout/useTableCellLayoutStyles.styles.js.map +1 -1
  178. package/lib/components/TableHeader/TableHeader.js +5 -7
  179. package/lib/components/TableHeader/TableHeader.js.map +1 -1
  180. package/lib/components/TableHeader/TableHeader.types.js +1 -2
  181. package/lib/components/TableHeader/TableHeader.types.js.map +1 -1
  182. package/lib/components/TableHeader/index.js +0 -1
  183. package/lib/components/TableHeader/index.js.map +1 -1
  184. package/lib/components/TableHeader/renderTableHeader.js +6 -11
  185. package/lib/components/TableHeader/renderTableHeader.js.map +1 -1
  186. package/lib/components/TableHeader/useTableHeader.js +15 -19
  187. package/lib/components/TableHeader/useTableHeader.js.map +1 -1
  188. package/lib/components/TableHeader/useTableHeaderStyles.styles.js.map +1 -1
  189. package/lib/components/TableHeaderCell/TableHeaderCell.js +5 -7
  190. package/lib/components/TableHeaderCell/TableHeaderCell.js.map +1 -1
  191. package/lib/components/TableHeaderCell/TableHeaderCell.types.js +1 -2
  192. package/lib/components/TableHeaderCell/TableHeaderCell.types.js.map +1 -1
  193. package/lib/components/TableHeaderCell/index.js +0 -1
  194. package/lib/components/TableHeaderCell/index.js.map +1 -1
  195. package/lib/components/TableHeaderCell/renderTableHeaderCell.js +4 -9
  196. package/lib/components/TableHeaderCell/renderTableHeaderCell.js.map +1 -1
  197. package/lib/components/TableHeaderCell/useTableHeaderCell.js +45 -52
  198. package/lib/components/TableHeaderCell/useTableHeaderCell.js.map +1 -1
  199. package/lib/components/TableHeaderCell/useTableHeaderCellStyles.styles.js +11 -2
  200. package/lib/components/TableHeaderCell/useTableHeaderCellStyles.styles.js.map +1 -1
  201. package/lib/components/TableResizeHandle/TableResizeHandle.js +5 -7
  202. package/lib/components/TableResizeHandle/TableResizeHandle.js.map +1 -1
  203. package/lib/components/TableResizeHandle/TableResizeHandle.types.js +1 -2
  204. package/lib/components/TableResizeHandle/TableResizeHandle.types.js.map +1 -1
  205. package/lib/components/TableResizeHandle/index.js +0 -1
  206. package/lib/components/TableResizeHandle/index.js.map +1 -1
  207. package/lib/components/TableResizeHandle/renderTableResizeHandle.js +4 -9
  208. package/lib/components/TableResizeHandle/renderTableResizeHandle.js.map +1 -1
  209. package/lib/components/TableResizeHandle/useTableResizeHandle.js +16 -18
  210. package/lib/components/TableResizeHandle/useTableResizeHandle.js.map +1 -1
  211. package/lib/components/TableResizeHandle/useTableResizeHandleStyles.styles.js.map +1 -1
  212. package/lib/components/TableRow/TableRow.js +5 -7
  213. package/lib/components/TableRow/TableRow.js.map +1 -1
  214. package/lib/components/TableRow/TableRow.types.js +1 -2
  215. package/lib/components/TableRow/TableRow.types.js.map +1 -1
  216. package/lib/components/TableRow/index.js +0 -1
  217. package/lib/components/TableRow/index.js.map +1 -1
  218. package/lib/components/TableRow/renderTableRow.js +4 -9
  219. package/lib/components/TableRow/renderTableRow.js.map +1 -1
  220. package/lib/components/TableRow/useTableRow.js +22 -27
  221. package/lib/components/TableRow/useTableRow.js.map +1 -1
  222. package/lib/components/TableRow/useTableRowStyles.styles.js +6 -8
  223. package/lib/components/TableRow/useTableRowStyles.styles.js.map +1 -1
  224. package/lib/components/TableSelectionCell/TableSelectionCell.js +5 -7
  225. package/lib/components/TableSelectionCell/TableSelectionCell.js.map +1 -1
  226. package/lib/components/TableSelectionCell/TableSelectionCell.types.js +1 -2
  227. package/lib/components/TableSelectionCell/TableSelectionCell.types.js.map +1 -1
  228. package/lib/components/TableSelectionCell/index.js +0 -1
  229. package/lib/components/TableSelectionCell/index.js.map +1 -1
  230. package/lib/components/TableSelectionCell/renderTableSelectionCell.js +4 -9
  231. package/lib/components/TableSelectionCell/renderTableSelectionCell.js.map +1 -1
  232. package/lib/components/TableSelectionCell/useTableSelectionCell.js +32 -41
  233. package/lib/components/TableSelectionCell/useTableSelectionCell.js.map +1 -1
  234. package/lib/components/TableSelectionCell/useTableSelectionCellStyles.styles.js.map +1 -1
  235. package/lib/contexts/columnIdContext.js +2 -3
  236. package/lib/contexts/columnIdContext.js.map +1 -1
  237. package/lib/contexts/dataGridContext.js +7 -8
  238. package/lib/contexts/dataGridContext.js.map +1 -1
  239. package/lib/contexts/rowIdContext.js +2 -3
  240. package/lib/contexts/rowIdContext.js.map +1 -1
  241. package/lib/contexts/tableContext.js +5 -6
  242. package/lib/contexts/tableContext.js.map +1 -1
  243. package/lib/contexts/tableHeaderContext.js +2 -3
  244. package/lib/contexts/tableHeaderContext.js.map +1 -1
  245. package/lib/hooks/createColumn.js +21 -28
  246. package/lib/hooks/createColumn.js.map +1 -1
  247. package/lib/hooks/index.js +0 -1
  248. package/lib/hooks/index.js.map +1 -1
  249. package/lib/hooks/selectionManager.js +71 -68
  250. package/lib/hooks/selectionManager.js.map +1 -1
  251. package/lib/hooks/types.js +0 -1
  252. package/lib/hooks/types.js.map +1 -1
  253. package/lib/hooks/useKeyboardResizing.js +96 -87
  254. package/lib/hooks/useKeyboardResizing.js.map +1 -1
  255. package/lib/hooks/useMeasureElement.js +42 -40
  256. package/lib/hooks/useMeasureElement.js.map +1 -1
  257. package/lib/hooks/useTableColumnResizeMouseHandler.js +64 -61
  258. package/lib/hooks/useTableColumnResizeMouseHandler.js.map +1 -1
  259. package/lib/hooks/useTableColumnResizeState.js +100 -105
  260. package/lib/hooks/useTableColumnResizeState.js.map +1 -1
  261. package/lib/hooks/useTableColumnSizing.js +74 -74
  262. package/lib/hooks/useTableColumnSizing.js.map +1 -1
  263. package/lib/hooks/useTableFeatures.js +30 -35
  264. package/lib/hooks/useTableFeatures.js.map +1 -1
  265. package/lib/hooks/useTableSelection.js +64 -66
  266. package/lib/hooks/useTableSelection.js.map +1 -1
  267. package/lib/hooks/useTableSort.js +68 -76
  268. package/lib/hooks/useTableSort.js.map +1 -1
  269. package/lib/index.js +1 -2
  270. package/lib/index.js.map +1 -1
  271. package/lib/utils/columnResizeUtils.js +104 -108
  272. package/lib/utils/columnResizeUtils.js.map +1 -1
  273. package/lib-commonjs/DataGrid.js +0 -3
  274. package/lib-commonjs/DataGrid.js.map +1 -1
  275. package/lib-commonjs/DataGridBody.js +0 -3
  276. package/lib-commonjs/DataGridBody.js.map +1 -1
  277. package/lib-commonjs/DataGridCell.js +0 -3
  278. package/lib-commonjs/DataGridCell.js.map +1 -1
  279. package/lib-commonjs/DataGridHeader.js +0 -3
  280. package/lib-commonjs/DataGridHeader.js.map +1 -1
  281. package/lib-commonjs/DataGridHeaderCell.js +0 -3
  282. package/lib-commonjs/DataGridHeaderCell.js.map +1 -1
  283. package/lib-commonjs/DataGridRow.js +0 -3
  284. package/lib-commonjs/DataGridRow.js.map +1 -1
  285. package/lib-commonjs/DataGridSelectionCell.js +0 -3
  286. package/lib-commonjs/DataGridSelectionCell.js.map +1 -1
  287. package/lib-commonjs/Table.js +0 -3
  288. package/lib-commonjs/Table.js.map +1 -1
  289. package/lib-commonjs/TableBody.js +0 -3
  290. package/lib-commonjs/TableBody.js.map +1 -1
  291. package/lib-commonjs/TableCell.js +0 -3
  292. package/lib-commonjs/TableCell.js.map +1 -1
  293. package/lib-commonjs/TableCellActions.js +0 -3
  294. package/lib-commonjs/TableCellActions.js.map +1 -1
  295. package/lib-commonjs/TableCellLayout.js +0 -3
  296. package/lib-commonjs/TableCellLayout.js.map +1 -1
  297. package/lib-commonjs/TableCellPrimaryLayout.js +0 -3
  298. package/lib-commonjs/TableCellPrimaryLayout.js.map +1 -1
  299. package/lib-commonjs/TableHeader.js +0 -3
  300. package/lib-commonjs/TableHeader.js.map +1 -1
  301. package/lib-commonjs/TableHeaderCell.js +0 -3
  302. package/lib-commonjs/TableHeaderCell.js.map +1 -1
  303. package/lib-commonjs/TableResizeHandle.js +0 -3
  304. package/lib-commonjs/TableResizeHandle.js.map +1 -1
  305. package/lib-commonjs/TableRow.js +0 -3
  306. package/lib-commonjs/TableRow.js.map +1 -1
  307. package/lib-commonjs/TableSelectionCell.js +0 -3
  308. package/lib-commonjs/TableSelectionCell.js.map +1 -1
  309. package/lib-commonjs/components/DataGrid/DataGrid.js +1 -3
  310. package/lib-commonjs/components/DataGrid/DataGrid.js.map +1 -1
  311. package/lib-commonjs/components/DataGrid/DataGrid.types.js +0 -3
  312. package/lib-commonjs/components/DataGrid/DataGrid.types.js.map +1 -1
  313. package/lib-commonjs/components/DataGrid/index.js +0 -3
  314. package/lib-commonjs/components/DataGrid/index.js.map +1 -1
  315. package/lib-commonjs/components/DataGrid/renderDataGrid.js +1 -3
  316. package/lib-commonjs/components/DataGrid/renderDataGrid.js.map +1 -1
  317. package/lib-commonjs/components/DataGrid/useDataGrid.js +4 -5
  318. package/lib-commonjs/components/DataGrid/useDataGrid.js.map +1 -1
  319. package/lib-commonjs/components/DataGrid/useDataGridContextValues.js +1 -3
  320. package/lib-commonjs/components/DataGrid/useDataGridContextValues.js.map +1 -1
  321. package/lib-commonjs/components/DataGrid/useDataGridStyles.styles.js +0 -2
  322. package/lib-commonjs/components/DataGrid/useDataGridStyles.styles.js.map +1 -1
  323. package/lib-commonjs/components/DataGridBody/DataGridBody.js +1 -3
  324. package/lib-commonjs/components/DataGridBody/DataGridBody.js.map +1 -1
  325. package/lib-commonjs/components/DataGridBody/DataGridBody.types.js +0 -3
  326. package/lib-commonjs/components/DataGridBody/DataGridBody.types.js.map +1 -1
  327. package/lib-commonjs/components/DataGridBody/index.js +0 -3
  328. package/lib-commonjs/components/DataGridBody/index.js.map +1 -1
  329. package/lib-commonjs/components/DataGridBody/renderDataGridBody.js +1 -3
  330. package/lib-commonjs/components/DataGridBody/renderDataGridBody.js.map +1 -1
  331. package/lib-commonjs/components/DataGridBody/useDataGridBody.js +1 -3
  332. package/lib-commonjs/components/DataGridBody/useDataGridBody.js.map +1 -1
  333. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.styles.js +0 -2
  334. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.styles.js.map +1 -1
  335. package/lib-commonjs/components/DataGridCell/DataGridCell.js +1 -3
  336. package/lib-commonjs/components/DataGridCell/DataGridCell.js.map +1 -1
  337. package/lib-commonjs/components/DataGridCell/DataGridCell.types.js +0 -3
  338. package/lib-commonjs/components/DataGridCell/DataGridCell.types.js.map +1 -1
  339. package/lib-commonjs/components/DataGridCell/index.js +0 -3
  340. package/lib-commonjs/components/DataGridCell/index.js.map +1 -1
  341. package/lib-commonjs/components/DataGridCell/renderDataGridCell.js +1 -3
  342. package/lib-commonjs/components/DataGridCell/renderDataGridCell.js.map +1 -1
  343. package/lib-commonjs/components/DataGridCell/useDataGridCell.js +7 -3
  344. package/lib-commonjs/components/DataGridCell/useDataGridCell.js.map +1 -1
  345. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.styles.js +0 -2
  346. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.styles.js.map +1 -1
  347. package/lib-commonjs/components/DataGridHeader/DataGridHeader.js +1 -3
  348. package/lib-commonjs/components/DataGridHeader/DataGridHeader.js.map +1 -1
  349. package/lib-commonjs/components/DataGridHeader/DataGridHeader.types.js +0 -3
  350. package/lib-commonjs/components/DataGridHeader/DataGridHeader.types.js.map +1 -1
  351. package/lib-commonjs/components/DataGridHeader/index.js +0 -3
  352. package/lib-commonjs/components/DataGridHeader/index.js.map +1 -1
  353. package/lib-commonjs/components/DataGridHeader/renderDataGridHeader.js +1 -3
  354. package/lib-commonjs/components/DataGridHeader/renderDataGridHeader.js.map +1 -1
  355. package/lib-commonjs/components/DataGridHeader/useDataGridHeader.js +1 -3
  356. package/lib-commonjs/components/DataGridHeader/useDataGridHeader.js.map +1 -1
  357. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.styles.js +0 -2
  358. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.styles.js.map +1 -1
  359. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.js +1 -3
  360. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.js.map +1 -1
  361. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.types.js +0 -3
  362. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.types.js.map +1 -1
  363. package/lib-commonjs/components/DataGridHeaderCell/index.js +0 -3
  364. package/lib-commonjs/components/DataGridHeaderCell/index.js.map +1 -1
  365. package/lib-commonjs/components/DataGridHeaderCell/renderDataGridHeaderCell.js +1 -3
  366. package/lib-commonjs/components/DataGridHeaderCell/renderDataGridHeaderCell.js.map +1 -1
  367. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCell.js +2 -3
  368. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCell.js.map +1 -1
  369. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.js +0 -2
  370. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.js.map +1 -1
  371. package/lib-commonjs/components/DataGridRow/DataGridRow.js +1 -3
  372. package/lib-commonjs/components/DataGridRow/DataGridRow.js.map +1 -1
  373. package/lib-commonjs/components/DataGridRow/DataGridRow.types.js +0 -3
  374. package/lib-commonjs/components/DataGridRow/DataGridRow.types.js.map +1 -1
  375. package/lib-commonjs/components/DataGridRow/index.js +0 -3
  376. package/lib-commonjs/components/DataGridRow/index.js.map +1 -1
  377. package/lib-commonjs/components/DataGridRow/renderDataGridRow.js +1 -3
  378. package/lib-commonjs/components/DataGridRow/renderDataGridRow.js.map +1 -1
  379. package/lib-commonjs/components/DataGridRow/useDataGridRow.js +1 -3
  380. package/lib-commonjs/components/DataGridRow/useDataGridRow.js.map +1 -1
  381. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.styles.js +0 -2
  382. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.styles.js.map +1 -1
  383. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.js +1 -3
  384. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.js.map +1 -1
  385. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.types.js +0 -3
  386. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.types.js.map +1 -1
  387. package/lib-commonjs/components/DataGridSelectionCell/index.js +0 -3
  388. package/lib-commonjs/components/DataGridSelectionCell/index.js.map +1 -1
  389. package/lib-commonjs/components/DataGridSelectionCell/renderDataGridSelectionCell.js +1 -3
  390. package/lib-commonjs/components/DataGridSelectionCell/renderDataGridSelectionCell.js.map +1 -1
  391. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCell.js +1 -3
  392. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCell.js.map +1 -1
  393. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.js +0 -2
  394. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.js.map +1 -1
  395. package/lib-commonjs/components/Table/Table.js +1 -3
  396. package/lib-commonjs/components/Table/Table.js.map +1 -1
  397. package/lib-commonjs/components/Table/Table.types.js +0 -3
  398. package/lib-commonjs/components/Table/Table.types.js.map +1 -1
  399. package/lib-commonjs/components/Table/index.js +0 -3
  400. package/lib-commonjs/components/Table/index.js.map +1 -1
  401. package/lib-commonjs/components/Table/renderTable.js +1 -3
  402. package/lib-commonjs/components/Table/renderTable.js.map +1 -1
  403. package/lib-commonjs/components/Table/useTable.js +1 -3
  404. package/lib-commonjs/components/Table/useTable.js.map +1 -1
  405. package/lib-commonjs/components/Table/useTableContextValues.js +1 -3
  406. package/lib-commonjs/components/Table/useTableContextValues.js.map +1 -1
  407. package/lib-commonjs/components/Table/useTableStyles.styles.js +0 -2
  408. package/lib-commonjs/components/Table/useTableStyles.styles.js.map +1 -1
  409. package/lib-commonjs/components/TableBody/TableBody.js +1 -3
  410. package/lib-commonjs/components/TableBody/TableBody.js.map +1 -1
  411. package/lib-commonjs/components/TableBody/TableBody.types.js +0 -3
  412. package/lib-commonjs/components/TableBody/TableBody.types.js.map +1 -1
  413. package/lib-commonjs/components/TableBody/index.js +0 -3
  414. package/lib-commonjs/components/TableBody/index.js.map +1 -1
  415. package/lib-commonjs/components/TableBody/renderTableBody.js +1 -3
  416. package/lib-commonjs/components/TableBody/renderTableBody.js.map +1 -1
  417. package/lib-commonjs/components/TableBody/useTableBody.js +1 -3
  418. package/lib-commonjs/components/TableBody/useTableBody.js.map +1 -1
  419. package/lib-commonjs/components/TableBody/useTableBodyStyles.styles.js +0 -2
  420. package/lib-commonjs/components/TableBody/useTableBodyStyles.styles.js.map +1 -1
  421. package/lib-commonjs/components/TableCell/TableCell.js +1 -3
  422. package/lib-commonjs/components/TableCell/TableCell.js.map +1 -1
  423. package/lib-commonjs/components/TableCell/TableCell.types.js +0 -3
  424. package/lib-commonjs/components/TableCell/TableCell.types.js.map +1 -1
  425. package/lib-commonjs/components/TableCell/index.js +0 -3
  426. package/lib-commonjs/components/TableCell/index.js.map +1 -1
  427. package/lib-commonjs/components/TableCell/renderTableCell.js +1 -3
  428. package/lib-commonjs/components/TableCell/renderTableCell.js.map +1 -1
  429. package/lib-commonjs/components/TableCell/useTableCell.js +1 -3
  430. package/lib-commonjs/components/TableCell/useTableCell.js.map +1 -1
  431. package/lib-commonjs/components/TableCell/useTableCellStyles.styles.js +0 -2
  432. package/lib-commonjs/components/TableCell/useTableCellStyles.styles.js.map +1 -1
  433. package/lib-commonjs/components/TableCellActions/TableCellActions.js +1 -3
  434. package/lib-commonjs/components/TableCellActions/TableCellActions.js.map +1 -1
  435. package/lib-commonjs/components/TableCellActions/TableCellActions.types.js +0 -3
  436. package/lib-commonjs/components/TableCellActions/TableCellActions.types.js.map +1 -1
  437. package/lib-commonjs/components/TableCellActions/index.js +0 -3
  438. package/lib-commonjs/components/TableCellActions/index.js.map +1 -1
  439. package/lib-commonjs/components/TableCellActions/renderTableCellActions.js +1 -3
  440. package/lib-commonjs/components/TableCellActions/renderTableCellActions.js.map +1 -1
  441. package/lib-commonjs/components/TableCellActions/useTableCellActions.js +1 -3
  442. package/lib-commonjs/components/TableCellActions/useTableCellActions.js.map +1 -1
  443. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.styles.js +0 -2
  444. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.styles.js.map +1 -1
  445. package/lib-commonjs/components/TableCellLayout/TableCellLayout.js +1 -3
  446. package/lib-commonjs/components/TableCellLayout/TableCellLayout.js.map +1 -1
  447. package/lib-commonjs/components/TableCellLayout/TableCellLayout.types.js +0 -3
  448. package/lib-commonjs/components/TableCellLayout/TableCellLayout.types.js.map +1 -1
  449. package/lib-commonjs/components/TableCellLayout/index.js +0 -3
  450. package/lib-commonjs/components/TableCellLayout/index.js.map +1 -1
  451. package/lib-commonjs/components/TableCellLayout/renderTableCellLayout.js +1 -3
  452. package/lib-commonjs/components/TableCellLayout/renderTableCellLayout.js.map +1 -1
  453. package/lib-commonjs/components/TableCellLayout/useTableCellLayout.js +1 -3
  454. package/lib-commonjs/components/TableCellLayout/useTableCellLayout.js.map +1 -1
  455. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutContextValues.js +1 -3
  456. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutContextValues.js.map +1 -1
  457. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.styles.js +0 -2
  458. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.styles.js.map +1 -1
  459. package/lib-commonjs/components/TableHeader/TableHeader.js +1 -3
  460. package/lib-commonjs/components/TableHeader/TableHeader.js.map +1 -1
  461. package/lib-commonjs/components/TableHeader/TableHeader.types.js +0 -3
  462. package/lib-commonjs/components/TableHeader/TableHeader.types.js.map +1 -1
  463. package/lib-commonjs/components/TableHeader/index.js +0 -3
  464. package/lib-commonjs/components/TableHeader/index.js.map +1 -1
  465. package/lib-commonjs/components/TableHeader/renderTableHeader.js +1 -3
  466. package/lib-commonjs/components/TableHeader/renderTableHeader.js.map +1 -1
  467. package/lib-commonjs/components/TableHeader/useTableHeader.js +1 -3
  468. package/lib-commonjs/components/TableHeader/useTableHeader.js.map +1 -1
  469. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.styles.js +0 -2
  470. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.styles.js.map +1 -1
  471. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.js +1 -3
  472. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.js.map +1 -1
  473. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.types.js +0 -3
  474. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.types.js.map +1 -1
  475. package/lib-commonjs/components/TableHeaderCell/index.js +0 -3
  476. package/lib-commonjs/components/TableHeaderCell/index.js.map +1 -1
  477. package/lib-commonjs/components/TableHeaderCell/renderTableHeaderCell.js +1 -3
  478. package/lib-commonjs/components/TableHeaderCell/renderTableHeaderCell.js.map +1 -1
  479. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCell.js +6 -10
  480. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCell.js.map +1 -1
  481. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.styles.js +29 -3
  482. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.styles.js.map +1 -1
  483. package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.js +1 -3
  484. package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.js.map +1 -1
  485. package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.types.js +0 -3
  486. package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.types.js.map +1 -1
  487. package/lib-commonjs/components/TableResizeHandle/index.js +0 -3
  488. package/lib-commonjs/components/TableResizeHandle/index.js.map +1 -1
  489. package/lib-commonjs/components/TableResizeHandle/renderTableResizeHandle.js +1 -3
  490. package/lib-commonjs/components/TableResizeHandle/renderTableResizeHandle.js.map +1 -1
  491. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandle.js +1 -3
  492. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandle.js.map +1 -1
  493. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.styles.js +0 -2
  494. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.styles.js.map +1 -1
  495. package/lib-commonjs/components/TableRow/TableRow.js +1 -3
  496. package/lib-commonjs/components/TableRow/TableRow.js.map +1 -1
  497. package/lib-commonjs/components/TableRow/TableRow.types.js +0 -3
  498. package/lib-commonjs/components/TableRow/TableRow.types.js.map +1 -1
  499. package/lib-commonjs/components/TableRow/index.js +0 -3
  500. package/lib-commonjs/components/TableRow/index.js.map +1 -1
  501. package/lib-commonjs/components/TableRow/renderTableRow.js +1 -3
  502. package/lib-commonjs/components/TableRow/renderTableRow.js.map +1 -1
  503. package/lib-commonjs/components/TableRow/useTableRow.js +1 -3
  504. package/lib-commonjs/components/TableRow/useTableRow.js.map +1 -1
  505. package/lib-commonjs/components/TableRow/useTableRowStyles.styles.js +12 -13
  506. package/lib-commonjs/components/TableRow/useTableRowStyles.styles.js.map +1 -1
  507. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.js +1 -3
  508. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.js.map +1 -1
  509. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.types.js +0 -3
  510. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.types.js.map +1 -1
  511. package/lib-commonjs/components/TableSelectionCell/index.js +0 -3
  512. package/lib-commonjs/components/TableSelectionCell/index.js.map +1 -1
  513. package/lib-commonjs/components/TableSelectionCell/renderTableSelectionCell.js +1 -3
  514. package/lib-commonjs/components/TableSelectionCell/renderTableSelectionCell.js.map +1 -1
  515. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCell.js +1 -3
  516. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCell.js.map +1 -1
  517. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.styles.js +0 -2
  518. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.styles.js.map +1 -1
  519. package/lib-commonjs/contexts/columnIdContext.js +1 -3
  520. package/lib-commonjs/contexts/columnIdContext.js.map +1 -1
  521. package/lib-commonjs/contexts/dataGridContext.js +2 -4
  522. package/lib-commonjs/contexts/dataGridContext.js.map +1 -1
  523. package/lib-commonjs/contexts/rowIdContext.js +1 -3
  524. package/lib-commonjs/contexts/rowIdContext.js.map +1 -1
  525. package/lib-commonjs/contexts/tableContext.js +1 -3
  526. package/lib-commonjs/contexts/tableContext.js.map +1 -1
  527. package/lib-commonjs/contexts/tableHeaderContext.js +1 -3
  528. package/lib-commonjs/contexts/tableHeaderContext.js.map +1 -1
  529. package/lib-commonjs/hooks/createColumn.js +1 -3
  530. package/lib-commonjs/hooks/createColumn.js.map +1 -1
  531. package/lib-commonjs/hooks/index.js +0 -3
  532. package/lib-commonjs/hooks/index.js.map +1 -1
  533. package/lib-commonjs/hooks/selectionManager.js +1 -3
  534. package/lib-commonjs/hooks/selectionManager.js.map +1 -1
  535. package/lib-commonjs/hooks/types.js +0 -3
  536. package/lib-commonjs/hooks/types.js.map +1 -1
  537. package/lib-commonjs/hooks/useKeyboardResizing.js +17 -18
  538. package/lib-commonjs/hooks/useKeyboardResizing.js.map +1 -1
  539. package/lib-commonjs/hooks/useMeasureElement.js +1 -3
  540. package/lib-commonjs/hooks/useMeasureElement.js.map +1 -1
  541. package/lib-commonjs/hooks/useTableColumnResizeMouseHandler.js +1 -3
  542. package/lib-commonjs/hooks/useTableColumnResizeMouseHandler.js.map +1 -1
  543. package/lib-commonjs/hooks/useTableColumnResizeState.js +1 -3
  544. package/lib-commonjs/hooks/useTableColumnResizeState.js.map +1 -1
  545. package/lib-commonjs/hooks/useTableColumnSizing.js +10 -7
  546. package/lib-commonjs/hooks/useTableColumnSizing.js.map +1 -1
  547. package/lib-commonjs/hooks/useTableFeatures.js +1 -3
  548. package/lib-commonjs/hooks/useTableFeatures.js.map +1 -1
  549. package/lib-commonjs/hooks/useTableSelection.js +2 -4
  550. package/lib-commonjs/hooks/useTableSelection.js.map +1 -1
  551. package/lib-commonjs/hooks/useTableSort.js +1 -3
  552. package/lib-commonjs/hooks/useTableSort.js.map +1 -1
  553. package/lib-commonjs/index.js +1 -3
  554. package/lib-commonjs/index.js.map +1 -1
  555. package/lib-commonjs/utils/columnResizeUtils.js +1 -3
  556. package/lib-commonjs/utils/columnResizeUtils.js.map +1 -1
  557. package/package.json +16 -14
package/CHANGELOG.json CHANGED
@@ -2,7 +2,199 @@
2
2
  "name": "@fluentui/react-table",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 25 May 2023 09:57:45 GMT",
5
+ "date": "Tue, 20 Jun 2023 12:34:47 GMT",
6
+ "tag": "@fluentui/react-table_v9.4.0",
7
+ "version": "9.4.0",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "miroslav.stastny@microsoft.com",
12
+ "package": "@fluentui/react-table",
13
+ "commit": "7516a6bde1bd7b8c957ca479ffcb0e737e9ca693",
14
+ "comment": "Update table styles to reflect token changes"
15
+ },
16
+ {
17
+ "author": "lingfangao@hotmail.com",
18
+ "package": "@fluentui/react-table",
19
+ "commit": "93620cf72318e14967fcfc15b3debc96ce20b13e",
20
+ "comment": "fix: TableHeaderCell should not render button when not sortable"
21
+ },
22
+ {
23
+ "author": "ololubek@microsoft.com",
24
+ "package": "@fluentui/react-table",
25
+ "commit": "8a5ae3aa00faa327c58887a99a5698b18f2930ee",
26
+ "comment": "chore: update @fluentui/react-icons to 2.0.203"
27
+ }
28
+ ],
29
+ "minor": [
30
+ {
31
+ "author": "jirivyhnalek@microsoft.com",
32
+ "package": "@fluentui/react-table",
33
+ "commit": "54316f1ded96bffa3505140ec68031afd0cebdb6",
34
+ "comment": "DataGrid now exposes containerWidthOffset prop, which is mainly used internally to adjust available space for column resizing based on other props"
35
+ },
36
+ {
37
+ "author": "lingfangao@hotmail.com",
38
+ "package": "@fluentui/react-table",
39
+ "commit": "d33397e28ac542798cfdc4a7b917f1d27db9ed63",
40
+ "comment": "feat: Implement `focusMode` for DataGridCell"
41
+ },
42
+ {
43
+ "author": "beachball",
44
+ "package": "@fluentui/react-table",
45
+ "comment": "Bump @fluentui/react-aria to v9.3.23",
46
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
47
+ },
48
+ {
49
+ "author": "beachball",
50
+ "package": "@fluentui/react-table",
51
+ "comment": "Bump @fluentui/react-avatar to v9.5.6",
52
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
53
+ },
54
+ {
55
+ "author": "beachball",
56
+ "package": "@fluentui/react-table",
57
+ "comment": "Bump @fluentui/react-checkbox to v9.1.18",
58
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
59
+ },
60
+ {
61
+ "author": "beachball",
62
+ "package": "@fluentui/react-table",
63
+ "comment": "Bump @fluentui/react-context-selector to v9.1.23",
64
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
65
+ },
66
+ {
67
+ "author": "beachball",
68
+ "package": "@fluentui/react-table",
69
+ "comment": "Bump @fluentui/react-radio to v9.1.18",
70
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
71
+ },
72
+ {
73
+ "author": "beachball",
74
+ "package": "@fluentui/react-table",
75
+ "comment": "Bump @fluentui/react-shared-contexts to v9.5.1",
76
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
77
+ },
78
+ {
79
+ "author": "beachball",
80
+ "package": "@fluentui/react-table",
81
+ "comment": "Bump @fluentui/react-tabster to v9.8.0",
82
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
83
+ },
84
+ {
85
+ "author": "beachball",
86
+ "package": "@fluentui/react-table",
87
+ "comment": "Bump @fluentui/react-theme to v9.1.9",
88
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
89
+ },
90
+ {
91
+ "author": "beachball",
92
+ "package": "@fluentui/react-table",
93
+ "comment": "Bump @fluentui/react-utilities to v9.9.3",
94
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
95
+ },
96
+ {
97
+ "author": "beachball",
98
+ "package": "@fluentui/react-table",
99
+ "comment": "Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.7",
100
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
101
+ },
102
+ {
103
+ "author": "beachball",
104
+ "package": "@fluentui/react-table",
105
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.23",
106
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
107
+ }
108
+ ]
109
+ }
110
+ },
111
+ {
112
+ "date": "Wed, 31 May 2023 06:46:19 GMT",
113
+ "tag": "@fluentui/react-table_v9.3.0",
114
+ "version": "9.3.0",
115
+ "comments": {
116
+ "minor": [
117
+ {
118
+ "author": "jirivyhnalek@microsoft.com",
119
+ "package": "@fluentui/react-table",
120
+ "commit": "f376f2871a07ce1f0b376de57968c780cdb13e01",
121
+ "comment": "A column header style now reflects if its being resized by keyboard"
122
+ },
123
+ {
124
+ "author": "beachball",
125
+ "package": "@fluentui/react-table",
126
+ "comment": "Bump @fluentui/react-aria to v9.3.22",
127
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
128
+ },
129
+ {
130
+ "author": "beachball",
131
+ "package": "@fluentui/react-table",
132
+ "comment": "Bump @fluentui/react-avatar to v9.5.5",
133
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
134
+ },
135
+ {
136
+ "author": "beachball",
137
+ "package": "@fluentui/react-table",
138
+ "comment": "Bump @fluentui/react-checkbox to v9.1.17",
139
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
140
+ },
141
+ {
142
+ "author": "beachball",
143
+ "package": "@fluentui/react-table",
144
+ "comment": "Bump @fluentui/react-context-selector to v9.1.22",
145
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
146
+ },
147
+ {
148
+ "author": "beachball",
149
+ "package": "@fluentui/react-table",
150
+ "comment": "Bump @fluentui/react-radio to v9.1.17",
151
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
152
+ },
153
+ {
154
+ "author": "beachball",
155
+ "package": "@fluentui/react-table",
156
+ "comment": "Bump @fluentui/react-tabster to v9.7.5",
157
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
158
+ },
159
+ {
160
+ "author": "beachball",
161
+ "package": "@fluentui/react-table",
162
+ "comment": "Bump @fluentui/react-utilities to v9.9.2",
163
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
164
+ },
165
+ {
166
+ "author": "beachball",
167
+ "package": "@fluentui/react-table",
168
+ "comment": "Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.6",
169
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
170
+ },
171
+ {
172
+ "author": "beachball",
173
+ "package": "@fluentui/react-table",
174
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.22",
175
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
176
+ }
177
+ ],
178
+ "none": [
179
+ {
180
+ "author": "martinhochel@microsoft.com",
181
+ "package": "@fluentui/react-table",
182
+ "commit": "4b637ced41e430bf8d79c7fc67c103d5efdfd3a8",
183
+ "comment": "fix: tweak type errors exposed in ts 4.5"
184
+ }
185
+ ],
186
+ "patch": [
187
+ {
188
+ "author": "seanmonahan@microsoft.com",
189
+ "package": "@fluentui/react-table",
190
+ "commit": "d640b972d7ac86bfb76ae6c6329f12cdd33b3b7c",
191
+ "comment": "chore: Update Griffel to v1.5.7."
192
+ }
193
+ ]
194
+ }
195
+ },
196
+ {
197
+ "date": "Thu, 25 May 2023 10:00:48 GMT",
6
198
  "tag": "@fluentui/react-table_v9.2.12",
7
199
  "version": "9.2.12",
8
200
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,61 @@
1
1
  # Change Log - @fluentui/react-table
2
2
 
3
- This log was last generated on Thu, 25 May 2023 09:57:45 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 20 Jun 2023 12:34:47 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.4.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-table_v9.4.0)
8
+
9
+ Tue, 20 Jun 2023 12:34:47 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-table_v9.3.0..@fluentui/react-table_v9.4.0)
11
+
12
+ ### Minor changes
13
+
14
+ - DataGrid now exposes containerWidthOffset prop, which is mainly used internally to adjust available space for column resizing based on other props ([PR #27983](https://github.com/microsoft/fluentui/pull/27983) by jirivyhnalek@microsoft.com)
15
+ - feat: Implement `focusMode` for DataGridCell ([PR #28167](https://github.com/microsoft/fluentui/pull/28167) by lingfangao@hotmail.com)
16
+ - Bump @fluentui/react-aria to v9.3.23 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
17
+ - Bump @fluentui/react-avatar to v9.5.6 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
18
+ - Bump @fluentui/react-checkbox to v9.1.18 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
19
+ - Bump @fluentui/react-context-selector to v9.1.23 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
20
+ - Bump @fluentui/react-radio to v9.1.18 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
21
+ - Bump @fluentui/react-shared-contexts to v9.5.1 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
22
+ - Bump @fluentui/react-tabster to v9.8.0 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
23
+ - Bump @fluentui/react-theme to v9.1.9 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
24
+ - Bump @fluentui/react-utilities to v9.9.3 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
25
+ - Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.7 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
26
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.23 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
27
+
28
+ ### Patches
29
+
30
+ - Update table styles to reflect token changes ([PR #27791](https://github.com/microsoft/fluentui/pull/27791) by miroslav.stastny@microsoft.com)
31
+ - fix: TableHeaderCell should not render button when not sortable ([PR #28097](https://github.com/microsoft/fluentui/pull/28097) by lingfangao@hotmail.com)
32
+ - chore: update @fluentui/react-icons to 2.0.203 ([PR #28203](https://github.com/microsoft/fluentui/pull/28203) by ololubek@microsoft.com)
33
+
34
+ ## [9.3.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-table_v9.3.0)
35
+
36
+ Wed, 31 May 2023 06:46:19 GMT
37
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-table_v9.2.12..@fluentui/react-table_v9.3.0)
38
+
39
+ ### Minor changes
40
+
41
+ - A column header style now reflects if its being resized by keyboard ([PR #27953](https://github.com/microsoft/fluentui/pull/27953) by jirivyhnalek@microsoft.com)
42
+ - Bump @fluentui/react-aria to v9.3.22 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
43
+ - Bump @fluentui/react-avatar to v9.5.5 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
44
+ - Bump @fluentui/react-checkbox to v9.1.17 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
45
+ - Bump @fluentui/react-context-selector to v9.1.22 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
46
+ - Bump @fluentui/react-radio to v9.1.17 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
47
+ - Bump @fluentui/react-tabster to v9.7.5 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
48
+ - Bump @fluentui/react-utilities to v9.9.2 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
49
+ - Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.6 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
50
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.22 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
51
+
52
+ ### Patches
53
+
54
+ - chore: Update Griffel to v1.5.7. ([PR #27925](https://github.com/microsoft/fluentui/pull/27925) by seanmonahan@microsoft.com)
55
+
7
56
  ## [9.2.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-table_v9.2.12)
8
57
 
9
- Thu, 25 May 2023 09:57:45 GMT
58
+ Thu, 25 May 2023 10:00:48 GMT
10
59
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-table_v9.2.11..@fluentui/react-table_v9.2.12)
11
60
 
12
61
  ### Patches
package/dist/index.d.ts CHANGED
@@ -85,7 +85,13 @@ export declare const dataGridCellClassNames: SlotClassNames<DataGridCellSlots>;
85
85
  /**
86
86
  * DataGridCell Props
87
87
  */
88
- export declare type DataGridCellProps = TableCellProps;
88
+ export declare type DataGridCellProps = TableCellProps & {
89
+ /**
90
+ * Used when there are nested focusble elements inside a focusable cell
91
+ * - `group`: Enter keypress moves focus inside the cell, focus is trapped inside the cell until Escape keypress
92
+ */
93
+ focusMode?: 'group';
94
+ };
89
95
 
90
96
  export declare type DataGridCellSlots = TableCellSlots;
91
97
 
@@ -189,6 +195,12 @@ export declare type DataGridProps = TableProps & Pick<DataGridContextValue, 'ite
189
195
  columnId: TableColumnId;
190
196
  width: number;
191
197
  }) => void;
198
+ /**
199
+ * For column resizing. Allows for a container size to be adjusted by a number of pixels, to make
200
+ * sure the columns don't overflow the table.
201
+ * By default, this value is calculated internally based on other props, but can be overriden.
202
+ */
203
+ containerWidthOffset?: number;
192
204
  };
193
205
 
194
206
  /**
@@ -359,6 +371,8 @@ declare interface SortState {
359
371
  */
360
372
  export declare const Table: ForwardRefComponent<TableProps>;
361
373
 
374
+ export declare const TABLE_SELECTION_CELL_WIDTH = 44;
375
+
362
376
  /**
363
377
  * TableBody component
364
378
  */
package/lib/DataGrid.js CHANGED
@@ -1,2 +1 @@
1
1
  export * from './components/DataGrid/index';
2
- //# sourceMappingURL=DataGrid.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/DataGrid.ts"],"sourcesContent":["export * from './components/DataGrid/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["DataGrid.ts"],"sourcesContent":["export * from './components/DataGrid/index';\n"],"names":[],"mappings":"AAAA,cAAc,8BAA8B"}
@@ -1,2 +1 @@
1
1
  export * from './components/DataGridBody/index';
2
- //# sourceMappingURL=DataGridBody.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/DataGridBody.ts"],"sourcesContent":["export * from './components/DataGridBody/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["DataGridBody.ts"],"sourcesContent":["export * from './components/DataGridBody/index';\n"],"names":[],"mappings":"AAAA,cAAc,kCAAkC"}
@@ -1,2 +1 @@
1
1
  export * from './components/DataGridCell/index';
2
- //# sourceMappingURL=DataGridCell.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/DataGridCell.ts"],"sourcesContent":["export * from './components/DataGridCell/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["DataGridCell.ts"],"sourcesContent":["export * from './components/DataGridCell/index';\n"],"names":[],"mappings":"AAAA,cAAc,kCAAkC"}
@@ -1,2 +1 @@
1
1
  export * from './components/DataGridHeader/index';
2
- //# sourceMappingURL=DataGridHeader.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/DataGridHeader.ts"],"sourcesContent":["export * from './components/DataGridHeader/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["DataGridHeader.ts"],"sourcesContent":["export * from './components/DataGridHeader/index';\n"],"names":[],"mappings":"AAAA,cAAc,oCAAoC"}
@@ -1,2 +1 @@
1
1
  export * from './components/DataGridHeaderCell/index';
2
- //# sourceMappingURL=DataGridHeaderCell.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/DataGridHeaderCell.ts"],"sourcesContent":["export * from './components/DataGridHeaderCell/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["DataGridHeaderCell.ts"],"sourcesContent":["export * from './components/DataGridHeaderCell/index';\n"],"names":[],"mappings":"AAAA,cAAc,wCAAwC"}
@@ -1,2 +1 @@
1
1
  export * from './components/DataGridRow/index';
2
- //# sourceMappingURL=DataGridRow.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/DataGridRow.ts"],"sourcesContent":["export * from './components/DataGridRow/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["DataGridRow.ts"],"sourcesContent":["export * from './components/DataGridRow/index';\n"],"names":[],"mappings":"AAAA,cAAc,iCAAiC"}
@@ -1,2 +1 @@
1
1
  export * from './components/DataGridSelectionCell/index';
2
- //# sourceMappingURL=DataGridSelectionCell.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/DataGridSelectionCell.ts"],"sourcesContent":["export * from './components/DataGridSelectionCell/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["DataGridSelectionCell.ts"],"sourcesContent":["export * from './components/DataGridSelectionCell/index';\n"],"names":[],"mappings":"AAAA,cAAc,2CAA2C"}
package/lib/Table.js CHANGED
@@ -1,2 +1 @@
1
1
  export * from './components/Table/index';
2
- //# sourceMappingURL=Table.js.map
package/lib/Table.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/Table.ts"],"sourcesContent":["export * from './components/Table/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["Table.ts"],"sourcesContent":["export * from './components/Table/index';\n"],"names":[],"mappings":"AAAA,cAAc,2BAA2B"}
package/lib/TableBody.js CHANGED
@@ -1,2 +1 @@
1
1
  export * from './components/TableBody/index';
2
- //# sourceMappingURL=TableBody.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/TableBody.ts"],"sourcesContent":["export * from './components/TableBody/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["TableBody.ts"],"sourcesContent":["export * from './components/TableBody/index';\n"],"names":[],"mappings":"AAAA,cAAc,+BAA+B"}
package/lib/TableCell.js CHANGED
@@ -1,2 +1 @@
1
1
  export * from './components/TableCell/index';
2
- //# sourceMappingURL=TableCell.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/TableCell.ts"],"sourcesContent":["export * from './components/TableCell/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["TableCell.ts"],"sourcesContent":["export * from './components/TableCell/index';\n"],"names":[],"mappings":"AAAA,cAAc,+BAA+B"}
@@ -1,2 +1 @@
1
1
  export * from './components/TableCellActions/index';
2
- //# sourceMappingURL=TableCellActions.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/TableCellActions.ts"],"sourcesContent":["export * from './components/TableCellActions/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["TableCellActions.ts"],"sourcesContent":["export * from './components/TableCellActions/index';\n"],"names":[],"mappings":"AAAA,cAAc,sCAAsC"}
@@ -1,2 +1 @@
1
1
  export * from './components/TableCellLayout/index';
2
- //# sourceMappingURL=TableCellLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/TableCellLayout.ts"],"sourcesContent":["export * from './components/TableCellLayout/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["TableCellLayout.ts"],"sourcesContent":["export * from './components/TableCellLayout/index';\n"],"names":[],"mappings":"AAAA,cAAc,qCAAqC"}
@@ -1,2 +1 @@
1
1
  export * from './components/TableCellLayout/index';
2
- //# sourceMappingURL=TableCellPrimaryLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/TableCellPrimaryLayout.ts"],"sourcesContent":["export * from './components/TableCellLayout/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["TableCellPrimaryLayout.ts"],"sourcesContent":["export * from './components/TableCellLayout/index';\n"],"names":[],"mappings":"AAAA,cAAc,qCAAqC"}
@@ -1,2 +1 @@
1
1
  export * from './components/TableHeader/index';
2
- //# sourceMappingURL=TableHeader.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/TableHeader.ts"],"sourcesContent":["export * from './components/TableHeader/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["TableHeader.ts"],"sourcesContent":["export * from './components/TableHeader/index';\n"],"names":[],"mappings":"AAAA,cAAc,iCAAiC"}
@@ -1,2 +1 @@
1
1
  export * from './components/TableHeaderCell/index';
2
- //# sourceMappingURL=TableHeaderCell.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/TableHeaderCell.ts"],"sourcesContent":["export * from './components/TableHeaderCell/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["TableHeaderCell.ts"],"sourcesContent":["export * from './components/TableHeaderCell/index';\n"],"names":[],"mappings":"AAAA,cAAc,qCAAqC"}
@@ -1,2 +1 @@
1
1
  export * from './components/TableResizeHandle/index';
2
- //# sourceMappingURL=TableResizeHandle.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/TableResizeHandle.ts"],"sourcesContent":["export * from './components/TableResizeHandle/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["TableResizeHandle.ts"],"sourcesContent":["export * from './components/TableResizeHandle/index';\n"],"names":[],"mappings":"AAAA,cAAc,uCAAuC"}
package/lib/TableRow.js CHANGED
@@ -1,2 +1 @@
1
1
  export * from './components/TableRow/index';
2
- //# sourceMappingURL=TableRow.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/TableRow.ts"],"sourcesContent":["export * from './components/TableRow/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["TableRow.ts"],"sourcesContent":["export * from './components/TableRow/index';\n"],"names":[],"mappings":"AAAA,cAAc,8BAA8B"}
@@ -1,2 +1 @@
1
1
  export * from './components/TableSelectionCell/index';
2
- //# sourceMappingURL=TableSelectionCell.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/TableSelectionCell.ts"],"sourcesContent":["export * from './components/TableSelectionCell/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["TableSelectionCell.ts"],"sourcesContent":["export * from './components/TableSelectionCell/index';\n"],"names":[],"mappings":"AAAA,cAAc,wCAAwC"}
@@ -6,12 +6,10 @@ import { useDataGridContextValues_unstable } from './useDataGridContextValues';
6
6
  import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
7
7
  /**
8
8
  * DataGrid component
9
- */
10
- export const DataGrid = /*#__PURE__*/React.forwardRef((props, ref) => {
11
- const state = useDataGrid_unstable(props, ref);
12
- useDataGridStyles_unstable(state);
13
- useCustomStyleHook_unstable('useDataGridStyles_unstable')(state);
14
- return renderDataGrid_unstable(state, useDataGridContextValues_unstable(state));
9
+ */ export const DataGrid = /*#__PURE__*/ React.forwardRef((props, ref)=>{
10
+ const state = useDataGrid_unstable(props, ref);
11
+ useDataGridStyles_unstable(state);
12
+ useCustomStyleHook_unstable('useDataGridStyles_unstable')(state);
13
+ return renderDataGrid_unstable(state, useDataGridContextValues_unstable(state));
15
14
  });
16
15
  DataGrid.displayName = 'DataGrid';
17
- //# sourceMappingURL=DataGrid.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","useDataGrid_unstable","renderDataGrid_unstable","useDataGridStyles_unstable","useDataGridContextValues_unstable","useCustomStyleHook_unstable","DataGrid","forwardRef","props","ref","state","displayName"],"sources":["../../../src/components/DataGrid/DataGrid.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useDataGrid_unstable } from './useDataGrid';\nimport { renderDataGrid_unstable } from './renderDataGrid';\nimport { useDataGridStyles_unstable } from './useDataGridStyles.styles';\nimport type { DataGridProps } from './DataGrid.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useDataGridContextValues_unstable } from './useDataGridContextValues';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * DataGrid component\n */\nexport const DataGrid: ForwardRefComponent<DataGridProps> = React.forwardRef((props, ref) => {\n const state = useDataGrid_unstable(props, ref);\n\n useDataGridStyles_unstable(state);\n\n useCustomStyleHook_unstable('useDataGridStyles_unstable')(state);\n\n return renderDataGrid_unstable(state, useDataGridContextValues_unstable(state));\n});\n\nDataGrid.displayName = 'DataGrid';\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,oBAAoB,QAAQ;AACrC,SAASC,uBAAuB,QAAQ;AACxC,SAASC,0BAA0B,QAAQ;AAG3C,SAASC,iCAAiC,QAAQ;AAClD,SAASC,2BAA2B,QAAQ;AAE5C;;;AAGA,OAAO,MAAMC,QAAA,gBAA+CN,KAAA,CAAMO,UAAU,CAAC,CAACC,KAAA,EAAOC,GAAA,KAAQ;EAC3F,MAAMC,KAAA,GAAQT,oBAAA,CAAqBO,KAAA,EAAOC,GAAA;EAE1CN,0BAAA,CAA2BO,KAAA;EAE3BL,2BAAA,CAA4B,8BAA8BK,KAAA;EAE1D,OAAOR,uBAAA,CAAwBQ,KAAA,EAAON,iCAAA,CAAkCM,KAAA;AAC1E;AAEAJ,QAAA,CAASK,WAAW,GAAG"}
1
+ {"version":3,"sources":["DataGrid.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useDataGrid_unstable } from './useDataGrid';\nimport { renderDataGrid_unstable } from './renderDataGrid';\nimport { useDataGridStyles_unstable } from './useDataGridStyles.styles';\nimport type { DataGridProps } from './DataGrid.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useDataGridContextValues_unstable } from './useDataGridContextValues';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * DataGrid component\n */\nexport const DataGrid: ForwardRefComponent<DataGridProps> = React.forwardRef((props, ref) => {\n const state = useDataGrid_unstable(props, ref);\n\n useDataGridStyles_unstable(state);\n\n useCustomStyleHook_unstable('useDataGridStyles_unstable')(state);\n\n return renderDataGrid_unstable(state, useDataGridContextValues_unstable(state));\n});\n\nDataGrid.displayName = 'DataGrid';\n"],"names":["React","useDataGrid_unstable","renderDataGrid_unstable","useDataGridStyles_unstable","useDataGridContextValues_unstable","useCustomStyleHook_unstable","DataGrid","forwardRef","props","ref","state","displayName"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,oBAAoB,QAAQ,gBAAgB;AACrD,SAASC,uBAAuB,QAAQ,mBAAmB;AAC3D,SAASC,0BAA0B,QAAQ,6BAA6B;AAGxE,SAASC,iCAAiC,QAAQ,6BAA6B;AAC/E,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E;;CAEC,GACD,OAAO,MAAMC,yBAA+CN,MAAMO,UAAU,CAAC,CAACC,OAAOC,MAAQ;IAC3F,MAAMC,QAAQT,qBAAqBO,OAAOC;IAE1CN,2BAA2BO;IAE3BL,4BAA4B,8BAA8BK;IAE1D,OAAOR,wBAAwBQ,OAAON,kCAAkCM;AAC1E,GAAG;AAEHJ,SAASK,WAAW,GAAG"}
@@ -1,2 +1 @@
1
1
  import * as React from 'react';
2
- //# sourceMappingURL=DataGrid.types.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React"],"sources":["../../../src/components/DataGrid/DataGrid.types.ts"],"sourcesContent":["import * as React from 'react';\nimport type { TableContextValues, TableProps, TableSlots, TableState } from '../Table/Table.types';\nimport type {\n SortState,\n TableFeaturesState,\n UseTableSortOptions,\n SelectionMode,\n UseTableSelectionOptions,\n OnSelectionChangeData,\n TableColumnSizingOptions,\n TableColumnId,\n} from '../../hooks';\nimport { TableRowProps } from '../TableRow/TableRow.types';\n\nexport type DataGridSlots = TableSlots;\n\nexport type DataGridFocusMode = 'none' | 'cell' | 'row_unstable';\n\nexport type DataGridContextValues = TableContextValues & {\n dataGrid: DataGridContextValue;\n};\n\n// Use any here since we can't know the user types\n// The user is responsible for narrowing the type downstream\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type DataGridContextValue = TableFeaturesState<any> & {\n /**\n * How focus navigation will work in the datagrid\n * @default cell\n */\n focusMode: DataGridFocusMode;\n\n /**\n * Lets child components know if rows selection is enabled\n * @see selectionMode prop enables row selection on the component\n */\n selectableRows: boolean;\n\n /**\n * Enables subtle selection style\n * @default false\n */\n subtleSelection: boolean;\n\n /**\n * Row appearance when selected\n * @default brand\n */\n selectionAppearance: TableRowProps['appearance'];\n\n /**\n * Enables column resizing\n */\n resizableColumns?: boolean;\n};\n\n/**\n * DataGrid Props\n */\nexport type DataGridProps = TableProps &\n Pick<DataGridContextValue, 'items' | 'columns' | 'getRowId'> &\n Pick<Partial<DataGridContextValue>, 'focusMode' | 'subtleSelection' | 'selectionAppearance' | 'resizableColumns'> &\n Pick<UseTableSortOptions, 'sortState' | 'defaultSortState'> &\n Pick<UseTableSelectionOptions, 'defaultSelectedItems' | 'selectedItems'> & {\n onSortChange?: (e: React.MouseEvent, sortState: SortState) => void;\n onSelectionChange?: (e: React.MouseEvent | React.KeyboardEvent, data: OnSelectionChangeData) => void;\n /**\n * Enables row selection and sets the selection mode\n * @default false\n */\n selectionMode?: SelectionMode;\n /**\n * Options for column resizing\n */\n columnSizingOptions?: TableColumnSizingOptions;\n /**\n * A callback triggered when a column is resized.\n */\n onColumnResize?: (\n e: KeyboardEvent | TouchEvent | MouseEvent | undefined,\n data: { columnId: TableColumnId; width: number },\n ) => void;\n };\n\n/**\n * State used in rendering DataGrid\n */\nexport type DataGridState = TableState & { tableState: TableFeaturesState<unknown> } & Pick<\n DataGridContextValue,\n 'focusMode' | 'selectableRows' | 'subtleSelection' | 'selectionAppearance' | 'getRowId' | 'resizableColumns'\n >;\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW"}
1
+ {"version":3,"sources":["DataGrid.types.ts"],"sourcesContent":["import * as React from 'react';\nimport type { TableContextValues, TableProps, TableSlots, TableState } from '../Table/Table.types';\nimport type {\n SortState,\n TableFeaturesState,\n UseTableSortOptions,\n SelectionMode,\n UseTableSelectionOptions,\n OnSelectionChangeData,\n TableColumnSizingOptions,\n TableColumnId,\n} from '../../hooks';\nimport { TableRowProps } from '../TableRow/TableRow.types';\n\nexport type DataGridSlots = TableSlots;\n\nexport type DataGridFocusMode = 'none' | 'cell' | 'row_unstable';\n\nexport type DataGridContextValues = TableContextValues & {\n dataGrid: DataGridContextValue;\n};\n\n// Use any here since we can't know the user types\n// The user is responsible for narrowing the type downstream\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type DataGridContextValue = TableFeaturesState<any> & {\n /**\n * How focus navigation will work in the datagrid\n * @default cell\n */\n focusMode: DataGridFocusMode;\n\n /**\n * Lets child components know if rows selection is enabled\n * @see selectionMode prop enables row selection on the component\n */\n selectableRows: boolean;\n\n /**\n * Enables subtle selection style\n * @default false\n */\n subtleSelection: boolean;\n\n /**\n * Row appearance when selected\n * @default brand\n */\n selectionAppearance: TableRowProps['appearance'];\n\n /**\n * Enables column resizing\n */\n resizableColumns?: boolean;\n};\n\n/**\n * DataGrid Props\n */\nexport type DataGridProps = TableProps &\n Pick<DataGridContextValue, 'items' | 'columns' | 'getRowId'> &\n Pick<Partial<DataGridContextValue>, 'focusMode' | 'subtleSelection' | 'selectionAppearance' | 'resizableColumns'> &\n Pick<UseTableSortOptions, 'sortState' | 'defaultSortState'> &\n Pick<UseTableSelectionOptions, 'defaultSelectedItems' | 'selectedItems'> & {\n onSortChange?: (e: React.MouseEvent, sortState: SortState) => void;\n onSelectionChange?: (e: React.MouseEvent | React.KeyboardEvent, data: OnSelectionChangeData) => void;\n /**\n * Enables row selection and sets the selection mode\n * @default false\n */\n selectionMode?: SelectionMode;\n /**\n * Options for column resizing\n */\n columnSizingOptions?: TableColumnSizingOptions;\n /**\n * A callback triggered when a column is resized.\n */\n onColumnResize?: (\n e: KeyboardEvent | TouchEvent | MouseEvent | undefined,\n data: { columnId: TableColumnId; width: number },\n ) => void;\n /**\n * For column resizing. Allows for a container size to be adjusted by a number of pixels, to make\n * sure the columns don't overflow the table.\n * By default, this value is calculated internally based on other props, but can be overriden.\n */\n containerWidthOffset?: number;\n };\n\n/**\n * State used in rendering DataGrid\n */\nexport type DataGridState = TableState & { tableState: TableFeaturesState<unknown> } & Pick<\n DataGridContextValue,\n 'focusMode' | 'selectableRows' | 'subtleSelection' | 'selectionAppearance' | 'getRowId' | 'resizableColumns'\n >;\n"],"names":["React"],"mappings":"AAAA,YAAYA,WAAW,QAAQ"}
@@ -4,4 +4,3 @@ export * from './renderDataGrid';
4
4
  export * from './useDataGrid';
5
5
  export * from './useDataGridStyles.styles';
6
6
  export * from './useDataGridContextValues';
7
- //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../src/components/DataGrid/index.ts"],"sourcesContent":["export * from './DataGrid';\nexport * from './DataGrid.types';\nexport * from './renderDataGrid';\nexport * from './useDataGrid';\nexport * from './useDataGridStyles.styles';\nexport * from './useDataGridContextValues';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc"}
1
+ {"version":3,"sources":["index.ts"],"sourcesContent":["export * from './DataGrid';\nexport * from './DataGrid.types';\nexport * from './renderDataGrid';\nexport * from './useDataGrid';\nexport * from './useDataGridStyles.styles';\nexport * from './useDataGridContextValues';\n"],"names":[],"mappings":"AAAA,cAAc,aAAa;AAC3B,cAAc,mBAAmB;AACjC,cAAc,mBAAmB;AACjC,cAAc,gBAAgB;AAC9B,cAAc,6BAA6B;AAC3C,cAAc,6BAA6B"}
@@ -3,10 +3,8 @@ import { renderTable_unstable } from '../Table/renderTable';
3
3
  import { DataGridContextProvider } from '../../contexts/dataGridContext';
4
4
  /**
5
5
  * Render the final JSX of DataGrid
6
- */
7
- export const renderDataGrid_unstable = (state, contextValues) => {
8
- return /*#__PURE__*/React.createElement(DataGridContextProvider, {
9
- value: contextValues.dataGrid
10
- }, renderTable_unstable(state, contextValues));
6
+ */ export const renderDataGrid_unstable = (state, contextValues)=>{
7
+ return /*#__PURE__*/ React.createElement(DataGridContextProvider, {
8
+ value: contextValues.dataGrid
9
+ }, renderTable_unstable(state, contextValues));
11
10
  };
12
- //# sourceMappingURL=renderDataGrid.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","renderTable_unstable","DataGridContextProvider","renderDataGrid_unstable","state","contextValues","createElement","value","dataGrid"],"sources":["../../../src/components/DataGrid/renderDataGrid.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { DataGridContextValues, DataGridState } from './DataGrid.types';\nimport { renderTable_unstable } from '../Table/renderTable';\nimport { DataGridContextProvider } from '../../contexts/dataGridContext';\n\n/**\n * Render the final JSX of DataGrid\n */\nexport const renderDataGrid_unstable = (state: DataGridState, contextValues: DataGridContextValues) => {\n return (\n <DataGridContextProvider value={contextValues.dataGrid}>\n {renderTable_unstable(state, contextValues)}\n </DataGridContextProvider>\n );\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAEvB,SAASC,oBAAoB,QAAQ;AACrC,SAASC,uBAAuB,QAAQ;AAExC;;;AAGA,OAAO,MAAMC,uBAAA,GAA0BA,CAACC,KAAA,EAAsBC,aAAA,KAAyC;EACrG,oBACEL,KAAA,CAAAM,aAAA,CAACJ,uBAAA;IAAwBK,KAAA,EAAOF,aAAA,CAAcG;KAC3CP,oBAAA,CAAqBG,KAAA,EAAOC,aAAA;AAGnC"}
1
+ {"version":3,"sources":["renderDataGrid.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { DataGridContextValues, DataGridState } from './DataGrid.types';\nimport { renderTable_unstable } from '../Table/renderTable';\nimport { DataGridContextProvider } from '../../contexts/dataGridContext';\n\n/**\n * Render the final JSX of DataGrid\n */\nexport const renderDataGrid_unstable = (state: DataGridState, contextValues: DataGridContextValues) => {\n return (\n <DataGridContextProvider value={contextValues.dataGrid}>\n {renderTable_unstable(state, contextValues)}\n </DataGridContextProvider>\n );\n};\n"],"names":["React","renderTable_unstable","DataGridContextProvider","renderDataGrid_unstable","state","contextValues","value","dataGrid"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,oBAAoB,QAAQ,uBAAuB;AAC5D,SAASC,uBAAuB,QAAQ,iCAAiC;AAEzE;;CAEC,GACD,OAAO,MAAMC,0BAA0B,CAACC,OAAsBC,gBAAyC;IACrG,qBACE,oBAACH;QAAwBI,OAAOD,cAAcE,QAAQ;OACnDN,qBAAqBG,OAAOC;AAGnC,EAAE"}