@fluentui/react-table 9.2.1 → 9.2.2

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 (757) hide show
  1. package/.swcrc +30 -0
  2. package/CHANGELOG.json +94 -1
  3. package/CHANGELOG.md +24 -2
  4. package/lib/DataGrid.js.map +1 -1
  5. package/lib/DataGridBody.js.map +1 -1
  6. package/lib/DataGridCell.js.map +1 -1
  7. package/lib/DataGridHeader.js.map +1 -1
  8. package/lib/DataGridHeaderCell.js.map +1 -1
  9. package/lib/DataGridRow.js.map +1 -1
  10. package/lib/DataGridSelectionCell.js.map +1 -1
  11. package/lib/Table.js.map +1 -1
  12. package/lib/TableBody.js.map +1 -1
  13. package/lib/TableCell.js.map +1 -1
  14. package/lib/TableCellActions.js.map +1 -1
  15. package/lib/TableCellLayout.js.map +1 -1
  16. package/lib/TableCellPrimaryLayout.js.map +1 -1
  17. package/lib/TableHeader.js.map +1 -1
  18. package/lib/TableHeaderCell.js.map +1 -1
  19. package/lib/TableResizeHandle.js.map +1 -1
  20. package/lib/TableRow.js.map +1 -1
  21. package/lib/TableSelectionCell.js.map +1 -1
  22. package/lib/components/DataGrid/DataGrid.js.map +1 -1
  23. package/lib/components/DataGrid/DataGrid.types.js +1 -1
  24. package/lib/components/DataGrid/DataGrid.types.js.map +1 -1
  25. package/lib/components/DataGrid/index.js.map +1 -1
  26. package/lib/components/DataGrid/renderDataGrid.js.map +1 -1
  27. package/lib/components/DataGrid/useDataGrid.js +6 -4
  28. package/lib/components/DataGrid/useDataGrid.js.map +1 -1
  29. package/lib/components/DataGrid/useDataGridContextValues.js.map +1 -1
  30. package/lib/components/DataGrid/useDataGridStyles.js.map +1 -1
  31. package/lib/components/DataGridBody/DataGridBody.js.map +1 -1
  32. package/lib/components/DataGridBody/DataGridBody.types.js +1 -1
  33. package/lib/components/DataGridBody/DataGridBody.types.js.map +1 -1
  34. package/lib/components/DataGridBody/index.js.map +1 -1
  35. package/lib/components/DataGridBody/renderDataGridBody.js +1 -3
  36. package/lib/components/DataGridBody/renderDataGridBody.js.map +1 -1
  37. package/lib/components/DataGridBody/useDataGridBody.js +1 -0
  38. package/lib/components/DataGridBody/useDataGridBody.js.map +1 -1
  39. package/lib/components/DataGridBody/useDataGridBodyStyles.js.map +1 -1
  40. package/lib/components/DataGridCell/DataGridCell.js.map +1 -1
  41. package/lib/components/DataGridCell/DataGridCell.types.js.map +1 -1
  42. package/lib/components/DataGridCell/index.js.map +1 -1
  43. package/lib/components/DataGridCell/renderDataGridCell.js.map +1 -1
  44. package/lib/components/DataGridCell/useDataGridCell.js +1 -0
  45. package/lib/components/DataGridCell/useDataGridCell.js.map +1 -1
  46. package/lib/components/DataGridCell/useDataGridCellStyles.js.map +1 -1
  47. package/lib/components/DataGridHeader/DataGridHeader.js.map +1 -1
  48. package/lib/components/DataGridHeader/DataGridHeader.types.js.map +1 -1
  49. package/lib/components/DataGridHeader/index.js.map +1 -1
  50. package/lib/components/DataGridHeader/renderDataGridHeader.js.map +1 -1
  51. package/lib/components/DataGridHeader/useDataGridHeader.js +1 -0
  52. package/lib/components/DataGridHeader/useDataGridHeader.js.map +1 -1
  53. package/lib/components/DataGridHeader/useDataGridHeaderStyles.js.map +1 -1
  54. package/lib/components/DataGridHeaderCell/DataGridHeaderCell.js.map +1 -1
  55. package/lib/components/DataGridHeaderCell/DataGridHeaderCell.types.js.map +1 -1
  56. package/lib/components/DataGridHeaderCell/index.js.map +1 -1
  57. package/lib/components/DataGridHeaderCell/renderDataGridHeaderCell.js.map +1 -1
  58. package/lib/components/DataGridHeaderCell/useDataGridHeaderCell.js +3 -2
  59. package/lib/components/DataGridHeaderCell/useDataGridHeaderCell.js.map +1 -1
  60. package/lib/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js.map +1 -1
  61. package/lib/components/DataGridRow/DataGridRow.js.map +1 -1
  62. package/lib/components/DataGridRow/DataGridRow.types.js +1 -1
  63. package/lib/components/DataGridRow/DataGridRow.types.js.map +1 -1
  64. package/lib/components/DataGridRow/index.js.map +1 -1
  65. package/lib/components/DataGridRow/renderDataGridRow.js +1 -5
  66. package/lib/components/DataGridRow/renderDataGridRow.js.map +1 -1
  67. package/lib/components/DataGridRow/useDataGridRow.js +5 -4
  68. package/lib/components/DataGridRow/useDataGridRow.js.map +1 -1
  69. package/lib/components/DataGridRow/useDataGridRowStyles.js.map +1 -1
  70. package/lib/components/DataGridSelectionCell/DataGridSelectionCell.js.map +1 -1
  71. package/lib/components/DataGridSelectionCell/DataGridSelectionCell.types.js.map +1 -1
  72. package/lib/components/DataGridSelectionCell/index.js.map +1 -1
  73. package/lib/components/DataGridSelectionCell/renderDataGridSelectionCell.js.map +1 -1
  74. package/lib/components/DataGridSelectionCell/useDataGridSelectionCell.js +3 -2
  75. package/lib/components/DataGridSelectionCell/useDataGridSelectionCell.js.map +1 -1
  76. package/lib/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js.map +1 -1
  77. package/lib/components/Table/Table.js.map +1 -1
  78. package/lib/components/Table/Table.types.js.map +1 -1
  79. package/lib/components/Table/index.js.map +1 -1
  80. package/lib/components/Table/renderTable.js +1 -3
  81. package/lib/components/Table/renderTable.js.map +1 -1
  82. package/lib/components/Table/useTable.js +7 -5
  83. package/lib/components/Table/useTable.js.map +1 -1
  84. package/lib/components/Table/useTableContextValues.js.map +1 -1
  85. package/lib/components/Table/useTableStyles.js.map +1 -1
  86. package/lib/components/TableBody/TableBody.js.map +1 -1
  87. package/lib/components/TableBody/TableBody.types.js.map +1 -1
  88. package/lib/components/TableBody/index.js.map +1 -1
  89. package/lib/components/TableBody/renderTableBody.js +1 -3
  90. package/lib/components/TableBody/renderTableBody.js.map +1 -1
  91. package/lib/components/TableBody/useTableBody.js +3 -2
  92. package/lib/components/TableBody/useTableBody.js.map +1 -1
  93. package/lib/components/TableBody/useTableBodyStyles.js.map +1 -1
  94. package/lib/components/TableCell/TableCell.js.map +1 -1
  95. package/lib/components/TableCell/TableCell.types.js.map +1 -1
  96. package/lib/components/TableCell/index.js.map +1 -1
  97. package/lib/components/TableCell/renderTableCell.js +1 -3
  98. package/lib/components/TableCell/renderTableCell.js.map +1 -1
  99. package/lib/components/TableCell/useTableCell.js +3 -2
  100. package/lib/components/TableCell/useTableCell.js.map +1 -1
  101. package/lib/components/TableCell/useTableCellStyles.js.map +1 -1
  102. package/lib/components/TableCellActions/TableCellActions.js.map +1 -1
  103. package/lib/components/TableCellActions/TableCellActions.types.js.map +1 -1
  104. package/lib/components/TableCellActions/index.js.map +1 -1
  105. package/lib/components/TableCellActions/renderTableCellActions.js +1 -3
  106. package/lib/components/TableCellActions/renderTableCellActions.js.map +1 -1
  107. package/lib/components/TableCellActions/useTableCellActions.js +3 -2
  108. package/lib/components/TableCellActions/useTableCellActions.js.map +1 -1
  109. package/lib/components/TableCellActions/useTableCellActionsStyles.js.map +1 -1
  110. package/lib/components/TableCellLayout/TableCellLayout.js.map +1 -1
  111. package/lib/components/TableCellLayout/TableCellLayout.types.js.map +1 -1
  112. package/lib/components/TableCellLayout/index.js.map +1 -1
  113. package/lib/components/TableCellLayout/renderTableCellLayout.js +2 -12
  114. package/lib/components/TableCellLayout/renderTableCellLayout.js.map +1 -1
  115. package/lib/components/TableCellLayout/useTableCellLayout.js +1 -0
  116. package/lib/components/TableCellLayout/useTableCellLayout.js.map +1 -1
  117. package/lib/components/TableCellLayout/useTableCellLayoutContextValues.js.map +1 -1
  118. package/lib/components/TableCellLayout/useTableCellLayoutStyles.js.map +1 -1
  119. package/lib/components/TableHeader/TableHeader.js.map +1 -1
  120. package/lib/components/TableHeader/TableHeader.types.js.map +1 -1
  121. package/lib/components/TableHeader/index.js.map +1 -1
  122. package/lib/components/TableHeader/renderTableHeader.js +1 -3
  123. package/lib/components/TableHeader/renderTableHeader.js.map +1 -1
  124. package/lib/components/TableHeader/useTableHeader.js +3 -2
  125. package/lib/components/TableHeader/useTableHeader.js.map +1 -1
  126. package/lib/components/TableHeader/useTableHeaderStyles.js.map +1 -1
  127. package/lib/components/TableHeaderCell/TableHeaderCell.js.map +1 -1
  128. package/lib/components/TableHeaderCell/TableHeaderCell.types.js.map +1 -1
  129. package/lib/components/TableHeaderCell/index.js.map +1 -1
  130. package/lib/components/TableHeaderCell/renderTableHeaderCell.js +1 -9
  131. package/lib/components/TableHeaderCell/renderTableHeaderCell.js.map +1 -1
  132. package/lib/components/TableHeaderCell/useTableHeaderCell.js +4 -3
  133. package/lib/components/TableHeaderCell/useTableHeaderCell.js.map +1 -1
  134. package/lib/components/TableHeaderCell/useTableHeaderCellStyles.js.map +1 -1
  135. package/lib/components/TableResizeHandle/TableResizeHandle.js.map +1 -1
  136. package/lib/components/TableResizeHandle/TableResizeHandle.types.js.map +1 -1
  137. package/lib/components/TableResizeHandle/index.js.map +1 -1
  138. package/lib/components/TableResizeHandle/renderTableResizeHandle.js +1 -3
  139. package/lib/components/TableResizeHandle/renderTableResizeHandle.js.map +1 -1
  140. package/lib/components/TableResizeHandle/useTableResizeHandle.js +3 -2
  141. package/lib/components/TableResizeHandle/useTableResizeHandle.js.map +1 -1
  142. package/lib/components/TableResizeHandle/useTableResizeHandleStyles.js +0 -2
  143. package/lib/components/TableResizeHandle/useTableResizeHandleStyles.js.map +1 -1
  144. package/lib/components/TableRow/TableRow.js.map +1 -1
  145. package/lib/components/TableRow/TableRow.types.js.map +1 -1
  146. package/lib/components/TableRow/index.js.map +1 -1
  147. package/lib/components/TableRow/renderTableRow.js +1 -3
  148. package/lib/components/TableRow/renderTableRow.js.map +1 -1
  149. package/lib/components/TableRow/useTableRow.js +5 -3
  150. package/lib/components/TableRow/useTableRow.js.map +1 -1
  151. package/lib/components/TableRow/useTableRowStyles.js.map +1 -1
  152. package/lib/components/TableSelectionCell/TableSelectionCell.js.map +1 -1
  153. package/lib/components/TableSelectionCell/TableSelectionCell.types.js.map +1 -1
  154. package/lib/components/TableSelectionCell/index.js.map +1 -1
  155. package/lib/components/TableSelectionCell/renderTableSelectionCell.js +1 -7
  156. package/lib/components/TableSelectionCell/renderTableSelectionCell.js.map +1 -1
  157. package/lib/components/TableSelectionCell/useTableSelectionCell.js +1 -0
  158. package/lib/components/TableSelectionCell/useTableSelectionCell.js.map +1 -1
  159. package/lib/components/TableSelectionCell/useTableSelectionCellStyles.js.map +1 -1
  160. package/lib/contexts/columnIdContext.js +2 -4
  161. package/lib/contexts/columnIdContext.js.map +1 -1
  162. package/lib/contexts/dataGridContext.js.map +1 -1
  163. package/lib/contexts/rowIdContext.js +2 -4
  164. package/lib/contexts/rowIdContext.js.map +1 -1
  165. package/lib/contexts/tableContext.js +2 -4
  166. package/lib/contexts/tableContext.js.map +1 -1
  167. package/lib/contexts/tableHeaderContext.js.map +1 -1
  168. package/lib/hooks/createColumn.js.map +1 -1
  169. package/lib/hooks/index.js.map +1 -1
  170. package/lib/hooks/selectionManager.js +1 -0
  171. package/lib/hooks/selectionManager.js.map +1 -1
  172. package/lib/hooks/types.js +1 -1
  173. package/lib/hooks/types.js.map +1 -1
  174. package/lib/hooks/useKeyboardResizing.js +15 -12
  175. package/lib/hooks/useKeyboardResizing.js.map +1 -1
  176. package/lib/hooks/useMeasureElement.js +5 -3
  177. package/lib/hooks/useMeasureElement.js.map +1 -1
  178. package/lib/hooks/useTableColumnResizeMouseHandler.js +19 -17
  179. package/lib/hooks/useTableColumnResizeMouseHandler.js.map +1 -1
  180. package/lib/hooks/useTableColumnResizeState.js.map +1 -1
  181. package/lib/hooks/useTableColumnSizing.js.map +1 -1
  182. package/lib/hooks/useTableFeatures.js +8 -6
  183. package/lib/hooks/useTableFeatures.js.map +1 -1
  184. package/lib/hooks/useTableSelection.js +2 -2
  185. package/lib/hooks/useTableSelection.js.map +1 -1
  186. package/lib/hooks/useTableSort.js +1 -0
  187. package/lib/hooks/useTableSort.js.map +1 -1
  188. package/lib/index.js.map +1 -1
  189. package/lib/utils/columnResizeUtils.js +7 -8
  190. package/lib/utils/columnResizeUtils.js.map +1 -1
  191. package/lib-commonjs/DataGrid.js +5 -4
  192. package/lib-commonjs/DataGrid.js.map +1 -1
  193. package/lib-commonjs/DataGridBody.js +5 -4
  194. package/lib-commonjs/DataGridBody.js.map +1 -1
  195. package/lib-commonjs/DataGridCell.js +5 -4
  196. package/lib-commonjs/DataGridCell.js.map +1 -1
  197. package/lib-commonjs/DataGridHeader.js +5 -4
  198. package/lib-commonjs/DataGridHeader.js.map +1 -1
  199. package/lib-commonjs/DataGridHeaderCell.js +5 -4
  200. package/lib-commonjs/DataGridHeaderCell.js.map +1 -1
  201. package/lib-commonjs/DataGridRow.js +5 -4
  202. package/lib-commonjs/DataGridRow.js.map +1 -1
  203. package/lib-commonjs/DataGridSelectionCell.js +5 -4
  204. package/lib-commonjs/DataGridSelectionCell.js.map +1 -1
  205. package/lib-commonjs/Table.js +5 -4
  206. package/lib-commonjs/Table.js.map +1 -1
  207. package/lib-commonjs/TableBody.js +5 -4
  208. package/lib-commonjs/TableBody.js.map +1 -1
  209. package/lib-commonjs/TableCell.js +5 -4
  210. package/lib-commonjs/TableCell.js.map +1 -1
  211. package/lib-commonjs/TableCellActions.js +5 -4
  212. package/lib-commonjs/TableCellActions.js.map +1 -1
  213. package/lib-commonjs/TableCellLayout.js +5 -4
  214. package/lib-commonjs/TableCellLayout.js.map +1 -1
  215. package/lib-commonjs/TableCellPrimaryLayout.js +5 -4
  216. package/lib-commonjs/TableCellPrimaryLayout.js.map +1 -1
  217. package/lib-commonjs/TableHeader.js +5 -4
  218. package/lib-commonjs/TableHeader.js.map +1 -1
  219. package/lib-commonjs/TableHeaderCell.js +5 -4
  220. package/lib-commonjs/TableHeaderCell.js.map +1 -1
  221. package/lib-commonjs/TableResizeHandle.js +5 -4
  222. package/lib-commonjs/TableResizeHandle.js.map +1 -1
  223. package/lib-commonjs/TableRow.js +5 -4
  224. package/lib-commonjs/TableRow.js.map +1 -1
  225. package/lib-commonjs/TableSelectionCell.js +5 -4
  226. package/lib-commonjs/TableSelectionCell.js.map +1 -1
  227. package/lib-commonjs/components/DataGrid/DataGrid.js +20 -21
  228. package/lib-commonjs/components/DataGrid/DataGrid.js.map +1 -1
  229. package/lib-commonjs/components/DataGrid/DataGrid.types.js +5 -2
  230. package/lib-commonjs/components/DataGrid/DataGrid.types.js.map +1 -1
  231. package/lib-commonjs/components/DataGrid/index.js +10 -9
  232. package/lib-commonjs/components/DataGrid/index.js.map +1 -1
  233. package/lib-commonjs/components/DataGrid/renderDataGrid.js +15 -15
  234. package/lib-commonjs/components/DataGrid/renderDataGrid.js.map +1 -1
  235. package/lib-commonjs/components/DataGrid/useDataGrid.js +86 -106
  236. package/lib-commonjs/components/DataGrid/useDataGrid.js.map +1 -1
  237. package/lib-commonjs/components/DataGrid/useDataGridContextValues.js +20 -18
  238. package/lib-commonjs/components/DataGrid/useDataGridContextValues.js.map +1 -1
  239. package/lib-commonjs/components/DataGrid/useDataGridStyles.js +21 -16
  240. package/lib-commonjs/components/DataGrid/useDataGridStyles.js.map +1 -1
  241. package/lib-commonjs/components/DataGridBody/DataGridBody.js +19 -20
  242. package/lib-commonjs/components/DataGridBody/DataGridBody.js.map +1 -1
  243. package/lib-commonjs/components/DataGridBody/DataGridBody.types.js +5 -2
  244. package/lib-commonjs/components/DataGridBody/DataGridBody.types.js.map +1 -1
  245. package/lib-commonjs/components/DataGridBody/index.js +9 -8
  246. package/lib-commonjs/components/DataGridBody/index.js.map +1 -1
  247. package/lib-commonjs/components/DataGridBody/renderDataGridBody.js +17 -22
  248. package/lib-commonjs/components/DataGridBody/renderDataGridBody.js.map +1 -1
  249. package/lib-commonjs/components/DataGridBody/useDataGridBody.js +27 -34
  250. package/lib-commonjs/components/DataGridBody/useDataGridBody.js.map +1 -1
  251. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.js +21 -16
  252. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.js.map +1 -1
  253. package/lib-commonjs/components/DataGridCell/DataGridCell.js +19 -20
  254. package/lib-commonjs/components/DataGridCell/DataGridCell.js.map +1 -1
  255. package/lib-commonjs/components/DataGridCell/DataGridCell.types.js +3 -2
  256. package/lib-commonjs/components/DataGridCell/DataGridCell.types.js.map +1 -1
  257. package/lib-commonjs/components/DataGridCell/index.js +9 -8
  258. package/lib-commonjs/components/DataGridCell/index.js.map +1 -1
  259. package/lib-commonjs/components/DataGridCell/renderDataGridCell.js +10 -11
  260. package/lib-commonjs/components/DataGridCell/renderDataGridCell.js.map +1 -1
  261. package/lib-commonjs/components/DataGridCell/useDataGridCell.js +24 -29
  262. package/lib-commonjs/components/DataGridCell/useDataGridCell.js.map +1 -1
  263. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.js +21 -16
  264. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.js.map +1 -1
  265. package/lib-commonjs/components/DataGridHeader/DataGridHeader.js +19 -20
  266. package/lib-commonjs/components/DataGridHeader/DataGridHeader.js.map +1 -1
  267. package/lib-commonjs/components/DataGridHeader/DataGridHeader.types.js +3 -2
  268. package/lib-commonjs/components/DataGridHeader/DataGridHeader.types.js.map +1 -1
  269. package/lib-commonjs/components/DataGridHeader/index.js +9 -8
  270. package/lib-commonjs/components/DataGridHeader/index.js.map +1 -1
  271. package/lib-commonjs/components/DataGridHeader/renderDataGridHeader.js +10 -11
  272. package/lib-commonjs/components/DataGridHeader/renderDataGridHeader.js.map +1 -1
  273. package/lib-commonjs/components/DataGridHeader/useDataGridHeader.js +15 -20
  274. package/lib-commonjs/components/DataGridHeader/useDataGridHeader.js.map +1 -1
  275. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.js +21 -16
  276. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.js.map +1 -1
  277. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.js +19 -20
  278. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.js.map +1 -1
  279. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.types.js +3 -2
  280. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.types.js.map +1 -1
  281. package/lib-commonjs/components/DataGridHeaderCell/index.js +9 -8
  282. package/lib-commonjs/components/DataGridHeaderCell/index.js.map +1 -1
  283. package/lib-commonjs/components/DataGridHeaderCell/renderDataGridHeaderCell.js +10 -11
  284. package/lib-commonjs/components/DataGridHeaderCell/renderDataGridHeaderCell.js.map +1 -1
  285. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCell.js +36 -43
  286. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCell.js.map +1 -1
  287. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js +33 -28
  288. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js.map +1 -1
  289. package/lib-commonjs/components/DataGridRow/DataGridRow.js +19 -20
  290. package/lib-commonjs/components/DataGridRow/DataGridRow.js.map +1 -1
  291. package/lib-commonjs/components/DataGridRow/DataGridRow.types.js +5 -2
  292. package/lib-commonjs/components/DataGridRow/DataGridRow.types.js.map +1 -1
  293. package/lib-commonjs/components/DataGridRow/index.js +9 -8
  294. package/lib-commonjs/components/DataGridRow/index.js.map +1 -1
  295. package/lib-commonjs/components/DataGridRow/renderDataGridRow.js +17 -24
  296. package/lib-commonjs/components/DataGridRow/renderDataGridRow.js.map +1 -1
  297. package/lib-commonjs/components/DataGridRow/useDataGridRow.js +70 -75
  298. package/lib-commonjs/components/DataGridRow/useDataGridRow.js.map +1 -1
  299. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.js +25 -20
  300. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.js.map +1 -1
  301. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.js +19 -20
  302. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.js.map +1 -1
  303. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.types.js +3 -2
  304. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.types.js.map +1 -1
  305. package/lib-commonjs/components/DataGridSelectionCell/index.js +9 -8
  306. package/lib-commonjs/components/DataGridSelectionCell/index.js.map +1 -1
  307. package/lib-commonjs/components/DataGridSelectionCell/renderDataGridSelectionCell.js +10 -11
  308. package/lib-commonjs/components/DataGridSelectionCell/renderDataGridSelectionCell.js.map +1 -1
  309. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCell.js +45 -50
  310. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCell.js.map +1 -1
  311. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js +29 -24
  312. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js.map +1 -1
  313. package/lib-commonjs/components/Table/Table.js +20 -21
  314. package/lib-commonjs/components/Table/Table.js.map +1 -1
  315. package/lib-commonjs/components/Table/Table.types.js +3 -2
  316. package/lib-commonjs/components/Table/Table.types.js.map +1 -1
  317. package/lib-commonjs/components/Table/index.js +9 -8
  318. package/lib-commonjs/components/Table/index.js.map +1 -1
  319. package/lib-commonjs/components/Table/renderTable.js +16 -21
  320. package/lib-commonjs/components/Table/renderTable.js.map +1 -1
  321. package/lib-commonjs/components/Table/useTable.js +27 -31
  322. package/lib-commonjs/components/Table/useTable.js.map +1 -1
  323. package/lib-commonjs/components/Table/useTableContextValues.js +22 -19
  324. package/lib-commonjs/components/Table/useTableContextValues.js.map +1 -1
  325. package/lib-commonjs/components/Table/useTableStyles.js +55 -41
  326. package/lib-commonjs/components/Table/useTableStyles.js.map +1 -1
  327. package/lib-commonjs/components/TableBody/TableBody.js +19 -20
  328. package/lib-commonjs/components/TableBody/TableBody.js.map +1 -1
  329. package/lib-commonjs/components/TableBody/TableBody.types.js +3 -2
  330. package/lib-commonjs/components/TableBody/TableBody.types.js.map +1 -1
  331. package/lib-commonjs/components/TableBody/index.js +9 -8
  332. package/lib-commonjs/components/TableBody/index.js.map +1 -1
  333. package/lib-commonjs/components/TableBody/renderTableBody.js +13 -18
  334. package/lib-commonjs/components/TableBody/renderTableBody.js.map +1 -1
  335. package/lib-commonjs/components/TableBody/useTableBody.js +26 -33
  336. package/lib-commonjs/components/TableBody/useTableBody.js.map +1 -1
  337. package/lib-commonjs/components/TableBody/useTableBodyStyles.js +39 -29
  338. package/lib-commonjs/components/TableBody/useTableBodyStyles.js.map +1 -1
  339. package/lib-commonjs/components/TableCell/TableCell.js +19 -20
  340. package/lib-commonjs/components/TableCell/TableCell.js.map +1 -1
  341. package/lib-commonjs/components/TableCell/TableCell.types.js +3 -2
  342. package/lib-commonjs/components/TableCell/TableCell.types.js.map +1 -1
  343. package/lib-commonjs/components/TableCell/index.js +9 -8
  344. package/lib-commonjs/components/TableCell/index.js.map +1 -1
  345. package/lib-commonjs/components/TableCell/renderTableCell.js +13 -18
  346. package/lib-commonjs/components/TableCell/renderTableCell.js.map +1 -1
  347. package/lib-commonjs/components/TableCell/useTableCell.js +27 -35
  348. package/lib-commonjs/components/TableCell/useTableCell.js.map +1 -1
  349. package/lib-commonjs/components/TableCell/useTableCellStyles.js +125 -74
  350. package/lib-commonjs/components/TableCell/useTableCellStyles.js.map +1 -1
  351. package/lib-commonjs/components/TableCellActions/TableCellActions.js +19 -20
  352. package/lib-commonjs/components/TableCellActions/TableCellActions.js.map +1 -1
  353. package/lib-commonjs/components/TableCellActions/TableCellActions.types.js +3 -2
  354. package/lib-commonjs/components/TableCellActions/TableCellActions.types.js.map +1 -1
  355. package/lib-commonjs/components/TableCellActions/index.js +9 -8
  356. package/lib-commonjs/components/TableCellActions/index.js.map +1 -1
  357. package/lib-commonjs/components/TableCellActions/renderTableCellActions.js +13 -18
  358. package/lib-commonjs/components/TableCellActions/renderTableCellActions.js.map +1 -1
  359. package/lib-commonjs/components/TableCellActions/useTableCellActions.js +22 -27
  360. package/lib-commonjs/components/TableCellActions/useTableCellActions.js.map +1 -1
  361. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.js +51 -30
  362. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.js.map +1 -1
  363. package/lib-commonjs/components/TableCellLayout/TableCellLayout.js +20 -21
  364. package/lib-commonjs/components/TableCellLayout/TableCellLayout.js.map +1 -1
  365. package/lib-commonjs/components/TableCellLayout/TableCellLayout.types.js +3 -2
  366. package/lib-commonjs/components/TableCellLayout/TableCellLayout.types.js.map +1 -1
  367. package/lib-commonjs/components/TableCellLayout/index.js +9 -8
  368. package/lib-commonjs/components/TableCellLayout/index.js.map +1 -1
  369. package/lib-commonjs/components/TableCellLayout/renderTableCellLayout.js +16 -29
  370. package/lib-commonjs/components/TableCellLayout/renderTableCellLayout.js.map +1 -1
  371. package/lib-commonjs/components/TableCellLayout/useTableCellLayout.js +41 -48
  372. package/lib-commonjs/components/TableCellLayout/useTableCellLayout.js.map +1 -1
  373. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutContextValues.js +18 -15
  374. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutContextValues.js.map +1 -1
  375. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.js +113 -92
  376. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.js.map +1 -1
  377. package/lib-commonjs/components/TableHeader/TableHeader.js +19 -20
  378. package/lib-commonjs/components/TableHeader/TableHeader.js.map +1 -1
  379. package/lib-commonjs/components/TableHeader/TableHeader.types.js +3 -2
  380. package/lib-commonjs/components/TableHeader/TableHeader.types.js.map +1 -1
  381. package/lib-commonjs/components/TableHeader/index.js +9 -8
  382. package/lib-commonjs/components/TableHeader/index.js.map +1 -1
  383. package/lib-commonjs/components/TableHeader/renderTableHeader.js +16 -21
  384. package/lib-commonjs/components/TableHeader/renderTableHeader.js.map +1 -1
  385. package/lib-commonjs/components/TableHeader/useTableHeader.js +26 -33
  386. package/lib-commonjs/components/TableHeader/useTableHeader.js.map +1 -1
  387. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.js +39 -29
  388. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.js.map +1 -1
  389. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.js +19 -20
  390. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.js.map +1 -1
  391. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.types.js +3 -2
  392. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.types.js.map +1 -1
  393. package/lib-commonjs/components/TableHeaderCell/index.js +9 -8
  394. package/lib-commonjs/components/TableHeaderCell/index.js.map +1 -1
  395. package/lib-commonjs/components/TableHeaderCell/renderTableHeaderCell.js +13 -24
  396. package/lib-commonjs/components/TableHeaderCell/renderTableHeaderCell.js.map +1 -1
  397. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCell.js +59 -67
  398. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCell.js.map +1 -1
  399. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.js +205 -114
  400. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.js.map +1 -1
  401. package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.js +19 -20
  402. package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.js.map +1 -1
  403. package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.types.js +3 -2
  404. package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.types.js.map +1 -1
  405. package/lib-commonjs/components/TableResizeHandle/index.js +9 -8
  406. package/lib-commonjs/components/TableResizeHandle/index.js.map +1 -1
  407. package/lib-commonjs/components/TableResizeHandle/renderTableResizeHandle.js +13 -18
  408. package/lib-commonjs/components/TableResizeHandle/renderTableResizeHandle.js.map +1 -1
  409. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandle.js +26 -31
  410. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandle.js.map +1 -1
  411. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.js +87 -47
  412. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.js.map +1 -1
  413. package/lib-commonjs/components/TableRow/TableRow.js +19 -20
  414. package/lib-commonjs/components/TableRow/TableRow.js.map +1 -1
  415. package/lib-commonjs/components/TableRow/TableRow.types.js +3 -2
  416. package/lib-commonjs/components/TableRow/TableRow.types.js.map +1 -1
  417. package/lib-commonjs/components/TableRow/index.js +9 -8
  418. package/lib-commonjs/components/TableRow/index.js.map +1 -1
  419. package/lib-commonjs/components/TableRow/renderTableRow.js +13 -18
  420. package/lib-commonjs/components/TableRow/renderTableRow.js.map +1 -1
  421. package/lib-commonjs/components/TableRow/useTableRow.js +35 -42
  422. package/lib-commonjs/components/TableRow/useTableRow.js.map +1 -1
  423. package/lib-commonjs/components/TableRow/useTableRowStyles.js +482 -209
  424. package/lib-commonjs/components/TableRow/useTableRowStyles.js.map +1 -1
  425. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.js +19 -20
  426. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.js.map +1 -1
  427. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.types.js +3 -2
  428. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.types.js.map +1 -1
  429. package/lib-commonjs/components/TableSelectionCell/index.js +9 -8
  430. package/lib-commonjs/components/TableSelectionCell/index.js.map +1 -1
  431. package/lib-commonjs/components/TableSelectionCell/renderTableSelectionCell.js +13 -22
  432. package/lib-commonjs/components/TableSelectionCell/renderTableSelectionCell.js.map +1 -1
  433. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCell.js +46 -58
  434. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCell.js.map +1 -1
  435. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.js +139 -82
  436. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.js.map +1 -1
  437. package/lib-commonjs/contexts/columnIdContext.js +20 -12
  438. package/lib-commonjs/contexts/columnIdContext.js.map +1 -1
  439. package/lib-commonjs/contexts/dataGridContext.js +22 -14
  440. package/lib-commonjs/contexts/dataGridContext.js.map +1 -1
  441. package/lib-commonjs/contexts/rowIdContext.js +20 -12
  442. package/lib-commonjs/contexts/rowIdContext.js.map +1 -1
  443. package/lib-commonjs/contexts/tableContext.js +23 -15
  444. package/lib-commonjs/contexts/tableContext.js.map +1 -1
  445. package/lib-commonjs/contexts/tableHeaderContext.js +17 -8
  446. package/lib-commonjs/contexts/tableHeaderContext.js.map +1 -1
  447. package/lib-commonjs/hooks/createColumn.js +27 -35
  448. package/lib-commonjs/hooks/createColumn.js.map +1 -1
  449. package/lib-commonjs/hooks/index.js +10 -9
  450. package/lib-commonjs/hooks/index.js.map +1 -1
  451. package/lib-commonjs/hooks/selectionManager.js +80 -72
  452. package/lib-commonjs/hooks/selectionManager.js.map +1 -1
  453. package/lib-commonjs/hooks/types.js +5 -2
  454. package/lib-commonjs/hooks/types.js.map +1 -1
  455. package/lib-commonjs/hooks/useKeyboardResizing.js +109 -94
  456. package/lib-commonjs/hooks/useKeyboardResizing.js.map +1 -1
  457. package/lib-commonjs/hooks/useMeasureElement.js +53 -50
  458. package/lib-commonjs/hooks/useMeasureElement.js.map +1 -1
  459. package/lib-commonjs/hooks/useTableColumnResizeMouseHandler.js +77 -68
  460. package/lib-commonjs/hooks/useTableColumnResizeMouseHandler.js.map +1 -1
  461. package/lib-commonjs/hooks/useTableColumnResizeState.js +111 -112
  462. package/lib-commonjs/hooks/useTableColumnResizeState.js.map +1 -1
  463. package/lib-commonjs/hooks/useTableColumnSizing.js +91 -85
  464. package/lib-commonjs/hooks/useTableColumnSizing.js.map +1 -1
  465. package/lib-commonjs/hooks/useTableFeatures.js +51 -44
  466. package/lib-commonjs/hooks/useTableFeatures.js.map +1 -1
  467. package/lib-commonjs/hooks/useTableSelection.js +83 -75
  468. package/lib-commonjs/hooks/useTableSelection.js.map +1 -1
  469. package/lib-commonjs/hooks/useTableSort.js +86 -83
  470. package/lib-commonjs/hooks/useTableSort.js.map +1 -1
  471. package/lib-commonjs/index.js +133 -632
  472. package/lib-commonjs/index.js.map +1 -1
  473. package/lib-commonjs/utils/columnResizeUtils.js +120 -145
  474. package/lib-commonjs/utils/columnResizeUtils.js.map +1 -1
  475. package/package.json +16 -15
  476. package/lib-amd/DataGrid.js +0 -6
  477. package/lib-amd/DataGrid.js.map +0 -1
  478. package/lib-amd/DataGridBody.js +0 -6
  479. package/lib-amd/DataGridBody.js.map +0 -1
  480. package/lib-amd/DataGridCell.js +0 -6
  481. package/lib-amd/DataGridCell.js.map +0 -1
  482. package/lib-amd/DataGridHeader.js +0 -6
  483. package/lib-amd/DataGridHeader.js.map +0 -1
  484. package/lib-amd/DataGridHeaderCell.js +0 -6
  485. package/lib-amd/DataGridHeaderCell.js.map +0 -1
  486. package/lib-amd/DataGridRow.js +0 -6
  487. package/lib-amd/DataGridRow.js.map +0 -1
  488. package/lib-amd/DataGridSelectionCell.js +0 -6
  489. package/lib-amd/DataGridSelectionCell.js.map +0 -1
  490. package/lib-amd/Table.js +0 -6
  491. package/lib-amd/Table.js.map +0 -1
  492. package/lib-amd/TableBody.js +0 -6
  493. package/lib-amd/TableBody.js.map +0 -1
  494. package/lib-amd/TableCell.js +0 -6
  495. package/lib-amd/TableCell.js.map +0 -1
  496. package/lib-amd/TableCellActions.js +0 -6
  497. package/lib-amd/TableCellActions.js.map +0 -1
  498. package/lib-amd/TableCellLayout.js +0 -6
  499. package/lib-amd/TableCellLayout.js.map +0 -1
  500. package/lib-amd/TableHeader.js +0 -6
  501. package/lib-amd/TableHeader.js.map +0 -1
  502. package/lib-amd/TableHeaderCell.js +0 -6
  503. package/lib-amd/TableHeaderCell.js.map +0 -1
  504. package/lib-amd/TableResizeHandle.js +0 -6
  505. package/lib-amd/TableResizeHandle.js.map +0 -1
  506. package/lib-amd/TableRow.js +0 -6
  507. package/lib-amd/TableRow.js.map +0 -1
  508. package/lib-amd/TableSelectionCell.js +0 -6
  509. package/lib-amd/TableSelectionCell.js.map +0 -1
  510. package/lib-amd/components/DataGrid/DataGrid.js +0 -17
  511. package/lib-amd/components/DataGrid/DataGrid.js.map +0 -1
  512. package/lib-amd/components/DataGrid/DataGrid.types.js +0 -5
  513. package/lib-amd/components/DataGrid/DataGrid.types.js.map +0 -1
  514. package/lib-amd/components/DataGrid/index.js +0 -11
  515. package/lib-amd/components/DataGrid/index.js.map +0 -1
  516. package/lib-amd/components/DataGrid/renderDataGrid.js +0 -13
  517. package/lib-amd/components/DataGrid/renderDataGrid.js.map +0 -1
  518. package/lib-amd/components/DataGrid/useDataGrid.js +0 -67
  519. package/lib-amd/components/DataGrid/useDataGrid.js.map +0 -1
  520. package/lib-amd/components/DataGrid/useDataGridContextValues.js +0 -11
  521. package/lib-amd/components/DataGrid/useDataGridContextValues.js.map +0 -1
  522. package/lib-amd/components/DataGrid/useDataGridStyles.js +0 -18
  523. package/lib-amd/components/DataGrid/useDataGridStyles.js.map +0 -1
  524. package/lib-amd/components/DataGridBody/DataGridBody.js +0 -17
  525. package/lib-amd/components/DataGridBody/DataGridBody.js.map +0 -1
  526. package/lib-amd/components/DataGridBody/DataGridBody.types.js +0 -5
  527. package/lib-amd/components/DataGridBody/DataGridBody.types.js.map +0 -1
  528. package/lib-amd/components/DataGridBody/index.js +0 -10
  529. package/lib-amd/components/DataGridBody/index.js.map +0 -1
  530. package/lib-amd/components/DataGridBody/renderDataGridBody.js +0 -14
  531. package/lib-amd/components/DataGridBody/renderDataGridBody.js.map +0 -1
  532. package/lib-amd/components/DataGridBody/useDataGridBody.js +0 -24
  533. package/lib-amd/components/DataGridBody/useDataGridBody.js.map +0 -1
  534. package/lib-amd/components/DataGridBody/useDataGridBodyStyles.js +0 -18
  535. package/lib-amd/components/DataGridBody/useDataGridBodyStyles.js.map +0 -1
  536. package/lib-amd/components/DataGridCell/DataGridCell.js +0 -17
  537. package/lib-amd/components/DataGridCell/DataGridCell.js.map +0 -1
  538. package/lib-amd/components/DataGridCell/DataGridCell.types.js +0 -5
  539. package/lib-amd/components/DataGridCell/DataGridCell.types.js.map +0 -1
  540. package/lib-amd/components/DataGridCell/index.js +0 -10
  541. package/lib-amd/components/DataGridCell/index.js.map +0 -1
  542. package/lib-amd/components/DataGridCell/renderDataGridCell.js +0 -13
  543. package/lib-amd/components/DataGridCell/renderDataGridCell.js.map +0 -1
  544. package/lib-amd/components/DataGridCell/useDataGridCell.js +0 -23
  545. package/lib-amd/components/DataGridCell/useDataGridCell.js.map +0 -1
  546. package/lib-amd/components/DataGridCell/useDataGridCellStyles.js +0 -18
  547. package/lib-amd/components/DataGridCell/useDataGridCellStyles.js.map +0 -1
  548. package/lib-amd/components/DataGridHeader/DataGridHeader.js +0 -17
  549. package/lib-amd/components/DataGridHeader/DataGridHeader.js.map +0 -1
  550. package/lib-amd/components/DataGridHeader/DataGridHeader.types.js +0 -5
  551. package/lib-amd/components/DataGridHeader/DataGridHeader.types.js.map +0 -1
  552. package/lib-amd/components/DataGridHeader/index.js +0 -10
  553. package/lib-amd/components/DataGridHeader/index.js.map +0 -1
  554. package/lib-amd/components/DataGridHeader/renderDataGridHeader.js +0 -13
  555. package/lib-amd/components/DataGridHeader/renderDataGridHeader.js.map +0 -1
  556. package/lib-amd/components/DataGridHeader/useDataGridHeader.js +0 -19
  557. package/lib-amd/components/DataGridHeader/useDataGridHeader.js.map +0 -1
  558. package/lib-amd/components/DataGridHeader/useDataGridHeaderStyles.js +0 -18
  559. package/lib-amd/components/DataGridHeader/useDataGridHeaderStyles.js.map +0 -1
  560. package/lib-amd/components/DataGridHeaderCell/DataGridHeaderCell.js +0 -17
  561. package/lib-amd/components/DataGridHeaderCell/DataGridHeaderCell.js.map +0 -1
  562. package/lib-amd/components/DataGridHeaderCell/DataGridHeaderCell.types.js +0 -5
  563. package/lib-amd/components/DataGridHeaderCell/DataGridHeaderCell.types.js.map +0 -1
  564. package/lib-amd/components/DataGridHeaderCell/index.js +0 -10
  565. package/lib-amd/components/DataGridHeaderCell/index.js.map +0 -1
  566. package/lib-amd/components/DataGridHeaderCell/renderDataGridHeaderCell.js +0 -13
  567. package/lib-amd/components/DataGridHeaderCell/renderDataGridHeaderCell.js.map +0 -1
  568. package/lib-amd/components/DataGridHeaderCell/useDataGridHeaderCell.js +0 -34
  569. package/lib-amd/components/DataGridHeaderCell/useDataGridHeaderCell.js.map +0 -1
  570. package/lib-amd/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js +0 -30
  571. package/lib-amd/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js.map +0 -1
  572. package/lib-amd/components/DataGridRow/DataGridRow.js +0 -17
  573. package/lib-amd/components/DataGridRow/DataGridRow.js.map +0 -1
  574. package/lib-amd/components/DataGridRow/DataGridRow.types.js +0 -5
  575. package/lib-amd/components/DataGridRow/DataGridRow.types.js.map +0 -1
  576. package/lib-amd/components/DataGridRow/index.js +0 -10
  577. package/lib-amd/components/DataGridRow/index.js.map +0 -1
  578. package/lib-amd/components/DataGridRow/renderDataGridRow.js +0 -16
  579. package/lib-amd/components/DataGridRow/renderDataGridRow.js.map +0 -1
  580. package/lib-amd/components/DataGridRow/useDataGridRow.js +0 -50
  581. package/lib-amd/components/DataGridRow/useDataGridRow.js.map +0 -1
  582. package/lib-amd/components/DataGridRow/useDataGridRowStyles.js +0 -22
  583. package/lib-amd/components/DataGridRow/useDataGridRowStyles.js.map +0 -1
  584. package/lib-amd/components/DataGridSelectionCell/DataGridSelectionCell.js +0 -17
  585. package/lib-amd/components/DataGridSelectionCell/DataGridSelectionCell.js.map +0 -1
  586. package/lib-amd/components/DataGridSelectionCell/DataGridSelectionCell.types.js +0 -5
  587. package/lib-amd/components/DataGridSelectionCell/DataGridSelectionCell.types.js.map +0 -1
  588. package/lib-amd/components/DataGridSelectionCell/index.js +0 -10
  589. package/lib-amd/components/DataGridSelectionCell/index.js.map +0 -1
  590. package/lib-amd/components/DataGridSelectionCell/renderDataGridSelectionCell.js +0 -13
  591. package/lib-amd/components/DataGridSelectionCell/renderDataGridSelectionCell.js.map +0 -1
  592. package/lib-amd/components/DataGridSelectionCell/useDataGridSelectionCell.js +0 -39
  593. package/lib-amd/components/DataGridSelectionCell/useDataGridSelectionCell.js.map +0 -1
  594. package/lib-amd/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js +0 -26
  595. package/lib-amd/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js.map +0 -1
  596. package/lib-amd/components/Table/Table.js +0 -17
  597. package/lib-amd/components/Table/Table.js.map +0 -1
  598. package/lib-amd/components/Table/Table.types.js +0 -5
  599. package/lib-amd/components/Table/Table.types.js.map +0 -1
  600. package/lib-amd/components/Table/index.js +0 -10
  601. package/lib-amd/components/Table/index.js.map +0 -1
  602. package/lib-amd/components/Table/renderTable.js +0 -15
  603. package/lib-amd/components/Table/renderTable.js.map +0 -1
  604. package/lib-amd/components/Table/useTable.js +0 -29
  605. package/lib-amd/components/Table/useTable.js.map +0 -1
  606. package/lib-amd/components/Table/useTableContextValues.js +0 -18
  607. package/lib-amd/components/Table/useTableContextValues.js.map +0 -1
  608. package/lib-amd/components/Table/useTableStyles.js +0 -45
  609. package/lib-amd/components/Table/useTableStyles.js.map +0 -1
  610. package/lib-amd/components/TableBody/TableBody.js +0 -17
  611. package/lib-amd/components/TableBody/TableBody.js.map +0 -1
  612. package/lib-amd/components/TableBody/TableBody.types.js +0 -5
  613. package/lib-amd/components/TableBody/TableBody.types.js.map +0 -1
  614. package/lib-amd/components/TableBody/index.js +0 -10
  615. package/lib-amd/components/TableBody/index.js.map +0 -1
  616. package/lib-amd/components/TableBody/renderTableBody.js +0 -14
  617. package/lib-amd/components/TableBody/renderTableBody.js.map +0 -1
  618. package/lib-amd/components/TableBody/useTableBody.js +0 -28
  619. package/lib-amd/components/TableBody/useTableBody.js.map +0 -1
  620. package/lib-amd/components/TableBody/useTableBodyStyles.js +0 -32
  621. package/lib-amd/components/TableBody/useTableBodyStyles.js.map +0 -1
  622. package/lib-amd/components/TableCell/TableCell.js +0 -17
  623. package/lib-amd/components/TableCell/TableCell.js.map +0 -1
  624. package/lib-amd/components/TableCell/TableCell.types.js +0 -5
  625. package/lib-amd/components/TableCell/TableCell.types.js.map +0 -1
  626. package/lib-amd/components/TableCell/index.js +0 -10
  627. package/lib-amd/components/TableCell/index.js.map +0 -1
  628. package/lib-amd/components/TableCell/renderTableCell.js +0 -14
  629. package/lib-amd/components/TableCell/renderTableCell.js.map +0 -1
  630. package/lib-amd/components/TableCell/useTableCell.js +0 -29
  631. package/lib-amd/components/TableCell/useTableCell.js.map +0 -1
  632. package/lib-amd/components/TableCell/useTableCellStyles.js +0 -56
  633. package/lib-amd/components/TableCell/useTableCellStyles.js.map +0 -1
  634. package/lib-amd/components/TableCellActions/TableCellActions.js +0 -17
  635. package/lib-amd/components/TableCellActions/TableCellActions.js.map +0 -1
  636. package/lib-amd/components/TableCellActions/TableCellActions.types.js +0 -5
  637. package/lib-amd/components/TableCellActions/TableCellActions.types.js.map +0 -1
  638. package/lib-amd/components/TableCellActions/index.js +0 -10
  639. package/lib-amd/components/TableCellActions/index.js.map +0 -1
  640. package/lib-amd/components/TableCellActions/renderTableCellActions.js +0 -14
  641. package/lib-amd/components/TableCellActions/renderTableCellActions.js.map +0 -1
  642. package/lib-amd/components/TableCellActions/useTableCellActions.js +0 -26
  643. package/lib-amd/components/TableCellActions/useTableCellActions.js.map +0 -1
  644. package/lib-amd/components/TableCellActions/useTableCellActionsStyles.js +0 -35
  645. package/lib-amd/components/TableCellActions/useTableCellActionsStyles.js.map +0 -1
  646. package/lib-amd/components/TableCellLayout/TableCellLayout.js +0 -17
  647. package/lib-amd/components/TableCellLayout/TableCellLayout.js.map +0 -1
  648. package/lib-amd/components/TableCellLayout/TableCellLayout.types.js +0 -5
  649. package/lib-amd/components/TableCellLayout/TableCellLayout.types.js.map +0 -1
  650. package/lib-amd/components/TableCellLayout/index.js +0 -10
  651. package/lib-amd/components/TableCellLayout/index.js.map +0 -1
  652. package/lib-amd/components/TableCellLayout/renderTableCellLayout.js +0 -19
  653. package/lib-amd/components/TableCellLayout/renderTableCellLayout.js.map +0 -1
  654. package/lib-amd/components/TableCellLayout/useTableCellLayout.js +0 -42
  655. package/lib-amd/components/TableCellLayout/useTableCellLayout.js.map +0 -1
  656. package/lib-amd/components/TableCellLayout/useTableCellLayoutContextValues.js +0 -16
  657. package/lib-amd/components/TableCellLayout/useTableCellLayoutContextValues.js.map +0 -1
  658. package/lib-amd/components/TableCellLayout/useTableCellLayoutStyles.js +0 -79
  659. package/lib-amd/components/TableCellLayout/useTableCellLayoutStyles.js.map +0 -1
  660. package/lib-amd/components/TableHeader/TableHeader.js +0 -17
  661. package/lib-amd/components/TableHeader/TableHeader.js.map +0 -1
  662. package/lib-amd/components/TableHeader/TableHeader.types.js +0 -5
  663. package/lib-amd/components/TableHeader/TableHeader.types.js.map +0 -1
  664. package/lib-amd/components/TableHeader/index.js +0 -10
  665. package/lib-amd/components/TableHeader/index.js.map +0 -1
  666. package/lib-amd/components/TableHeader/renderTableHeader.js +0 -15
  667. package/lib-amd/components/TableHeader/renderTableHeader.js.map +0 -1
  668. package/lib-amd/components/TableHeader/useTableHeader.js +0 -28
  669. package/lib-amd/components/TableHeader/useTableHeader.js.map +0 -1
  670. package/lib-amd/components/TableHeader/useTableHeaderStyles.js +0 -32
  671. package/lib-amd/components/TableHeader/useTableHeaderStyles.js.map +0 -1
  672. package/lib-amd/components/TableHeaderCell/TableHeaderCell.js +0 -17
  673. package/lib-amd/components/TableHeaderCell/TableHeaderCell.js.map +0 -1
  674. package/lib-amd/components/TableHeaderCell/TableHeaderCell.types.js +0 -5
  675. package/lib-amd/components/TableHeaderCell/TableHeaderCell.types.js.map +0 -1
  676. package/lib-amd/components/TableHeaderCell/index.js +0 -10
  677. package/lib-amd/components/TableHeaderCell/index.js.map +0 -1
  678. package/lib-amd/components/TableHeaderCell/renderTableHeaderCell.js +0 -18
  679. package/lib-amd/components/TableHeaderCell/renderTableHeaderCell.js.map +0 -1
  680. package/lib-amd/components/TableHeaderCell/useTableHeaderCell.js +0 -48
  681. package/lib-amd/components/TableHeaderCell/useTableHeaderCell.js.map +0 -1
  682. package/lib-amd/components/TableHeaderCell/useTableHeaderCellStyles.js +0 -67
  683. package/lib-amd/components/TableHeaderCell/useTableHeaderCellStyles.js.map +0 -1
  684. package/lib-amd/components/TableResizeHandle/TableResizeHandle.js +0 -17
  685. package/lib-amd/components/TableResizeHandle/TableResizeHandle.js.map +0 -1
  686. package/lib-amd/components/TableResizeHandle/TableResizeHandle.types.js +0 -5
  687. package/lib-amd/components/TableResizeHandle/TableResizeHandle.types.js.map +0 -1
  688. package/lib-amd/components/TableResizeHandle/index.js +0 -10
  689. package/lib-amd/components/TableResizeHandle/index.js.map +0 -1
  690. package/lib-amd/components/TableResizeHandle/renderTableResizeHandle.js +0 -14
  691. package/lib-amd/components/TableResizeHandle/renderTableResizeHandle.js.map +0 -1
  692. package/lib-amd/components/TableResizeHandle/useTableResizeHandle.js +0 -29
  693. package/lib-amd/components/TableResizeHandle/useTableResizeHandle.js.map +0 -1
  694. package/lib-amd/components/TableResizeHandle/useTableResizeHandleStyles.js +0 -37
  695. package/lib-amd/components/TableResizeHandle/useTableResizeHandleStyles.js.map +0 -1
  696. package/lib-amd/components/TableRow/TableRow.js +0 -17
  697. package/lib-amd/components/TableRow/TableRow.js.map +0 -1
  698. package/lib-amd/components/TableRow/TableRow.types.js +0 -5
  699. package/lib-amd/components/TableRow/TableRow.types.js.map +0 -1
  700. package/lib-amd/components/TableRow/index.js +0 -10
  701. package/lib-amd/components/TableRow/index.js.map +0 -1
  702. package/lib-amd/components/TableRow/renderTableRow.js +0 -14
  703. package/lib-amd/components/TableRow/renderTableRow.js.map +0 -1
  704. package/lib-amd/components/TableRow/useTableRow.js +0 -34
  705. package/lib-amd/components/TableRow/useTableRow.js.map +0 -1
  706. package/lib-amd/components/TableRow/useTableRowStyles.js +0 -98
  707. package/lib-amd/components/TableRow/useTableRowStyles.js.map +0 -1
  708. package/lib-amd/components/TableSelectionCell/TableSelectionCell.js +0 -17
  709. package/lib-amd/components/TableSelectionCell/TableSelectionCell.js.map +0 -1
  710. package/lib-amd/components/TableSelectionCell/TableSelectionCell.types.js +0 -5
  711. package/lib-amd/components/TableSelectionCell/TableSelectionCell.types.js.map +0 -1
  712. package/lib-amd/components/TableSelectionCell/index.js +0 -10
  713. package/lib-amd/components/TableSelectionCell/index.js.map +0 -1
  714. package/lib-amd/components/TableSelectionCell/renderTableSelectionCell.js +0 -16
  715. package/lib-amd/components/TableSelectionCell/renderTableSelectionCell.js.map +0 -1
  716. package/lib-amd/components/TableSelectionCell/useTableSelectionCell.js +0 -28
  717. package/lib-amd/components/TableSelectionCell/useTableSelectionCell.js.map +0 -1
  718. package/lib-amd/components/TableSelectionCell/useTableSelectionCellStyles.js +0 -58
  719. package/lib-amd/components/TableSelectionCell/useTableSelectionCellStyles.js.map +0 -1
  720. package/lib-amd/contexts/columnIdContext.js +0 -11
  721. package/lib-amd/contexts/columnIdContext.js.map +0 -1
  722. package/lib-amd/contexts/dataGridContext.js +0 -16
  723. package/lib-amd/contexts/dataGridContext.js.map +0 -1
  724. package/lib-amd/contexts/rowIdContext.js +0 -11
  725. package/lib-amd/contexts/rowIdContext.js.map +0 -1
  726. package/lib-amd/contexts/tableContext.js +0 -15
  727. package/lib-amd/contexts/tableContext.js.map +0 -1
  728. package/lib-amd/contexts/tableHeaderContext.js +0 -11
  729. package/lib-amd/contexts/tableHeaderContext.js.map +0 -1
  730. package/lib-amd/hooks/createColumn.js +0 -36
  731. package/lib-amd/hooks/createColumn.js.map +0 -1
  732. package/lib-amd/hooks/index.js +0 -11
  733. package/lib-amd/hooks/index.js.map +0 -1
  734. package/lib-amd/hooks/selectionManager.js +0 -82
  735. package/lib-amd/hooks/selectionManager.js.map +0 -1
  736. package/lib-amd/hooks/types.js +0 -5
  737. package/lib-amd/hooks/types.js.map +0 -1
  738. package/lib-amd/hooks/useKeyboardResizing.js +0 -97
  739. package/lib-amd/hooks/useKeyboardResizing.js.map +0 -1
  740. package/lib-amd/hooks/useMeasureElement.js +0 -46
  741. package/lib-amd/hooks/useMeasureElement.js.map +0 -1
  742. package/lib-amd/hooks/useTableColumnResizeMouseHandler.js +0 -63
  743. package/lib-amd/hooks/useTableColumnResizeMouseHandler.js.map +0 -1
  744. package/lib-amd/hooks/useTableColumnResizeState.js +0 -75
  745. package/lib-amd/hooks/useTableColumnResizeState.js.map +0 -1
  746. package/lib-amd/hooks/useTableColumnSizing.js +0 -67
  747. package/lib-amd/hooks/useTableColumnSizing.js.map +0 -1
  748. package/lib-amd/hooks/useTableFeatures.js +0 -39
  749. package/lib-amd/hooks/useTableFeatures.js.map +0 -1
  750. package/lib-amd/hooks/useTableSelection.js +0 -76
  751. package/lib-amd/hooks/useTableSelection.js.map +0 -1
  752. package/lib-amd/hooks/useTableSort.js +0 -74
  753. package/lib-amd/hooks/useTableSort.js.map +0 -1
  754. package/lib-amd/index.js +0 -107
  755. package/lib-amd/index.js.map +0 -1
  756. package/lib-amd/utils/columnResizeUtils.js +0 -158
  757. package/lib-amd/utils/columnResizeUtils.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"names":["useTableCell_unstable","useDataGridContext_unstable","useColumnIdContext","useDataGridCell_unstable","props","ref","columnId","tabbable","ctx","focusMode","resizableColumns","columnSizing","columnSizing_unstable","as","role","tabIndex","undefined","getTableCellProps"],"sources":["../src/packages/react-components/react-table/src/components/DataGridCell/useDataGridCell.ts"],"sourcesContent":["import * as React from 'react';\nimport type { DataGridCellProps, DataGridCellState } from './DataGridCell.types';\nimport { useTableCell_unstable } from '../TableCell/useTableCell';\nimport { useDataGridContext_unstable } from '../../contexts/dataGridContext';\nimport { useColumnIdContext } from '../../contexts/columnIdContext';\n\n/**\n * Create the state required to render DataGridCell.\n *\n * The returned state can be modified with hooks such as useDataGridCellStyles_unstable,\n * before being passed to renderDataGridCell_unstable.\n *\n * @param props - props from this instance of DataGridCell\n * @param ref - reference to root HTMLElement of DataGridCell\n */\nexport const useDataGridCell_unstable = (props: DataGridCellProps, ref: React.Ref<HTMLElement>): DataGridCellState => {\n const columnId = useColumnIdContext();\n const tabbable = useDataGridContext_unstable(ctx => ctx.focusMode === 'cell');\n const resizableColumns = useDataGridContext_unstable(ctx => ctx.resizableColumns);\n const columnSizing = useDataGridContext_unstable(ctx => ctx.columnSizing_unstable);\n return useTableCell_unstable(\n {\n as: 'div',\n role: 'gridcell',\n tabIndex: tabbable ? 0 : undefined,\n ...(resizableColumns ? columnSizing.getTableCellProps(columnId) : {}),\n ...props,\n },\n ref,\n );\n};\n"],"mappings":"AAEA,SAASA,qBAAqB,QAAQ,2BAA2B;AACjE,SAASC,2BAA2B,QAAQ,gCAAgC;AAC5E,SAASC,kBAAkB,QAAQ,gCAAgC;AAEnE;;;;;;;;;AASA,OAAO,MAAMC,wBAAwB,GAAGA,CAACC,KAAwB,EAAEC,GAA2B,KAAuB;EACnH,MAAMC,QAAQ,GAAGJ,kBAAkB,EAAE;EACrC,MAAMK,QAAQ,GAAGN,2BAA2B,CAACO,GAAG,IAAIA,GAAG,CAACC,SAAS,KAAK,MAAM,CAAC;EAC7E,MAAMC,gBAAgB,GAAGT,2BAA2B,CAACO,GAAG,IAAIA,GAAG,CAACE,gBAAgB,CAAC;EACjF,MAAMC,YAAY,GAAGV,2BAA2B,CAACO,GAAG,IAAIA,GAAG,CAACI,qBAAqB,CAAC;EAClF,OAAOZ,qBAAqB,CAC1B;IACEa,EAAE,EAAE,KAAK;IACTC,IAAI,EAAE,UAAU;IAChBC,QAAQ,EAAER,QAAQ,GAAG,CAAC,GAAGS,SAAS;IAClC,IAAIN,gBAAgB,GAAGC,YAAY,CAACM,iBAAiB,CAACX,QAAQ,CAAC,GAAG,EAAE,CAAC;IACrE,GAAGF;GACJ,EACDC,GAAG,CACJ;AACH,CAAC"}
1
+ {"version":3,"names":["React","useTableCell_unstable","useDataGridContext_unstable","useColumnIdContext","useDataGridCell_unstable","props","ref","columnId","tabbable","ctx","focusMode","resizableColumns","columnSizing","columnSizing_unstable","as","role","tabIndex","undefined","getTableCellProps"],"sources":["../../../src/components/DataGridCell/useDataGridCell.ts"],"sourcesContent":["import * as React from 'react';\nimport type { DataGridCellProps, DataGridCellState } from './DataGridCell.types';\nimport { useTableCell_unstable } from '../TableCell/useTableCell';\nimport { useDataGridContext_unstable } from '../../contexts/dataGridContext';\nimport { useColumnIdContext } from '../../contexts/columnIdContext';\n\n/**\n * Create the state required to render DataGridCell.\n *\n * The returned state can be modified with hooks such as useDataGridCellStyles_unstable,\n * before being passed to renderDataGridCell_unstable.\n *\n * @param props - props from this instance of DataGridCell\n * @param ref - reference to root HTMLElement of DataGridCell\n */\nexport const useDataGridCell_unstable = (props: DataGridCellProps, ref: React.Ref<HTMLElement>): DataGridCellState => {\n const columnId = useColumnIdContext();\n const tabbable = useDataGridContext_unstable(ctx => ctx.focusMode === 'cell');\n const resizableColumns = useDataGridContext_unstable(ctx => ctx.resizableColumns);\n const columnSizing = useDataGridContext_unstable(ctx => ctx.columnSizing_unstable);\n return useTableCell_unstable(\n {\n as: 'div',\n role: 'gridcell',\n tabIndex: tabbable ? 0 : undefined,\n ...(resizableColumns ? columnSizing.getTableCellProps(columnId) : {}),\n ...props,\n },\n ref,\n );\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAEvB,SAASC,qBAAqB,QAAQ;AACtC,SAASC,2BAA2B,QAAQ;AAC5C,SAASC,kBAAkB,QAAQ;AAEnC;;;;;;;;;AASA,OAAO,MAAMC,wBAAA,GAA2BA,CAACC,KAAA,EAA0BC,GAAA,KAAmD;EACpH,MAAMC,QAAA,GAAWJ,kBAAA;EACjB,MAAMK,QAAA,GAAWN,2BAAA,CAA4BO,GAAA,IAAOA,GAAA,CAAIC,SAAS,KAAK;EACtE,MAAMC,gBAAA,GAAmBT,2BAAA,CAA4BO,GAAA,IAAOA,GAAA,CAAIE,gBAAgB;EAChF,MAAMC,YAAA,GAAeV,2BAAA,CAA4BO,GAAA,IAAOA,GAAA,CAAII,qBAAqB;EACjF,OAAOZ,qBAAA,CACL;IACEa,EAAA,EAAI;IACJC,IAAA,EAAM;IACNC,QAAA,EAAUR,QAAA,GAAW,IAAIS,SAAS;IAClC,IAAIN,gBAAA,GAAmBC,YAAA,CAAaM,iBAAiB,CAACX,QAAA,IAAY,CAAC,CAAC;IACpE,GAAGF;EACL,GACAC,GAAA;AAEJ"}
@@ -1 +1 @@
1
- {"version":3,"names":["mergeClasses","useTableCellStyles_unstable","dataGridCellClassNames","root","useDataGridCellStyles_unstable","state","className"],"sources":["../src/packages/react-components/react-table/src/components/DataGridCell/useDataGridCellStyles.ts"],"sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport type { DataGridCellSlots, DataGridCellState } from './DataGridCell.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableCellStyles_unstable } from '../TableCell/useTableCellStyles';\n\nexport const dataGridCellClassNames: SlotClassNames<DataGridCellSlots> = {\n root: 'fui-DataGridCell',\n};\n\n/**\n * Apply styling to the DataGridCell slots based on the state\n */\nexport const useDataGridCellStyles_unstable = (state: DataGridCellState): DataGridCellState => {\n useTableCellStyles_unstable(state);\n state.root.className = mergeClasses(dataGridCellClassNames.root, state.root.className);\n\n return state;\n};\n"],"mappings":"AAAA,SAASA,YAAY,QAAQ,gBAAgB;AAG7C,SAASC,2BAA2B,QAAQ,iCAAiC;AAE7E,OAAO,MAAMC,sBAAsB,GAAsC;EACvEC,IAAI,EAAE;CACP;AAED;;;AAGA,OAAO,MAAMC,8BAA8B,GAAIC,KAAwB,IAAuB;EAC5FJ,2BAA2B,CAACI,KAAK,CAAC;EAClCA,KAAK,CAACF,IAAI,CAACG,SAAS,GAAGN,YAAY,CAACE,sBAAsB,CAACC,IAAI,EAAEE,KAAK,CAACF,IAAI,CAACG,SAAS,CAAC;EAEtF,OAAOD,KAAK;AACd,CAAC"}
1
+ {"version":3,"names":["mergeClasses","useTableCellStyles_unstable","dataGridCellClassNames","root","useDataGridCellStyles_unstable","state","className"],"sources":["../../../src/components/DataGridCell/useDataGridCellStyles.ts"],"sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport type { DataGridCellSlots, DataGridCellState } from './DataGridCell.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableCellStyles_unstable } from '../TableCell/useTableCellStyles';\n\nexport const dataGridCellClassNames: SlotClassNames<DataGridCellSlots> = {\n root: 'fui-DataGridCell',\n};\n\n/**\n * Apply styling to the DataGridCell slots based on the state\n */\nexport const useDataGridCellStyles_unstable = (state: DataGridCellState): DataGridCellState => {\n useTableCellStyles_unstable(state);\n state.root.className = mergeClasses(dataGridCellClassNames.root, state.root.className);\n\n return state;\n};\n"],"mappings":"AAAA,SAASA,YAAY,QAAQ;AAG7B,SAASC,2BAA2B,QAAQ;AAE5C,OAAO,MAAMC,sBAAA,GAA4D;EACvEC,IAAA,EAAM;AACR;AAEA;;;AAGA,OAAO,MAAMC,8BAAA,GAAkCC,KAAA,IAAgD;EAC7FJ,2BAAA,CAA4BI,KAAA;EAC5BA,KAAA,CAAMF,IAAI,CAACG,SAAS,GAAGN,YAAA,CAAaE,sBAAA,CAAuBC,IAAI,EAAEE,KAAA,CAAMF,IAAI,CAACG,SAAS;EAErF,OAAOD,KAAA;AACT"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","useDataGridHeader_unstable","renderDataGridHeader_unstable","useDataGridHeaderStyles_unstable","useCustomStyleHooks_unstable","DataGridHeader","forwardRef","props","ref","state","useCustomStyles","displayName"],"sources":["../src/packages/react-components/react-table/src/components/DataGridHeader/DataGridHeader.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useDataGridHeader_unstable } from './useDataGridHeader';\nimport { renderDataGridHeader_unstable } from './renderDataGridHeader';\nimport { useDataGridHeaderStyles_unstable } from './useDataGridHeaderStyles';\nimport type { DataGridHeaderProps } from './DataGridHeader.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * DataGridHeader component\n */\nexport const DataGridHeader: ForwardRefComponent<DataGridHeaderProps> = React.forwardRef((props, ref) => {\n const state = useDataGridHeader_unstable(props, ref);\n\n useDataGridHeaderStyles_unstable(state);\n\n const { useDataGridHeaderStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderDataGridHeader_unstable(state);\n});\n\nDataGridHeader.displayName = 'DataGridHeader';\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,0BAA0B,QAAQ,qBAAqB;AAChE,SAASC,6BAA6B,QAAQ,wBAAwB;AACtE,SAASC,gCAAgC,QAAQ,2BAA2B;AAG5E,SAASC,4BAA4B,QAAQ,iCAAiC;AAE9E;;;AAGA,OAAO,MAAMC,cAAc,gBAA6CL,KAAK,CAACM,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EACtG,MAAMC,KAAK,GAAGR,0BAA0B,CAACM,KAAK,EAAEC,GAAG,CAAC;EAEpDL,gCAAgC,CAACM,KAAK,CAAC;EAEvC,MAAM;IAAEN,gCAAgC,EAAEO;EAAe,CAAE,GAAGN,4BAA4B,EAAE;EAC5FM,eAAe,CAACD,KAAK,CAAC;EAEtB,OAAOP,6BAA6B,CAACO,KAAK,CAAC;AAC7C,CAAC,CAAC;AAEFJ,cAAc,CAACM,WAAW,GAAG,gBAAgB"}
1
+ {"version":3,"names":["React","useDataGridHeader_unstable","renderDataGridHeader_unstable","useDataGridHeaderStyles_unstable","useCustomStyleHooks_unstable","DataGridHeader","forwardRef","props","ref","state","useCustomStyles","displayName"],"sources":["../../../src/components/DataGridHeader/DataGridHeader.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useDataGridHeader_unstable } from './useDataGridHeader';\nimport { renderDataGridHeader_unstable } from './renderDataGridHeader';\nimport { useDataGridHeaderStyles_unstable } from './useDataGridHeaderStyles';\nimport type { DataGridHeaderProps } from './DataGridHeader.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * DataGridHeader component\n */\nexport const DataGridHeader: ForwardRefComponent<DataGridHeaderProps> = React.forwardRef((props, ref) => {\n const state = useDataGridHeader_unstable(props, ref);\n\n useDataGridHeaderStyles_unstable(state);\n\n const { useDataGridHeaderStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderDataGridHeader_unstable(state);\n});\n\nDataGridHeader.displayName = 'DataGridHeader';\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,0BAA0B,QAAQ;AAC3C,SAASC,6BAA6B,QAAQ;AAC9C,SAASC,gCAAgC,QAAQ;AAGjD,SAASC,4BAA4B,QAAQ;AAE7C;;;AAGA,OAAO,MAAMC,cAAA,gBAA2DL,KAAA,CAAMM,UAAU,CAAC,CAACC,KAAA,EAAOC,GAAA,KAAQ;EACvG,MAAMC,KAAA,GAAQR,0BAAA,CAA2BM,KAAA,EAAOC,GAAA;EAEhDL,gCAAA,CAAiCM,KAAA;EAEjC,MAAM;IAAEN,gCAAA,EAAkCO;EAAe,CAAE,GAAGN,4BAAA;EAC9DM,eAAA,CAAgBD,KAAA;EAEhB,OAAOP,6BAAA,CAA8BO,KAAA;AACvC;AAEAJ,cAAA,CAAeM,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"DataGridHeader.types.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/DataGridHeader/DataGridHeader.types.ts"],"names":[],"mappings":"","sourcesContent":["import { TableHeaderProps, TableHeaderSlots, TableHeaderState } from '../TableHeader/TableHeader.types';\n\nexport type DataGridHeaderSlots = TableHeaderSlots;\n\n/**\n * DataGridHeader Props\n */\nexport type DataGridHeaderProps = TableHeaderProps;\n\n/**\n * State used in rendering DataGridHeader\n */\nexport type DataGridHeaderState = TableHeaderState;\n"]}
1
+ {"version":3,"names":[],"sources":["../../../src/components/DataGridHeader/DataGridHeader.types.ts"],"sourcesContent":["import { TableHeaderProps, TableHeaderSlots, TableHeaderState } from '../TableHeader/TableHeader.types';\n\nexport type DataGridHeaderSlots = TableHeaderSlots;\n\n/**\n * DataGridHeader Props\n */\nexport type DataGridHeaderProps = TableHeaderProps;\n\n/**\n * State used in rendering DataGridHeader\n */\nexport type DataGridHeaderState = TableHeaderState;\n"],"mappings":"AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/DataGridHeader/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC","sourcesContent":["export * from './DataGridHeader';\nexport * from './DataGridHeader.types';\nexport * from './renderDataGridHeader';\nexport * from './useDataGridHeader';\nexport * from './useDataGridHeaderStyles';\n"]}
1
+ {"version":3,"names":[],"sources":["../../../src/components/DataGridHeader/index.ts"],"sourcesContent":["export * from './DataGridHeader';\nexport * from './DataGridHeader.types';\nexport * from './renderDataGridHeader';\nexport * from './useDataGridHeader';\nexport * from './useDataGridHeaderStyles';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"names":["renderTableHeader_unstable","renderDataGridHeader_unstable","state"],"sources":["../src/packages/react-components/react-table/src/components/DataGridHeader/renderDataGridHeader.tsx"],"sourcesContent":["import { renderTableHeader_unstable } from '../TableHeader/renderTableHeader';\nimport type { DataGridHeaderState } from './DataGridHeader.types';\n\n/**\n * Render the final JSX of DataGridHeader\n */\nexport const renderDataGridHeader_unstable = (state: DataGridHeaderState) => {\n return renderTableHeader_unstable(state);\n};\n"],"mappings":"AAAA,SAASA,0BAA0B,QAAQ,kCAAkC;AAG7E;;;AAGA,OAAO,MAAMC,6BAA6B,GAAIC,KAA0B,IAAI;EAC1E,OAAOF,0BAA0B,CAACE,KAAK,CAAC;AAC1C,CAAC"}
1
+ {"version":3,"names":["renderTableHeader_unstable","renderDataGridHeader_unstable","state"],"sources":["../../../src/components/DataGridHeader/renderDataGridHeader.tsx"],"sourcesContent":["import { renderTableHeader_unstable } from '../TableHeader/renderTableHeader';\nimport type { DataGridHeaderState } from './DataGridHeader.types';\n\n/**\n * Render the final JSX of DataGridHeader\n */\nexport const renderDataGridHeader_unstable = (state: DataGridHeaderState) => {\n return renderTableHeader_unstable(state);\n};\n"],"mappings":"AAAA,SAASA,0BAA0B,QAAQ;AAG3C;;;AAGA,OAAO,MAAMC,6BAAA,GAAiCC,KAAA,IAA+B;EAC3E,OAAOF,0BAAA,CAA2BE,KAAA;AACpC"}
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { useTableHeader_unstable } from '../TableHeader/useTableHeader';
2
3
  /**
3
4
  * Create the state required to render DataGridHeader.
@@ -1 +1 @@
1
- {"version":3,"names":["useTableHeader_unstable","useDataGridHeader_unstable","props","ref","as"],"sources":["../src/packages/react-components/react-table/src/components/DataGridHeader/useDataGridHeader.ts"],"sourcesContent":["import * as React from 'react';\nimport type { DataGridHeaderProps, DataGridHeaderState } from './DataGridHeader.types';\nimport { useTableHeader_unstable } from '../TableHeader/useTableHeader';\n\n/**\n * Create the state required to render DataGridHeader.\n *\n * The returned state can be modified with hooks such as useDataGridHeaderStyles_unstable,\n * before being passed to renderDataGridHeader_unstable.\n *\n * @param props - props from this instance of DataGridHeader\n * @param ref - reference to root HTMLElement of DataGridHeader\n */\nexport const useDataGridHeader_unstable = (\n props: DataGridHeaderProps,\n ref: React.Ref<HTMLElement>,\n): DataGridHeaderState => {\n return useTableHeader_unstable({ ...props, as: 'div' }, ref);\n};\n"],"mappings":"AAEA,SAASA,uBAAuB,QAAQ,+BAA+B;AAEvE;;;;;;;;;AASA,OAAO,MAAMC,0BAA0B,GAAGA,CACxCC,KAA0B,EAC1BC,GAA2B,KACJ;EACvB,OAAOH,uBAAuB,CAAC;IAAE,GAAGE,KAAK;IAAEE,EAAE,EAAE;EAAK,CAAE,EAAED,GAAG,CAAC;AAC9D,CAAC"}
1
+ {"version":3,"names":["React","useTableHeader_unstable","useDataGridHeader_unstable","props","ref","as"],"sources":["../../../src/components/DataGridHeader/useDataGridHeader.ts"],"sourcesContent":["import * as React from 'react';\nimport type { DataGridHeaderProps, DataGridHeaderState } from './DataGridHeader.types';\nimport { useTableHeader_unstable } from '../TableHeader/useTableHeader';\n\n/**\n * Create the state required to render DataGridHeader.\n *\n * The returned state can be modified with hooks such as useDataGridHeaderStyles_unstable,\n * before being passed to renderDataGridHeader_unstable.\n *\n * @param props - props from this instance of DataGridHeader\n * @param ref - reference to root HTMLElement of DataGridHeader\n */\nexport const useDataGridHeader_unstable = (\n props: DataGridHeaderProps,\n ref: React.Ref<HTMLElement>,\n): DataGridHeaderState => {\n return useTableHeader_unstable({ ...props, as: 'div' }, ref);\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAEvB,SAASC,uBAAuB,QAAQ;AAExC;;;;;;;;;AASA,OAAO,MAAMC,0BAAA,GAA6BA,CACxCC,KAAA,EACAC,GAAA,KACwB;EACxB,OAAOH,uBAAA,CAAwB;IAAE,GAAGE,KAAK;IAAEE,EAAA,EAAI;EAAM,GAAGD,GAAA;AAC1D"}
@@ -1 +1 @@
1
- {"version":3,"names":["mergeClasses","useTableHeaderStyles_unstable","dataGridHeaderClassNames","root","useDataGridHeaderStyles_unstable","state","className"],"sources":["../src/packages/react-components/react-table/src/components/DataGridHeader/useDataGridHeaderStyles.ts"],"sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport type { DataGridHeaderSlots, DataGridHeaderState } from './DataGridHeader.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableHeaderStyles_unstable } from '../TableHeader/useTableHeaderStyles';\n\nexport const dataGridHeaderClassNames: SlotClassNames<DataGridHeaderSlots> = {\n root: 'fui-DataGridHeader',\n};\n\n/**\n * Apply styling to the DataGridHeader slots based on the state\n */\nexport const useDataGridHeaderStyles_unstable = (state: DataGridHeaderState): DataGridHeaderState => {\n useTableHeaderStyles_unstable(state);\n state.root.className = mergeClasses(dataGridHeaderClassNames.root, state.root.className);\n\n return state;\n};\n"],"mappings":"AAAA,SAASA,YAAY,QAAQ,gBAAgB;AAG7C,SAASC,6BAA6B,QAAQ,qCAAqC;AAEnF,OAAO,MAAMC,wBAAwB,GAAwC;EAC3EC,IAAI,EAAE;CACP;AAED;;;AAGA,OAAO,MAAMC,gCAAgC,GAAIC,KAA0B,IAAyB;EAClGJ,6BAA6B,CAACI,KAAK,CAAC;EACpCA,KAAK,CAACF,IAAI,CAACG,SAAS,GAAGN,YAAY,CAACE,wBAAwB,CAACC,IAAI,EAAEE,KAAK,CAACF,IAAI,CAACG,SAAS,CAAC;EAExF,OAAOD,KAAK;AACd,CAAC"}
1
+ {"version":3,"names":["mergeClasses","useTableHeaderStyles_unstable","dataGridHeaderClassNames","root","useDataGridHeaderStyles_unstable","state","className"],"sources":["../../../src/components/DataGridHeader/useDataGridHeaderStyles.ts"],"sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport type { DataGridHeaderSlots, DataGridHeaderState } from './DataGridHeader.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableHeaderStyles_unstable } from '../TableHeader/useTableHeaderStyles';\n\nexport const dataGridHeaderClassNames: SlotClassNames<DataGridHeaderSlots> = {\n root: 'fui-DataGridHeader',\n};\n\n/**\n * Apply styling to the DataGridHeader slots based on the state\n */\nexport const useDataGridHeaderStyles_unstable = (state: DataGridHeaderState): DataGridHeaderState => {\n useTableHeaderStyles_unstable(state);\n state.root.className = mergeClasses(dataGridHeaderClassNames.root, state.root.className);\n\n return state;\n};\n"],"mappings":"AAAA,SAASA,YAAY,QAAQ;AAG7B,SAASC,6BAA6B,QAAQ;AAE9C,OAAO,MAAMC,wBAAA,GAAgE;EAC3EC,IAAA,EAAM;AACR;AAEA;;;AAGA,OAAO,MAAMC,gCAAA,GAAoCC,KAAA,IAAoD;EACnGJ,6BAAA,CAA8BI,KAAA;EAC9BA,KAAA,CAAMF,IAAI,CAACG,SAAS,GAAGN,YAAA,CAAaE,wBAAA,CAAyBC,IAAI,EAAEE,KAAA,CAAMF,IAAI,CAACG,SAAS;EAEvF,OAAOD,KAAA;AACT"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","useDataGridHeaderCell_unstable","renderDataGridHeaderCell_unstable","useDataGridHeaderCellStyles_unstable","useCustomStyleHooks_unstable","DataGridHeaderCell","forwardRef","props","ref","state","useCustomStyles","displayName"],"sources":["../src/packages/react-components/react-table/src/components/DataGridHeaderCell/DataGridHeaderCell.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useDataGridHeaderCell_unstable } from './useDataGridHeaderCell';\nimport { renderDataGridHeaderCell_unstable } from './renderDataGridHeaderCell';\nimport { useDataGridHeaderCellStyles_unstable } from './useDataGridHeaderCellStyles';\nimport type { DataGridHeaderCellProps } from './DataGridHeaderCell.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * DataGridHeaderCell component\n */\nexport const DataGridHeaderCell: ForwardRefComponent<DataGridHeaderCellProps> = React.forwardRef((props, ref) => {\n const state = useDataGridHeaderCell_unstable(props, ref);\n\n useDataGridHeaderCellStyles_unstable(state);\n\n const { useDataGridHeaderCellStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderDataGridHeaderCell_unstable(state);\n});\n\nDataGridHeaderCell.displayName = 'DataGridHeaderCell';\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,8BAA8B,QAAQ,yBAAyB;AACxE,SAASC,iCAAiC,QAAQ,4BAA4B;AAC9E,SAASC,oCAAoC,QAAQ,+BAA+B;AAGpF,SAASC,4BAA4B,QAAQ,iCAAiC;AAE9E;;;AAGA,OAAO,MAAMC,kBAAkB,gBAAiDL,KAAK,CAACM,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EAC9G,MAAMC,KAAK,GAAGR,8BAA8B,CAACM,KAAK,EAAEC,GAAG,CAAC;EAExDL,oCAAoC,CAACM,KAAK,CAAC;EAE3C,MAAM;IAAEN,oCAAoC,EAAEO;EAAe,CAAE,GAAGN,4BAA4B,EAAE;EAChGM,eAAe,CAACD,KAAK,CAAC;EAEtB,OAAOP,iCAAiC,CAACO,KAAK,CAAC;AACjD,CAAC,CAAC;AAEFJ,kBAAkB,CAACM,WAAW,GAAG,oBAAoB"}
1
+ {"version":3,"names":["React","useDataGridHeaderCell_unstable","renderDataGridHeaderCell_unstable","useDataGridHeaderCellStyles_unstable","useCustomStyleHooks_unstable","DataGridHeaderCell","forwardRef","props","ref","state","useCustomStyles","displayName"],"sources":["../../../src/components/DataGridHeaderCell/DataGridHeaderCell.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useDataGridHeaderCell_unstable } from './useDataGridHeaderCell';\nimport { renderDataGridHeaderCell_unstable } from './renderDataGridHeaderCell';\nimport { useDataGridHeaderCellStyles_unstable } from './useDataGridHeaderCellStyles';\nimport type { DataGridHeaderCellProps } from './DataGridHeaderCell.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * DataGridHeaderCell component\n */\nexport const DataGridHeaderCell: ForwardRefComponent<DataGridHeaderCellProps> = React.forwardRef((props, ref) => {\n const state = useDataGridHeaderCell_unstable(props, ref);\n\n useDataGridHeaderCellStyles_unstable(state);\n\n const { useDataGridHeaderCellStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderDataGridHeaderCell_unstable(state);\n});\n\nDataGridHeaderCell.displayName = 'DataGridHeaderCell';\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,8BAA8B,QAAQ;AAC/C,SAASC,iCAAiC,QAAQ;AAClD,SAASC,oCAAoC,QAAQ;AAGrD,SAASC,4BAA4B,QAAQ;AAE7C;;;AAGA,OAAO,MAAMC,kBAAA,gBAAmEL,KAAA,CAAMM,UAAU,CAAC,CAACC,KAAA,EAAOC,GAAA,KAAQ;EAC/G,MAAMC,KAAA,GAAQR,8BAAA,CAA+BM,KAAA,EAAOC,GAAA;EAEpDL,oCAAA,CAAqCM,KAAA;EAErC,MAAM;IAAEN,oCAAA,EAAsCO;EAAe,CAAE,GAAGN,4BAAA;EAClEM,eAAA,CAAgBD,KAAA;EAEhB,OAAOP,iCAAA,CAAkCO,KAAA;AAC3C;AAEAJ,kBAAA,CAAmBM,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"DataGridHeaderCell.types.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/DataGridHeaderCell/DataGridHeaderCell.types.ts"],"names":[],"mappings":"","sourcesContent":["import {\n TableHeaderCellProps,\n TableHeaderCellSlots,\n TableHeaderCellState,\n} from '../TableHeaderCell/TableHeaderCell.types';\n\nexport type DataGridHeaderCellSlots = TableHeaderCellSlots;\n\n/**\n * DataGridHeaderCell Props\n */\nexport type DataGridHeaderCellProps = TableHeaderCellProps;\n\n/**\n * State used in rendering DataGridHeaderCell\n */\nexport type DataGridHeaderCellState = TableHeaderCellState;\n"]}
1
+ {"version":3,"names":[],"sources":["../../../src/components/DataGridHeaderCell/DataGridHeaderCell.types.ts"],"sourcesContent":["import {\n TableHeaderCellProps,\n TableHeaderCellSlots,\n TableHeaderCellState,\n} from '../TableHeaderCell/TableHeaderCell.types';\n\nexport type DataGridHeaderCellSlots = TableHeaderCellSlots;\n\n/**\n * DataGridHeaderCell Props\n */\nexport type DataGridHeaderCellProps = TableHeaderCellProps;\n\n/**\n * State used in rendering DataGridHeaderCell\n */\nexport type DataGridHeaderCellState = TableHeaderCellState;\n"],"mappings":"AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/DataGridHeaderCell/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC","sourcesContent":["export * from './DataGridHeaderCell';\nexport * from './DataGridHeaderCell.types';\nexport * from './renderDataGridHeaderCell';\nexport * from './useDataGridHeaderCell';\nexport * from './useDataGridHeaderCellStyles';\n"]}
1
+ {"version":3,"names":[],"sources":["../../../src/components/DataGridHeaderCell/index.ts"],"sourcesContent":["export * from './DataGridHeaderCell';\nexport * from './DataGridHeaderCell.types';\nexport * from './renderDataGridHeaderCell';\nexport * from './useDataGridHeaderCell';\nexport * from './useDataGridHeaderCellStyles';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"names":["renderTableHeaderCell_unstable","renderDataGridHeaderCell_unstable","state"],"sources":["../src/packages/react-components/react-table/src/components/DataGridHeaderCell/renderDataGridHeaderCell.tsx"],"sourcesContent":["import type { DataGridHeaderCellState } from './DataGridHeaderCell.types';\nimport { renderTableHeaderCell_unstable } from '../TableHeaderCell/renderTableHeaderCell';\n\n/**\n * Render the final JSX of DataGridHeaderCell\n */\nexport const renderDataGridHeaderCell_unstable = (state: DataGridHeaderCellState) => {\n return renderTableHeaderCell_unstable(state);\n};\n"],"mappings":"AACA,SAASA,8BAA8B,QAAQ,0CAA0C;AAEzF;;;AAGA,OAAO,MAAMC,iCAAiC,GAAIC,KAA8B,IAAI;EAClF,OAAOF,8BAA8B,CAACE,KAAK,CAAC;AAC9C,CAAC"}
1
+ {"version":3,"names":["renderTableHeaderCell_unstable","renderDataGridHeaderCell_unstable","state"],"sources":["../../../src/components/DataGridHeaderCell/renderDataGridHeaderCell.tsx"],"sourcesContent":["import type { DataGridHeaderCellState } from './DataGridHeaderCell.types';\nimport { renderTableHeaderCell_unstable } from '../TableHeaderCell/renderTableHeaderCell';\n\n/**\n * Render the final JSX of DataGridHeaderCell\n */\nexport const renderDataGridHeaderCell_unstable = (state: DataGridHeaderCellState) => {\n return renderTableHeaderCell_unstable(state);\n};\n"],"mappings":"AACA,SAASA,8BAA8B,QAAQ;AAE/C;;;AAGA,OAAO,MAAMC,iCAAA,GAAqCC,KAAA,IAAmC;EACnF,OAAOF,8BAAA,CAA+BE,KAAA;AACxC"}
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { useEventCallback } from '@fluentui/react-utilities';
2
3
  import { useTableHeaderCell_unstable } from '../TableHeaderCell/useTableHeaderCell';
3
4
  import { useDataGridContext_unstable } from '../../contexts/dataGridContext';
@@ -22,11 +23,11 @@ export const useDataGridHeaderCell_unstable = (props, ref) => {
22
23
  const resizableColumns = useDataGridContext_unstable(ctx => ctx.resizableColumns);
23
24
  const columnSizing = useDataGridContext_unstable(ctx => ctx.columnSizing_unstable);
24
25
  const onClick = useEventCallback(e => {
25
- var _a;
26
+ var _props_onClick;
26
27
  if (sortable) {
27
28
  toggleColumnSort(e, columnId);
28
29
  }
29
- (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props, e);
30
+ (_props_onClick = props.onClick) === null || _props_onClick === void 0 ? void 0 : _props_onClick.call(props, e);
30
31
  });
31
32
  return useTableHeaderCell_unstable({
32
33
  sortDirection,
@@ -1 +1 @@
1
- {"version":3,"names":["useEventCallback","useTableHeaderCell_unstable","useDataGridContext_unstable","useColumnIdContext","useTableContext","useDataGridHeaderCell_unstable","props","ref","columnId","sortable","toggleColumnSort","ctx","sort","sortDirection","getSortDirection","undefined","resizableColumns","columnSizing","columnSizing_unstable","onClick","e","_a","call","as","tabIndex","getTableHeaderCellProps"],"sources":["../src/packages/react-components/react-table/src/components/DataGridHeaderCell/useDataGridHeaderCell.ts"],"sourcesContent":["import * as React from 'react';\nimport { useEventCallback } from '@fluentui/react-utilities';\nimport type { DataGridHeaderCellProps, DataGridHeaderCellState } from './DataGridHeaderCell.types';\nimport { useTableHeaderCell_unstable } from '../TableHeaderCell/useTableHeaderCell';\nimport { useDataGridContext_unstable } from '../../contexts/dataGridContext';\nimport { useColumnIdContext } from '../../contexts/columnIdContext';\nimport { useTableContext } from '../../contexts/tableContext';\n\n/**\n * Create the state required to render DataGridHeaderCell.\n *\n * The returned state can be modified with hooks such as useDataGridHeaderCellStyles_unstable,\n * before being passed to renderDataGridHeaderCell_unstable.\n *\n * @param props - props from this instance of DataGridHeaderCell\n * @param ref - reference to root HTMLElement of DataGridHeaderCell\n */\nexport const useDataGridHeaderCell_unstable = (\n props: DataGridHeaderCellProps,\n ref: React.Ref<HTMLElement>,\n): DataGridHeaderCellState => {\n const columnId = useColumnIdContext();\n const { sortable } = useTableContext();\n const toggleColumnSort = useDataGridContext_unstable(ctx => ctx.sort.toggleColumnSort);\n const sortDirection = useDataGridContext_unstable(ctx =>\n sortable ? ctx.sort.getSortDirection(columnId) : undefined,\n );\n\n const resizableColumns = useDataGridContext_unstable(ctx => ctx.resizableColumns);\n const columnSizing = useDataGridContext_unstable(ctx => ctx.columnSizing_unstable);\n\n const onClick = useEventCallback((e: React.MouseEvent<HTMLTableHeaderCellElement>) => {\n if (sortable) {\n toggleColumnSort(e, columnId);\n }\n props.onClick?.(e);\n });\n\n return useTableHeaderCell_unstable(\n {\n sortDirection,\n as: 'div',\n tabIndex: sortable ? undefined : 0,\n ...(resizableColumns ? columnSizing.getTableHeaderCellProps(columnId) : {}),\n ...props,\n onClick,\n },\n ref,\n );\n};\n"],"mappings":"AACA,SAASA,gBAAgB,QAAQ,2BAA2B;AAE5D,SAASC,2BAA2B,QAAQ,uCAAuC;AACnF,SAASC,2BAA2B,QAAQ,gCAAgC;AAC5E,SAASC,kBAAkB,QAAQ,gCAAgC;AACnE,SAASC,eAAe,QAAQ,6BAA6B;AAE7D;;;;;;;;;AASA,OAAO,MAAMC,8BAA8B,GAAGA,CAC5CC,KAA8B,EAC9BC,GAA2B,KACA;EAC3B,MAAMC,QAAQ,GAAGL,kBAAkB,EAAE;EACrC,MAAM;IAAEM;EAAQ,CAAE,GAAGL,eAAe,EAAE;EACtC,MAAMM,gBAAgB,GAAGR,2BAA2B,CAACS,GAAG,IAAIA,GAAG,CAACC,IAAI,CAACF,gBAAgB,CAAC;EACtF,MAAMG,aAAa,GAAGX,2BAA2B,CAACS,GAAG,IACnDF,QAAQ,GAAGE,GAAG,CAACC,IAAI,CAACE,gBAAgB,CAACN,QAAQ,CAAC,GAAGO,SAAS,CAC3D;EAED,MAAMC,gBAAgB,GAAGd,2BAA2B,CAACS,GAAG,IAAIA,GAAG,CAACK,gBAAgB,CAAC;EACjF,MAAMC,YAAY,GAAGf,2BAA2B,CAACS,GAAG,IAAIA,GAAG,CAACO,qBAAqB,CAAC;EAElF,MAAMC,OAAO,GAAGnB,gBAAgB,CAAEoB,CAA+C,IAAI;;IACnF,IAAIX,QAAQ,EAAE;MACZC,gBAAgB,CAACU,CAAC,EAAEZ,QAAQ,CAAC;;IAE/B,CAAAa,EAAA,GAAAf,KAAK,CAACa,OAAO,cAAAE,EAAA,uBAAAA,EAAA,CAAAC,IAAA,CAAbhB,KAAK,EAAWc,CAAC,CAAC;EACpB,CAAC,CAAC;EAEF,OAAOnB,2BAA2B,CAChC;IACEY,aAAa;IACbU,EAAE,EAAE,KAAK;IACTC,QAAQ,EAAEf,QAAQ,GAAGM,SAAS,GAAG,CAAC;IAClC,IAAIC,gBAAgB,GAAGC,YAAY,CAACQ,uBAAuB,CAACjB,QAAQ,CAAC,GAAG,EAAE,CAAC;IAC3E,GAAGF,KAAK;IACRa;GACD,EACDZ,GAAG,CACJ;AACH,CAAC"}
1
+ {"version":3,"names":["React","useEventCallback","useTableHeaderCell_unstable","useDataGridContext_unstable","useColumnIdContext","useTableContext","useDataGridHeaderCell_unstable","props","ref","columnId","sortable","toggleColumnSort","ctx","sort","sortDirection","getSortDirection","undefined","resizableColumns","columnSizing","columnSizing_unstable","onClick","e","_props_onClick","call","as","tabIndex","getTableHeaderCellProps"],"sources":["../../../src/components/DataGridHeaderCell/useDataGridHeaderCell.ts"],"sourcesContent":["import * as React from 'react';\nimport { useEventCallback } from '@fluentui/react-utilities';\nimport type { DataGridHeaderCellProps, DataGridHeaderCellState } from './DataGridHeaderCell.types';\nimport { useTableHeaderCell_unstable } from '../TableHeaderCell/useTableHeaderCell';\nimport { useDataGridContext_unstable } from '../../contexts/dataGridContext';\nimport { useColumnIdContext } from '../../contexts/columnIdContext';\nimport { useTableContext } from '../../contexts/tableContext';\n\n/**\n * Create the state required to render DataGridHeaderCell.\n *\n * The returned state can be modified with hooks such as useDataGridHeaderCellStyles_unstable,\n * before being passed to renderDataGridHeaderCell_unstable.\n *\n * @param props - props from this instance of DataGridHeaderCell\n * @param ref - reference to root HTMLElement of DataGridHeaderCell\n */\nexport const useDataGridHeaderCell_unstable = (\n props: DataGridHeaderCellProps,\n ref: React.Ref<HTMLElement>,\n): DataGridHeaderCellState => {\n const columnId = useColumnIdContext();\n const { sortable } = useTableContext();\n const toggleColumnSort = useDataGridContext_unstable(ctx => ctx.sort.toggleColumnSort);\n const sortDirection = useDataGridContext_unstable(ctx =>\n sortable ? ctx.sort.getSortDirection(columnId) : undefined,\n );\n\n const resizableColumns = useDataGridContext_unstable(ctx => ctx.resizableColumns);\n const columnSizing = useDataGridContext_unstable(ctx => ctx.columnSizing_unstable);\n\n const onClick = useEventCallback((e: React.MouseEvent<HTMLTableHeaderCellElement>) => {\n if (sortable) {\n toggleColumnSort(e, columnId);\n }\n props.onClick?.(e);\n });\n\n return useTableHeaderCell_unstable(\n {\n sortDirection,\n as: 'div',\n tabIndex: sortable ? undefined : 0,\n ...(resizableColumns ? columnSizing.getTableHeaderCellProps(columnId) : {}),\n ...props,\n onClick,\n },\n ref,\n );\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,gBAAgB,QAAQ;AAEjC,SAASC,2BAA2B,QAAQ;AAC5C,SAASC,2BAA2B,QAAQ;AAC5C,SAASC,kBAAkB,QAAQ;AACnC,SAASC,eAAe,QAAQ;AAEhC;;;;;;;;;AASA,OAAO,MAAMC,8BAAA,GAAiCA,CAC5CC,KAAA,EACAC,GAAA,KAC4B;EAC5B,MAAMC,QAAA,GAAWL,kBAAA;EACjB,MAAM;IAAEM;EAAQ,CAAE,GAAGL,eAAA;EACrB,MAAMM,gBAAA,GAAmBR,2BAAA,CAA4BS,GAAA,IAAOA,GAAA,CAAIC,IAAI,CAACF,gBAAgB;EACrF,MAAMG,aAAA,GAAgBX,2BAAA,CAA4BS,GAAA,IAChDF,QAAA,GAAWE,GAAA,CAAIC,IAAI,CAACE,gBAAgB,CAACN,QAAA,IAAYO,SAAS;EAG5D,MAAMC,gBAAA,GAAmBd,2BAAA,CAA4BS,GAAA,IAAOA,GAAA,CAAIK,gBAAgB;EAChF,MAAMC,YAAA,GAAef,2BAAA,CAA4BS,GAAA,IAAOA,GAAA,CAAIO,qBAAqB;EAEjF,MAAMC,OAAA,GAAUnB,gBAAA,CAAkBoB,CAAA,IAAoD;QAIpFC,cAAA;IAHA,IAAIZ,QAAA,EAAU;MACZC,gBAAA,CAAiBU,CAAA,EAAGZ,QAAA;IACtB;IACA,CAAAa,cAAA,GAAAf,KAAA,CAAMa,OAAO,cAAbE,cAAA,uBAAAA,cAAA,CAAAC,IAAA,CAAAhB,KAAA,EAAgBc,CAAA;EAClB;EAEA,OAAOnB,2BAAA,CACL;IACEY,aAAA;IACAU,EAAA,EAAI;IACJC,QAAA,EAAUf,QAAA,GAAWM,SAAA,GAAY,CAAC;IAClC,IAAIC,gBAAA,GAAmBC,YAAA,CAAaQ,uBAAuB,CAACjB,QAAA,IAAY,CAAC,CAAC;IAC1E,GAAGF,KAAK;IACRa;EACF,GACAZ,GAAA;AAEJ"}
@@ -1 +1 @@
1
- {"version":3,"names":["mergeClasses","useTableHeaderCellStyles_unstable","dataGridHeaderCellClassNames","root","button","sortIcon","aside","useDataGridHeaderCellStyles_unstable","state","className"],"sources":["../src/packages/react-components/react-table/src/components/DataGridHeaderCell/useDataGridHeaderCellStyles.ts"],"sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport type { DataGridHeaderCellSlots, DataGridHeaderCellState } from './DataGridHeaderCell.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableHeaderCellStyles_unstable } from '../TableHeaderCell/useTableHeaderCellStyles';\n\nexport const dataGridHeaderCellClassNames: SlotClassNames<DataGridHeaderCellSlots> = {\n root: 'fui-DataGridHeaderCell',\n button: 'fui-DataGridHeaderCell__button',\n sortIcon: 'fui-DataGridHeaderCell__sortIcon',\n aside: 'fui-DataGridHeaderCell__aside',\n};\n\n/**\n * Apply styling to the DataGridHeaderCell slots based on the state\n */\nexport const useDataGridHeaderCellStyles_unstable = (state: DataGridHeaderCellState): DataGridHeaderCellState => {\n useTableHeaderCellStyles_unstable(state);\n state.root.className = mergeClasses(dataGridHeaderCellClassNames.root, state.root.className);\n\n if (state.button) {\n state.button.className = mergeClasses(dataGridHeaderCellClassNames.button, state.button.className);\n }\n\n if (state.sortIcon) {\n state.sortIcon.className = mergeClasses(dataGridHeaderCellClassNames.sortIcon, state.sortIcon.className);\n }\n\n if (state.aside) {\n state.aside.className = mergeClasses(dataGridHeaderCellClassNames.aside, state.aside.className);\n }\n\n return state;\n};\n"],"mappings":"AAAA,SAASA,YAAY,QAAQ,gBAAgB;AAG7C,SAASC,iCAAiC,QAAQ,6CAA6C;AAE/F,OAAO,MAAMC,4BAA4B,GAA4C;EACnFC,IAAI,EAAE,wBAAwB;EAC9BC,MAAM,EAAE,gCAAgC;EACxCC,QAAQ,EAAE,kCAAkC;EAC5CC,KAAK,EAAE;CACR;AAED;;;AAGA,OAAO,MAAMC,oCAAoC,GAAIC,KAA8B,IAA6B;EAC9GP,iCAAiC,CAACO,KAAK,CAAC;EACxCA,KAAK,CAACL,IAAI,CAACM,SAAS,GAAGT,YAAY,CAACE,4BAA4B,CAACC,IAAI,EAAEK,KAAK,CAACL,IAAI,CAACM,SAAS,CAAC;EAE5F,IAAID,KAAK,CAACJ,MAAM,EAAE;IAChBI,KAAK,CAACJ,MAAM,CAACK,SAAS,GAAGT,YAAY,CAACE,4BAA4B,CAACE,MAAM,EAAEI,KAAK,CAACJ,MAAM,CAACK,SAAS,CAAC;;EAGpG,IAAID,KAAK,CAACH,QAAQ,EAAE;IAClBG,KAAK,CAACH,QAAQ,CAACI,SAAS,GAAGT,YAAY,CAACE,4BAA4B,CAACG,QAAQ,EAAEG,KAAK,CAACH,QAAQ,CAACI,SAAS,CAAC;;EAG1G,IAAID,KAAK,CAACF,KAAK,EAAE;IACfE,KAAK,CAACF,KAAK,CAACG,SAAS,GAAGT,YAAY,CAACE,4BAA4B,CAACI,KAAK,EAAEE,KAAK,CAACF,KAAK,CAACG,SAAS,CAAC;;EAGjG,OAAOD,KAAK;AACd,CAAC"}
1
+ {"version":3,"names":["mergeClasses","useTableHeaderCellStyles_unstable","dataGridHeaderCellClassNames","root","button","sortIcon","aside","useDataGridHeaderCellStyles_unstable","state","className"],"sources":["../../../src/components/DataGridHeaderCell/useDataGridHeaderCellStyles.ts"],"sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport type { DataGridHeaderCellSlots, DataGridHeaderCellState } from './DataGridHeaderCell.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableHeaderCellStyles_unstable } from '../TableHeaderCell/useTableHeaderCellStyles';\n\nexport const dataGridHeaderCellClassNames: SlotClassNames<DataGridHeaderCellSlots> = {\n root: 'fui-DataGridHeaderCell',\n button: 'fui-DataGridHeaderCell__button',\n sortIcon: 'fui-DataGridHeaderCell__sortIcon',\n aside: 'fui-DataGridHeaderCell__aside',\n};\n\n/**\n * Apply styling to the DataGridHeaderCell slots based on the state\n */\nexport const useDataGridHeaderCellStyles_unstable = (state: DataGridHeaderCellState): DataGridHeaderCellState => {\n useTableHeaderCellStyles_unstable(state);\n state.root.className = mergeClasses(dataGridHeaderCellClassNames.root, state.root.className);\n\n if (state.button) {\n state.button.className = mergeClasses(dataGridHeaderCellClassNames.button, state.button.className);\n }\n\n if (state.sortIcon) {\n state.sortIcon.className = mergeClasses(dataGridHeaderCellClassNames.sortIcon, state.sortIcon.className);\n }\n\n if (state.aside) {\n state.aside.className = mergeClasses(dataGridHeaderCellClassNames.aside, state.aside.className);\n }\n\n return state;\n};\n"],"mappings":"AAAA,SAASA,YAAY,QAAQ;AAG7B,SAASC,iCAAiC,QAAQ;AAElD,OAAO,MAAMC,4BAAA,GAAwE;EACnFC,IAAA,EAAM;EACNC,MAAA,EAAQ;EACRC,QAAA,EAAU;EACVC,KAAA,EAAO;AACT;AAEA;;;AAGA,OAAO,MAAMC,oCAAA,GAAwCC,KAAA,IAA4D;EAC/GP,iCAAA,CAAkCO,KAAA;EAClCA,KAAA,CAAML,IAAI,CAACM,SAAS,GAAGT,YAAA,CAAaE,4BAAA,CAA6BC,IAAI,EAAEK,KAAA,CAAML,IAAI,CAACM,SAAS;EAE3F,IAAID,KAAA,CAAMJ,MAAM,EAAE;IAChBI,KAAA,CAAMJ,MAAM,CAACK,SAAS,GAAGT,YAAA,CAAaE,4BAAA,CAA6BE,MAAM,EAAEI,KAAA,CAAMJ,MAAM,CAACK,SAAS;EACnG;EAEA,IAAID,KAAA,CAAMH,QAAQ,EAAE;IAClBG,KAAA,CAAMH,QAAQ,CAACI,SAAS,GAAGT,YAAA,CAAaE,4BAAA,CAA6BG,QAAQ,EAAEG,KAAA,CAAMH,QAAQ,CAACI,SAAS;EACzG;EAEA,IAAID,KAAA,CAAMF,KAAK,EAAE;IACfE,KAAA,CAAMF,KAAK,CAACG,SAAS,GAAGT,YAAA,CAAaE,4BAAA,CAA6BI,KAAK,EAAEE,KAAA,CAAMF,KAAK,CAACG,SAAS;EAChG;EAEA,OAAOD,KAAA;AACT"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","useDataGridRow_unstable","renderDataGridRow_unstable","useDataGridRowStyles_unstable","useCustomStyleHooks_unstable","DataGridRow","forwardRef","props","ref","state","useCustomStyles","displayName"],"sources":["../src/packages/react-components/react-table/src/components/DataGridRow/DataGridRow.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useDataGridRow_unstable } from './useDataGridRow';\nimport { renderDataGridRow_unstable } from './renderDataGridRow';\nimport { useDataGridRowStyles_unstable } from './useDataGridRowStyles';\nimport type { DataGridRowProps } from './DataGridRow.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * DataGridRow component\n */\nexport const DataGridRow: ForwardRefComponent<DataGridRowProps> &\n (<TItem>(props: DataGridRowProps<TItem>) => JSX.Element) = React.forwardRef((props, ref) => {\n const state = useDataGridRow_unstable(props, ref);\n\n useDataGridRowStyles_unstable(state);\n\n const { useDataGridRowStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderDataGridRow_unstable(state);\n}) as ForwardRefComponent<DataGridRowProps> & (<TItem>(props: DataGridRowProps<TItem>) => JSX.Element);\n\nDataGridRow.displayName = 'DataGridRow';\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,uBAAuB,QAAQ,kBAAkB;AAC1D,SAASC,0BAA0B,QAAQ,qBAAqB;AAChE,SAASC,6BAA6B,QAAQ,wBAAwB;AAGtE,SAASC,4BAA4B,QAAQ,iCAAiC;AAE9E;;;AAGA,OAAO,MAAMC,WAAW,gBACqCL,KAAK,CAACM,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EAC3F,MAAMC,KAAK,GAAGR,uBAAuB,CAACM,KAAK,EAAEC,GAAG,CAAC;EAEjDL,6BAA6B,CAACM,KAAK,CAAC;EAEpC,MAAM;IAAEN,6BAA6B,EAAEO;EAAe,CAAE,GAAGN,4BAA4B,EAAE;EACzFM,eAAe,CAACD,KAAK,CAAC;EAEtB,OAAOP,0BAA0B,CAACO,KAAK,CAAC;AAC1C,CAAC,CAAqG;AAEtGJ,WAAW,CAACM,WAAW,GAAG,aAAa"}
1
+ {"version":3,"names":["React","useDataGridRow_unstable","renderDataGridRow_unstable","useDataGridRowStyles_unstable","useCustomStyleHooks_unstable","DataGridRow","forwardRef","props","ref","state","useCustomStyles","displayName"],"sources":["../../../src/components/DataGridRow/DataGridRow.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useDataGridRow_unstable } from './useDataGridRow';\nimport { renderDataGridRow_unstable } from './renderDataGridRow';\nimport { useDataGridRowStyles_unstable } from './useDataGridRowStyles';\nimport type { DataGridRowProps } from './DataGridRow.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * DataGridRow component\n */\nexport const DataGridRow: ForwardRefComponent<DataGridRowProps> &\n (<TItem>(props: DataGridRowProps<TItem>) => JSX.Element) = React.forwardRef((props, ref) => {\n const state = useDataGridRow_unstable(props, ref);\n\n useDataGridRowStyles_unstable(state);\n\n const { useDataGridRowStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderDataGridRow_unstable(state);\n}) as ForwardRefComponent<DataGridRowProps> & (<TItem>(props: DataGridRowProps<TItem>) => JSX.Element);\n\nDataGridRow.displayName = 'DataGridRow';\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,uBAAuB,QAAQ;AACxC,SAASC,0BAA0B,QAAQ;AAC3C,SAASC,6BAA6B,QAAQ;AAG9C,SAASC,4BAA4B,QAAQ;AAE7C;;;AAGA,OAAO,MAAMC,WAAA,gBACgDL,KAAA,CAAMM,UAAU,CAAC,CAACC,KAAA,EAAOC,GAAA,KAAQ;EAC5F,MAAMC,KAAA,GAAQR,uBAAA,CAAwBM,KAAA,EAAOC,GAAA;EAE7CL,6BAAA,CAA8BM,KAAA;EAE9B,MAAM;IAAEN,6BAAA,EAA+BO;EAAe,CAAE,GAAGN,4BAAA;EAC3DM,eAAA,CAAgBD,KAAA;EAEhB,OAAOP,0BAAA,CAA2BO,KAAA;AACpC;AAEAJ,WAAA,CAAYM,WAAW,GAAG"}
@@ -1,2 +1,2 @@
1
- export {};
1
+ import * as React from 'react';
2
2
  //# sourceMappingURL=DataGridRow.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataGridRow.types.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/DataGridRow/DataGridRow.types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { TableColumnDefinition } from '../../hooks';\nimport { DataGridContextValue } from '../DataGrid/DataGrid.types';\nimport type { TableRowProps, TableRowSlots, TableRowState } from '../TableRow/TableRow.types';\nimport type { TableSelectionCell } from '../TableSelectionCell/TableSelectionCell';\n\nexport type DataGridRowSlots = TableRowSlots & {\n /**\n * When selection is enabled on the @see DataGrid, all rows\n * will render the selection cell.\n */\n selectionCell?: Slot<typeof TableSelectionCell>;\n};\n\nexport type CellRenderFunction<TItem = unknown> = (\n column: TableColumnDefinition<TItem>,\n dataGridContextValue: DataGridContextValue,\n) => React.ReactNode;\n\n/**\n * DataGridRow Props\n */\nexport type DataGridRowProps<TItem = unknown> = Omit<TableRowProps, 'children'> &\n Omit<ComponentProps<DataGridRowSlots>, 'children'> & {\n children: CellRenderFunction<TItem>;\n };\n\n/**\n * State used in rendering DataGridRow\n */\nexport type DataGridRowState = TableRowState &\n ComponentState<DataGridRowSlots> & {\n renderCell: CellRenderFunction;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n columnDefs: TableColumnDefinition<any>[];\n dataGridContextValue: DataGridContextValue;\n };\n"]}
1
+ {"version":3,"names":["React"],"sources":["../../../src/components/DataGridRow/DataGridRow.types.ts"],"sourcesContent":["import * as React from 'react';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { TableColumnDefinition } from '../../hooks';\nimport { DataGridContextValue } from '../DataGrid/DataGrid.types';\nimport type { TableRowProps, TableRowSlots, TableRowState } from '../TableRow/TableRow.types';\nimport type { TableSelectionCell } from '../TableSelectionCell/TableSelectionCell';\n\nexport type DataGridRowSlots = TableRowSlots & {\n /**\n * When selection is enabled on the @see DataGrid, all rows\n * will render the selection cell.\n */\n selectionCell?: Slot<typeof TableSelectionCell>;\n};\n\nexport type CellRenderFunction<TItem = unknown> = (\n column: TableColumnDefinition<TItem>,\n dataGridContextValue: DataGridContextValue,\n) => React.ReactNode;\n\n/**\n * DataGridRow Props\n */\nexport type DataGridRowProps<TItem = unknown> = Omit<TableRowProps, 'children'> &\n Omit<ComponentProps<DataGridRowSlots>, 'children'> & {\n children: CellRenderFunction<TItem>;\n };\n\n/**\n * State used in rendering DataGridRow\n */\nexport type DataGridRowState = TableRowState &\n ComponentState<DataGridRowSlots> & {\n renderCell: CellRenderFunction;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n columnDefs: TableColumnDefinition<any>[];\n dataGridContextValue: DataGridContextValue;\n };\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/DataGridRow/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC","sourcesContent":["export * from './DataGridRow';\nexport * from './DataGridRow.types';\nexport * from './renderDataGridRow';\nexport * from './useDataGridRow';\nexport * from './useDataGridRowStyles';\n"]}
1
+ {"version":3,"names":[],"sources":["../../../src/components/DataGridRow/index.ts"],"sourcesContent":["export * from './DataGridRow';\nexport * from './DataGridRow.types';\nexport * from './renderDataGridRow';\nexport * from './useDataGridRow';\nexport * from './useDataGridRowStyles';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc"}
@@ -9,11 +9,7 @@ export const renderDataGridRow_unstable = state => {
9
9
  slots,
10
10
  slotProps
11
11
  } = getSlots(state);
12
- return /*#__PURE__*/React.createElement(slots.root, {
13
- ...slotProps.root
14
- }, slots.selectionCell && /*#__PURE__*/React.createElement(slots.selectionCell, {
15
- ...slotProps.selectionCell
16
- }), state.columnDefs.map(columnDef => /*#__PURE__*/React.createElement(ColumnIdContextProvider, {
12
+ return /*#__PURE__*/React.createElement(slots.root, slotProps.root, slots.selectionCell && /*#__PURE__*/React.createElement(slots.selectionCell, slotProps.selectionCell), state.columnDefs.map(columnDef => /*#__PURE__*/React.createElement(ColumnIdContextProvider, {
17
13
  value: columnDef.columnId,
18
14
  key: columnDef.columnId
19
15
  }, state.renderCell(columnDef, state.dataGridContextValue))));
@@ -1 +1 @@
1
- {"version":3,"names":["React","getSlots","ColumnIdContextProvider","renderDataGridRow_unstable","state","slots","slotProps","createElement","root","selectionCell","columnDefs","map","columnDef","value","columnId","key","renderCell","dataGridContextValue"],"sources":["../src/packages/react-components/react-table/src/components/DataGridRow/renderDataGridRow.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { DataGridRowState, DataGridRowSlots } from './DataGridRow.types';\nimport { ColumnIdContextProvider } from '../../contexts/columnIdContext';\n\n/**\n * Render the final JSX of DataGridRow\n */\nexport const renderDataGridRow_unstable = (state: DataGridRowState) => {\n const { slots, slotProps } = getSlots<DataGridRowSlots>(state);\n\n return (\n <slots.root {...slotProps.root}>\n {slots.selectionCell && <slots.selectionCell {...slotProps.selectionCell} />}\n {state.columnDefs.map(columnDef => (\n <ColumnIdContextProvider value={columnDef.columnId} key={columnDef.columnId}>\n {state.renderCell(columnDef, state.dataGridContextValue)}\n </ColumnIdContextProvider>\n ))}\n </slots.root>\n );\n};\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,2BAA2B;AAEpD,SAASC,uBAAuB,QAAQ,gCAAgC;AAExE;;;AAGA,OAAO,MAAMC,0BAA0B,GAAIC,KAAuB,IAAI;EACpE,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAE,GAAGL,QAAQ,CAAmBG,KAAK,CAAC;EAE9D,oBACEJ,KAAA,CAAAO,aAAA,CAACF,KAAK,CAACG,IAAI;IAAA,GAAKF,SAAS,CAACE;EAAI,GAC3BH,KAAK,CAACI,aAAa,iBAAIT,KAAA,CAAAO,aAAA,CAACF,KAAK,CAACI,aAAa;IAAA,GAAKH,SAAS,CAACG;EAAa,EAAI,EAC3EL,KAAK,CAACM,UAAU,CAACC,GAAG,CAACC,SAAS,iBAC7BZ,KAAA,CAAAO,aAAA,CAACL,uBAAuB;IAACW,KAAK,EAAED,SAAS,CAACE,QAAQ;IAAEC,GAAG,EAAEH,SAAS,CAACE;EAAQ,GACxEV,KAAK,CAACY,UAAU,CAACJ,SAAS,EAAER,KAAK,CAACa,oBAAoB,CAAC,CAE3D,CAAC,CACS;AAEjB,CAAC"}
1
+ {"version":3,"names":["React","getSlots","ColumnIdContextProvider","renderDataGridRow_unstable","state","slots","slotProps","createElement","root","selectionCell","columnDefs","map","columnDef","value","columnId","key","renderCell","dataGridContextValue"],"sources":["../../../src/components/DataGridRow/renderDataGridRow.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { DataGridRowState, DataGridRowSlots } from './DataGridRow.types';\nimport { ColumnIdContextProvider } from '../../contexts/columnIdContext';\n\n/**\n * Render the final JSX of DataGridRow\n */\nexport const renderDataGridRow_unstable = (state: DataGridRowState) => {\n const { slots, slotProps } = getSlots<DataGridRowSlots>(state);\n\n return (\n <slots.root {...slotProps.root}>\n {slots.selectionCell && <slots.selectionCell {...slotProps.selectionCell} />}\n {state.columnDefs.map(columnDef => (\n <ColumnIdContextProvider value={columnDef.columnId} key={columnDef.columnId}>\n {state.renderCell(columnDef, state.dataGridContextValue)}\n </ColumnIdContextProvider>\n ))}\n </slots.root>\n );\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,QAAQ,QAAQ;AAEzB,SAASC,uBAAuB,QAAQ;AAExC;;;AAGA,OAAO,MAAMC,0BAAA,GAA8BC,KAAA,IAA4B;EACrE,MAAM;IAAEC,KAAA;IAAOC;EAAS,CAAE,GAAGL,QAAA,CAA2BG,KAAA;EAExD,oBACEJ,KAAA,CAAAO,aAAA,CAACF,KAAA,CAAMG,IAAI,EAAKF,SAAA,CAAUE,IAAI,EAC3BH,KAAA,CAAMI,aAAa,iBAAIT,KAAA,CAAAO,aAAA,CAACF,KAAA,CAAMI,aAAa,EAAKH,SAAA,CAAUG,aAAa,GACvEL,KAAA,CAAMM,UAAU,CAACC,GAAG,CAACC,SAAA,iBACpBZ,KAAA,CAAAO,aAAA,CAACL,uBAAA;IAAwBW,KAAA,EAAOD,SAAA,CAAUE,QAAQ;IAAEC,GAAA,EAAKH,SAAA,CAAUE;KAChEV,KAAA,CAAMY,UAAU,CAACJ,SAAA,EAAWR,KAAA,CAAMa,oBAAoB;AAKjE"}
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { isInteractiveHTMLElement, useEventCallback, resolveShorthand } from '@fluentui/react-utilities';
2
3
  import { Space } from '@fluentui/keyboard-keys';
3
4
  import { useTableRow_unstable } from '../TableRow/useTableRow';
@@ -30,20 +31,20 @@ export const useDataGridRow_unstable = (props, ref) => {
30
31
  const toggleRow = useDataGridContext_unstable(ctx => ctx.selection.toggleRow);
31
32
  const dataGridContextValue = useDataGridContext_unstable(ctx => ctx);
32
33
  const onClick = useEventCallback(e => {
33
- var _a;
34
+ var _props_onClick;
34
35
  if (selectable && !isHeader) {
35
36
  toggleRow(e, rowId);
36
37
  }
37
- (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props, e);
38
+ (_props_onClick = props.onClick) === null || _props_onClick === void 0 ? void 0 : _props_onClick.call(props, e);
38
39
  });
39
40
  const onKeyDown = useEventCallback(e => {
40
- var _a;
41
+ var _props_onKeyDown;
41
42
  if (selectable && !isHeader && e.key === Space && !isInteractiveHTMLElement(e.target)) {
42
43
  // stop scrolling
43
44
  e.preventDefault();
44
45
  toggleRow(e, rowId);
45
46
  }
46
- (_a = props.onKeyDown) === null || _a === void 0 ? void 0 : _a.call(props, e);
47
+ (_props_onKeyDown = props.onKeyDown) === null || _props_onKeyDown === void 0 ? void 0 : _props_onKeyDown.call(props, e);
47
48
  });
48
49
  const baseState = useTableRow_unstable({
49
50
  appearance,
@@ -1 +1 @@
1
- {"version":3,"names":["isInteractiveHTMLElement","useEventCallback","resolveShorthand","Space","useTableRow_unstable","useDataGridContext_unstable","DataGridSelectionCell","useTableRowIdContext","useIsInTableHeader","useDataGridRow_unstable","props","ref","rowId","isHeader","columnDefs","ctx","columns","selectable","selectableRows","selected","selection","isRowSelected","tabbable","focusMode","appearance","selectionAppearance","toggleRow","dataGridContextValue","onClick","e","_a","call","onKeyDown","key","target","preventDefault","baseState","undefined","children","as","tabIndex","components","selectionCell","required","renderCell"],"sources":["../src/packages/react-components/react-table/src/components/DataGridRow/useDataGridRow.tsx"],"sourcesContent":["import * as React from 'react';\nimport { isInteractiveHTMLElement, useEventCallback, resolveShorthand } from '@fluentui/react-utilities';\nimport { Space } from '@fluentui/keyboard-keys';\nimport type { DataGridRowProps, DataGridRowState } from './DataGridRow.types';\nimport { useTableRow_unstable } from '../TableRow/useTableRow';\nimport { useDataGridContext_unstable } from '../../contexts/dataGridContext';\nimport { DataGridSelectionCell } from '../DataGridSelectionCell/DataGridSelectionCell';\nimport { useTableRowIdContext } from '../../contexts/rowIdContext';\nimport { useIsInTableHeader } from '../../contexts/tableHeaderContext';\n\n/**\n * Create the state required to render DataGridRow.\n *\n * The returned state can be modified with hooks such as useDataGridRowStyles_unstable,\n * before being passed to renderDataGridRow_unstable.\n *\n * @param props - props from this instance of DataGridRow\n * @param ref - reference to root HTMLElement of DataGridRow\n */\nexport const useDataGridRow_unstable = (props: DataGridRowProps, ref: React.Ref<HTMLElement>): DataGridRowState => {\n const rowId = useTableRowIdContext();\n const isHeader = useIsInTableHeader();\n const columnDefs = useDataGridContext_unstable(ctx => ctx.columns);\n const selectable = useDataGridContext_unstable(ctx => ctx.selectableRows);\n const selected = useDataGridContext_unstable(ctx => ctx.selection.isRowSelected(rowId));\n const tabbable = useDataGridContext_unstable(ctx => ctx.focusMode === 'row_unstable');\n const appearance = useDataGridContext_unstable(ctx => {\n if (!isHeader && selectable && ctx.selection.isRowSelected(rowId)) {\n return ctx.selectionAppearance;\n }\n\n return 'none';\n });\n const toggleRow = useDataGridContext_unstable(ctx => ctx.selection.toggleRow);\n const dataGridContextValue = useDataGridContext_unstable(ctx => ctx);\n\n const onClick = useEventCallback((e: React.MouseEvent<HTMLTableRowElement>) => {\n if (selectable && !isHeader) {\n toggleRow(e, rowId);\n }\n\n props.onClick?.(e);\n });\n\n const onKeyDown = useEventCallback((e: React.KeyboardEvent<HTMLTableRowElement>) => {\n if (selectable && !isHeader && e.key === Space && !isInteractiveHTMLElement(e.target as HTMLElement)) {\n // stop scrolling\n e.preventDefault();\n toggleRow(e, rowId);\n }\n\n props.onKeyDown?.(e);\n });\n\n const baseState = useTableRow_unstable(\n {\n appearance,\n 'aria-selected': selectable ? selected : undefined,\n ...props,\n onClick,\n onKeyDown,\n children: null,\n as: 'div',\n tabIndex: tabbable && !isHeader ? 0 : undefined,\n },\n ref,\n );\n\n return {\n ...baseState,\n components: {\n ...baseState.components,\n selectionCell: DataGridSelectionCell,\n },\n selectionCell: resolveShorthand(props.selectionCell, { required: selectable }),\n renderCell: props.children,\n columnDefs,\n dataGridContextValue,\n };\n};\n"],"mappings":"AACA,SAASA,wBAAwB,EAAEC,gBAAgB,EAAEC,gBAAgB,QAAQ,2BAA2B;AACxG,SAASC,KAAK,QAAQ,yBAAyB;AAE/C,SAASC,oBAAoB,QAAQ,yBAAyB;AAC9D,SAASC,2BAA2B,QAAQ,gCAAgC;AAC5E,SAASC,qBAAqB,QAAQ,gDAAgD;AACtF,SAASC,oBAAoB,QAAQ,6BAA6B;AAClE,SAASC,kBAAkB,QAAQ,mCAAmC;AAEtE;;;;;;;;;AASA,OAAO,MAAMC,uBAAuB,GAAGA,CAACC,KAAuB,EAAEC,GAA2B,KAAsB;EAChH,MAAMC,KAAK,GAAGL,oBAAoB,EAAE;EACpC,MAAMM,QAAQ,GAAGL,kBAAkB,EAAE;EACrC,MAAMM,UAAU,GAAGT,2BAA2B,CAACU,GAAG,IAAIA,GAAG,CAACC,OAAO,CAAC;EAClE,MAAMC,UAAU,GAAGZ,2BAA2B,CAACU,GAAG,IAAIA,GAAG,CAACG,cAAc,CAAC;EACzE,MAAMC,QAAQ,GAAGd,2BAA2B,CAACU,GAAG,IAAIA,GAAG,CAACK,SAAS,CAACC,aAAa,CAACT,KAAK,CAAC,CAAC;EACvF,MAAMU,QAAQ,GAAGjB,2BAA2B,CAACU,GAAG,IAAIA,GAAG,CAACQ,SAAS,KAAK,cAAc,CAAC;EACrF,MAAMC,UAAU,GAAGnB,2BAA2B,CAACU,GAAG,IAAG;IACnD,IAAI,CAACF,QAAQ,IAAII,UAAU,IAAIF,GAAG,CAACK,SAAS,CAACC,aAAa,CAACT,KAAK,CAAC,EAAE;MACjE,OAAOG,GAAG,CAACU,mBAAmB;;IAGhC,OAAO,MAAM;EACf,CAAC,CAAC;EACF,MAAMC,SAAS,GAAGrB,2BAA2B,CAACU,GAAG,IAAIA,GAAG,CAACK,SAAS,CAACM,SAAS,CAAC;EAC7E,MAAMC,oBAAoB,GAAGtB,2BAA2B,CAACU,GAAG,IAAIA,GAAG,CAAC;EAEpE,MAAMa,OAAO,GAAG3B,gBAAgB,CAAE4B,CAAwC,IAAI;;IAC5E,IAAIZ,UAAU,IAAI,CAACJ,QAAQ,EAAE;MAC3Ba,SAAS,CAACG,CAAC,EAAEjB,KAAK,CAAC;;IAGrB,CAAAkB,EAAA,GAAApB,KAAK,CAACkB,OAAO,cAAAE,EAAA,uBAAAA,EAAA,CAAAC,IAAA,CAAbrB,KAAK,EAAWmB,CAAC,CAAC;EACpB,CAAC,CAAC;EAEF,MAAMG,SAAS,GAAG/B,gBAAgB,CAAE4B,CAA2C,IAAI;;IACjF,IAAIZ,UAAU,IAAI,CAACJ,QAAQ,IAAIgB,CAAC,CAACI,GAAG,KAAK9B,KAAK,IAAI,CAACH,wBAAwB,CAAC6B,CAAC,CAACK,MAAqB,CAAC,EAAE;MACpG;MACAL,CAAC,CAACM,cAAc,EAAE;MAClBT,SAAS,CAACG,CAAC,EAAEjB,KAAK,CAAC;;IAGrB,CAAAkB,EAAA,GAAApB,KAAK,CAACsB,SAAS,cAAAF,EAAA,uBAAAA,EAAA,CAAAC,IAAA,CAAfrB,KAAK,EAAamB,CAAC,CAAC;EACtB,CAAC,CAAC;EAEF,MAAMO,SAAS,GAAGhC,oBAAoB,CACpC;IACEoB,UAAU;IACV,eAAe,EAAEP,UAAU,GAAGE,QAAQ,GAAGkB,SAAS;IAClD,GAAG3B,KAAK;IACRkB,OAAO;IACPI,SAAS;IACTM,QAAQ,EAAE,IAAI;IACdC,EAAE,EAAE,KAAK;IACTC,QAAQ,EAAElB,QAAQ,IAAI,CAACT,QAAQ,GAAG,CAAC,GAAGwB;GACvC,EACD1B,GAAG,CACJ;EAED,OAAO;IACL,GAAGyB,SAAS;IACZK,UAAU,EAAE;MACV,GAAGL,SAAS,CAACK,UAAU;MACvBC,aAAa,EAAEpC;KAChB;IACDoC,aAAa,EAAExC,gBAAgB,CAACQ,KAAK,CAACgC,aAAa,EAAE;MAAEC,QAAQ,EAAE1B;IAAU,CAAE,CAAC;IAC9E2B,UAAU,EAAElC,KAAK,CAAC4B,QAAQ;IAC1BxB,UAAU;IACVa;GACD;AACH,CAAC"}
1
+ {"version":3,"names":["React","isInteractiveHTMLElement","useEventCallback","resolveShorthand","Space","useTableRow_unstable","useDataGridContext_unstable","DataGridSelectionCell","useTableRowIdContext","useIsInTableHeader","useDataGridRow_unstable","props","ref","rowId","isHeader","columnDefs","ctx","columns","selectable","selectableRows","selected","selection","isRowSelected","tabbable","focusMode","appearance","selectionAppearance","toggleRow","dataGridContextValue","onClick","e","_props_onClick","call","onKeyDown","_props_onKeyDown","key","target","preventDefault","baseState","undefined","children","as","tabIndex","components","selectionCell","required","renderCell"],"sources":["../../../src/components/DataGridRow/useDataGridRow.tsx"],"sourcesContent":["import * as React from 'react';\nimport { isInteractiveHTMLElement, useEventCallback, resolveShorthand } from '@fluentui/react-utilities';\nimport { Space } from '@fluentui/keyboard-keys';\nimport type { DataGridRowProps, DataGridRowState } from './DataGridRow.types';\nimport { useTableRow_unstable } from '../TableRow/useTableRow';\nimport { useDataGridContext_unstable } from '../../contexts/dataGridContext';\nimport { DataGridSelectionCell } from '../DataGridSelectionCell/DataGridSelectionCell';\nimport { useTableRowIdContext } from '../../contexts/rowIdContext';\nimport { useIsInTableHeader } from '../../contexts/tableHeaderContext';\n\n/**\n * Create the state required to render DataGridRow.\n *\n * The returned state can be modified with hooks such as useDataGridRowStyles_unstable,\n * before being passed to renderDataGridRow_unstable.\n *\n * @param props - props from this instance of DataGridRow\n * @param ref - reference to root HTMLElement of DataGridRow\n */\nexport const useDataGridRow_unstable = (props: DataGridRowProps, ref: React.Ref<HTMLElement>): DataGridRowState => {\n const rowId = useTableRowIdContext();\n const isHeader = useIsInTableHeader();\n const columnDefs = useDataGridContext_unstable(ctx => ctx.columns);\n const selectable = useDataGridContext_unstable(ctx => ctx.selectableRows);\n const selected = useDataGridContext_unstable(ctx => ctx.selection.isRowSelected(rowId));\n const tabbable = useDataGridContext_unstable(ctx => ctx.focusMode === 'row_unstable');\n const appearance = useDataGridContext_unstable(ctx => {\n if (!isHeader && selectable && ctx.selection.isRowSelected(rowId)) {\n return ctx.selectionAppearance;\n }\n\n return 'none';\n });\n const toggleRow = useDataGridContext_unstable(ctx => ctx.selection.toggleRow);\n const dataGridContextValue = useDataGridContext_unstable(ctx => ctx);\n\n const onClick = useEventCallback((e: React.MouseEvent<HTMLTableRowElement>) => {\n if (selectable && !isHeader) {\n toggleRow(e, rowId);\n }\n\n props.onClick?.(e);\n });\n\n const onKeyDown = useEventCallback((e: React.KeyboardEvent<HTMLTableRowElement>) => {\n if (selectable && !isHeader && e.key === Space && !isInteractiveHTMLElement(e.target as HTMLElement)) {\n // stop scrolling\n e.preventDefault();\n toggleRow(e, rowId);\n }\n\n props.onKeyDown?.(e);\n });\n\n const baseState = useTableRow_unstable(\n {\n appearance,\n 'aria-selected': selectable ? selected : undefined,\n ...props,\n onClick,\n onKeyDown,\n children: null,\n as: 'div',\n tabIndex: tabbable && !isHeader ? 0 : undefined,\n },\n ref,\n );\n\n return {\n ...baseState,\n components: {\n ...baseState.components,\n selectionCell: DataGridSelectionCell,\n },\n selectionCell: resolveShorthand(props.selectionCell, { required: selectable }),\n renderCell: props.children,\n columnDefs,\n dataGridContextValue,\n };\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,wBAAwB,EAAEC,gBAAgB,EAAEC,gBAAgB,QAAQ;AAC7E,SAASC,KAAK,QAAQ;AAEtB,SAASC,oBAAoB,QAAQ;AACrC,SAASC,2BAA2B,QAAQ;AAC5C,SAASC,qBAAqB,QAAQ;AACtC,SAASC,oBAAoB,QAAQ;AACrC,SAASC,kBAAkB,QAAQ;AAEnC;;;;;;;;;AASA,OAAO,MAAMC,uBAAA,GAA0BA,CAACC,KAAA,EAAyBC,GAAA,KAAkD;EACjH,MAAMC,KAAA,GAAQL,oBAAA;EACd,MAAMM,QAAA,GAAWL,kBAAA;EACjB,MAAMM,UAAA,GAAaT,2BAAA,CAA4BU,GAAA,IAAOA,GAAA,CAAIC,OAAO;EACjE,MAAMC,UAAA,GAAaZ,2BAAA,CAA4BU,GAAA,IAAOA,GAAA,CAAIG,cAAc;EACxE,MAAMC,QAAA,GAAWd,2BAAA,CAA4BU,GAAA,IAAOA,GAAA,CAAIK,SAAS,CAACC,aAAa,CAACT,KAAA;EAChF,MAAMU,QAAA,GAAWjB,2BAAA,CAA4BU,GAAA,IAAOA,GAAA,CAAIQ,SAAS,KAAK;EACtE,MAAMC,UAAA,GAAanB,2BAAA,CAA4BU,GAAA,IAAO;IACpD,IAAI,CAACF,QAAA,IAAYI,UAAA,IAAcF,GAAA,CAAIK,SAAS,CAACC,aAAa,CAACT,KAAA,GAAQ;MACjE,OAAOG,GAAA,CAAIU,mBAAmB;IAChC;IAEA,OAAO;EACT;EACA,MAAMC,SAAA,GAAYrB,2BAAA,CAA4BU,GAAA,IAAOA,GAAA,CAAIK,SAAS,CAACM,SAAS;EAC5E,MAAMC,oBAAA,GAAuBtB,2BAAA,CAA4BU,GAAA,IAAOA,GAAA;EAEhE,MAAMa,OAAA,GAAU3B,gBAAA,CAAkB4B,CAAA,IAA6C;QAK7EC,cAAA;IAJA,IAAIb,UAAA,IAAc,CAACJ,QAAA,EAAU;MAC3Ba,SAAA,CAAUG,CAAA,EAAGjB,KAAA;IACf;IAEA,CAAAkB,cAAA,GAAApB,KAAA,CAAMkB,OAAO,cAAbE,cAAA,uBAAAA,cAAA,CAAAC,IAAA,CAAArB,KAAA,EAAgBmB,CAAA;EAClB;EAEA,MAAMG,SAAA,GAAY/B,gBAAA,CAAkB4B,CAAA,IAAgD;QAOlFI,gBAAA;IANA,IAAIhB,UAAA,IAAc,CAACJ,QAAA,IAAYgB,CAAA,CAAEK,GAAG,KAAK/B,KAAA,IAAS,CAACH,wBAAA,CAAyB6B,CAAA,CAAEM,MAAM,GAAkB;MACpG;MACAN,CAAA,CAAEO,cAAc;MAChBV,SAAA,CAAUG,CAAA,EAAGjB,KAAA;IACf;IAEA,CAAAqB,gBAAA,GAAAvB,KAAA,CAAMsB,SAAS,cAAfC,gBAAA,uBAAAA,gBAAA,CAAAF,IAAA,CAAArB,KAAA,EAAkBmB,CAAA;EACpB;EAEA,MAAMQ,SAAA,GAAYjC,oBAAA,CAChB;IACEoB,UAAA;IACA,iBAAiBP,UAAA,GAAaE,QAAA,GAAWmB,SAAS;IAClD,GAAG5B,KAAK;IACRkB,OAAA;IACAI,SAAA;IACAO,QAAA,EAAU,IAAI;IACdC,EAAA,EAAI;IACJC,QAAA,EAAUnB,QAAA,IAAY,CAACT,QAAA,GAAW,IAAIyB;EACxC,GACA3B,GAAA;EAGF,OAAO;IACL,GAAG0B,SAAS;IACZK,UAAA,EAAY;MACV,GAAGL,SAAA,CAAUK,UAAU;MACvBC,aAAA,EAAerC;IACjB;IACAqC,aAAA,EAAezC,gBAAA,CAAiBQ,KAAA,CAAMiC,aAAa,EAAE;MAAEC,QAAA,EAAU3B;IAAW;IAC5E4B,UAAA,EAAYnC,KAAA,CAAM6B,QAAQ;IAC1BzB,UAAA;IACAa;EACF;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["mergeClasses","useTableRowStyles_unstable","dataGridRowClassNames","root","selectionCell","useDataGridRowStyles_unstable","state","className"],"sources":["../src/packages/react-components/react-table/src/components/DataGridRow/useDataGridRowStyles.ts"],"sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport type { DataGridRowSlots, DataGridRowState } from './DataGridRow.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableRowStyles_unstable } from '../TableRow/useTableRowStyles';\n\nexport const dataGridRowClassNames: SlotClassNames<DataGridRowSlots> = {\n root: 'fui-DataGridRow',\n selectionCell: 'fui-DataGridRow__selectionCell',\n};\n\n/**\n * Apply styling to the DataGridRow slots based on the state\n */\nexport const useDataGridRowStyles_unstable = (state: DataGridRowState): DataGridRowState => {\n useTableRowStyles_unstable(state);\n state.root.className = mergeClasses(dataGridRowClassNames.root, state.root.className);\n if (state.selectionCell) {\n state.selectionCell.className = mergeClasses(dataGridRowClassNames.selectionCell, state.selectionCell.className);\n }\n\n return state;\n};\n"],"mappings":"AAAA,SAASA,YAAY,QAAQ,gBAAgB;AAG7C,SAASC,0BAA0B,QAAQ,+BAA+B;AAE1E,OAAO,MAAMC,qBAAqB,GAAqC;EACrEC,IAAI,EAAE,iBAAiB;EACvBC,aAAa,EAAE;CAChB;AAED;;;AAGA,OAAO,MAAMC,6BAA6B,GAAIC,KAAuB,IAAsB;EACzFL,0BAA0B,CAACK,KAAK,CAAC;EACjCA,KAAK,CAACH,IAAI,CAACI,SAAS,GAAGP,YAAY,CAACE,qBAAqB,CAACC,IAAI,EAAEG,KAAK,CAACH,IAAI,CAACI,SAAS,CAAC;EACrF,IAAID,KAAK,CAACF,aAAa,EAAE;IACvBE,KAAK,CAACF,aAAa,CAACG,SAAS,GAAGP,YAAY,CAACE,qBAAqB,CAACE,aAAa,EAAEE,KAAK,CAACF,aAAa,CAACG,SAAS,CAAC;;EAGlH,OAAOD,KAAK;AACd,CAAC"}
1
+ {"version":3,"names":["mergeClasses","useTableRowStyles_unstable","dataGridRowClassNames","root","selectionCell","useDataGridRowStyles_unstable","state","className"],"sources":["../../../src/components/DataGridRow/useDataGridRowStyles.ts"],"sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport type { DataGridRowSlots, DataGridRowState } from './DataGridRow.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableRowStyles_unstable } from '../TableRow/useTableRowStyles';\n\nexport const dataGridRowClassNames: SlotClassNames<DataGridRowSlots> = {\n root: 'fui-DataGridRow',\n selectionCell: 'fui-DataGridRow__selectionCell',\n};\n\n/**\n * Apply styling to the DataGridRow slots based on the state\n */\nexport const useDataGridRowStyles_unstable = (state: DataGridRowState): DataGridRowState => {\n useTableRowStyles_unstable(state);\n state.root.className = mergeClasses(dataGridRowClassNames.root, state.root.className);\n if (state.selectionCell) {\n state.selectionCell.className = mergeClasses(dataGridRowClassNames.selectionCell, state.selectionCell.className);\n }\n\n return state;\n};\n"],"mappings":"AAAA,SAASA,YAAY,QAAQ;AAG7B,SAASC,0BAA0B,QAAQ;AAE3C,OAAO,MAAMC,qBAAA,GAA0D;EACrEC,IAAA,EAAM;EACNC,aAAA,EAAe;AACjB;AAEA;;;AAGA,OAAO,MAAMC,6BAAA,GAAiCC,KAAA,IAA8C;EAC1FL,0BAAA,CAA2BK,KAAA;EAC3BA,KAAA,CAAMH,IAAI,CAACI,SAAS,GAAGP,YAAA,CAAaE,qBAAA,CAAsBC,IAAI,EAAEG,KAAA,CAAMH,IAAI,CAACI,SAAS;EACpF,IAAID,KAAA,CAAMF,aAAa,EAAE;IACvBE,KAAA,CAAMF,aAAa,CAACG,SAAS,GAAGP,YAAA,CAAaE,qBAAA,CAAsBE,aAAa,EAAEE,KAAA,CAAMF,aAAa,CAACG,SAAS;EACjH;EAEA,OAAOD,KAAA;AACT"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","useDataGridSelectionCell_unstable","renderDataGridSelectionCell_unstable","useDataGridSelectionCellStyles_unstable","useCustomStyleHooks_unstable","DataGridSelectionCell","forwardRef","props","ref","state","useCustomStyles","displayName"],"sources":["../src/packages/react-components/react-table/src/components/DataGridSelectionCell/DataGridSelectionCell.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useDataGridSelectionCell_unstable } from './useDataGridSelectionCell';\nimport { renderDataGridSelectionCell_unstable } from './renderDataGridSelectionCell';\nimport { useDataGridSelectionCellStyles_unstable } from './useDataGridSelectionCellStyles';\nimport type { DataGridSelectionCellProps } from './DataGridSelectionCell.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * DataGridSelectionCell component\n */\nexport const DataGridSelectionCell: ForwardRefComponent<DataGridSelectionCellProps> = React.forwardRef((props, ref) => {\n const state = useDataGridSelectionCell_unstable(props, ref);\n\n useDataGridSelectionCellStyles_unstable(state);\n\n const { useDataGridSelectionCellStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderDataGridSelectionCell_unstable(state);\n});\n\nDataGridSelectionCell.displayName = 'DataGridSelectionCell';\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,iCAAiC,QAAQ,4BAA4B;AAC9E,SAASC,oCAAoC,QAAQ,+BAA+B;AACpF,SAASC,uCAAuC,QAAQ,kCAAkC;AAG1F,SAASC,4BAA4B,QAAQ,iCAAiC;AAE9E;;;AAGA,OAAO,MAAMC,qBAAqB,gBAAoDL,KAAK,CAACM,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EACpH,MAAMC,KAAK,GAAGR,iCAAiC,CAACM,KAAK,EAAEC,GAAG,CAAC;EAE3DL,uCAAuC,CAACM,KAAK,CAAC;EAE9C,MAAM;IAAEN,uCAAuC,EAAEO;EAAe,CAAE,GAAGN,4BAA4B,EAAE;EACnGM,eAAe,CAACD,KAAK,CAAC;EAEtB,OAAOP,oCAAoC,CAACO,KAAK,CAAC;AACpD,CAAC,CAAC;AAEFJ,qBAAqB,CAACM,WAAW,GAAG,uBAAuB"}
1
+ {"version":3,"names":["React","useDataGridSelectionCell_unstable","renderDataGridSelectionCell_unstable","useDataGridSelectionCellStyles_unstable","useCustomStyleHooks_unstable","DataGridSelectionCell","forwardRef","props","ref","state","useCustomStyles","displayName"],"sources":["../../../src/components/DataGridSelectionCell/DataGridSelectionCell.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useDataGridSelectionCell_unstable } from './useDataGridSelectionCell';\nimport { renderDataGridSelectionCell_unstable } from './renderDataGridSelectionCell';\nimport { useDataGridSelectionCellStyles_unstable } from './useDataGridSelectionCellStyles';\nimport type { DataGridSelectionCellProps } from './DataGridSelectionCell.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * DataGridSelectionCell component\n */\nexport const DataGridSelectionCell: ForwardRefComponent<DataGridSelectionCellProps> = React.forwardRef((props, ref) => {\n const state = useDataGridSelectionCell_unstable(props, ref);\n\n useDataGridSelectionCellStyles_unstable(state);\n\n const { useDataGridSelectionCellStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderDataGridSelectionCell_unstable(state);\n});\n\nDataGridSelectionCell.displayName = 'DataGridSelectionCell';\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,iCAAiC,QAAQ;AAClD,SAASC,oCAAoC,QAAQ;AACrD,SAASC,uCAAuC,QAAQ;AAGxD,SAASC,4BAA4B,QAAQ;AAE7C;;;AAGA,OAAO,MAAMC,qBAAA,gBAAyEL,KAAA,CAAMM,UAAU,CAAC,CAACC,KAAA,EAAOC,GAAA,KAAQ;EACrH,MAAMC,KAAA,GAAQR,iCAAA,CAAkCM,KAAA,EAAOC,GAAA;EAEvDL,uCAAA,CAAwCM,KAAA;EAExC,MAAM;IAAEN,uCAAA,EAAyCO;EAAe,CAAE,GAAGN,4BAAA;EACrEM,eAAA,CAAgBD,KAAA;EAEhB,OAAOP,oCAAA,CAAqCO,KAAA;AAC9C;AAEAJ,qBAAA,CAAsBM,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"DataGridSelectionCell.types.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/DataGridSelectionCell/DataGridSelectionCell.types.ts"],"names":[],"mappings":"","sourcesContent":["import {\n TableSelectionCellProps,\n TableSelectionCellSlots,\n TableSelectionCellState,\n} from '../TableSelectionCell/TableSelectionCell.types';\n\nexport type DataGridSelectionCellSlots = TableSelectionCellSlots;\n\n/**\n * DataGridSelectionCell Props\n */\nexport type DataGridSelectionCellProps = TableSelectionCellProps;\n\n/**\n * State used in rendering DataGridSelectionCell\n */\nexport type DataGridSelectionCellState = TableSelectionCellState;\n"]}
1
+ {"version":3,"names":[],"sources":["../../../src/components/DataGridSelectionCell/DataGridSelectionCell.types.ts"],"sourcesContent":["import {\n TableSelectionCellProps,\n TableSelectionCellSlots,\n TableSelectionCellState,\n} from '../TableSelectionCell/TableSelectionCell.types';\n\nexport type DataGridSelectionCellSlots = TableSelectionCellSlots;\n\n/**\n * DataGridSelectionCell Props\n */\nexport type DataGridSelectionCellProps = TableSelectionCellProps;\n\n/**\n * State used in rendering DataGridSelectionCell\n */\nexport type DataGridSelectionCellState = TableSelectionCellState;\n"],"mappings":"AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/DataGridSelectionCell/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC","sourcesContent":["export * from './DataGridSelectionCell';\nexport * from './DataGridSelectionCell.types';\nexport * from './renderDataGridSelectionCell';\nexport * from './useDataGridSelectionCell';\nexport * from './useDataGridSelectionCellStyles';\n"]}
1
+ {"version":3,"names":[],"sources":["../../../src/components/DataGridSelectionCell/index.ts"],"sourcesContent":["export * from './DataGridSelectionCell';\nexport * from './DataGridSelectionCell.types';\nexport * from './renderDataGridSelectionCell';\nexport * from './useDataGridSelectionCell';\nexport * from './useDataGridSelectionCellStyles';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"names":["renderTableSelectionCell_unstable","renderDataGridSelectionCell_unstable","state"],"sources":["../src/packages/react-components/react-table/src/components/DataGridSelectionCell/renderDataGridSelectionCell.tsx"],"sourcesContent":["import type { DataGridSelectionCellState } from './DataGridSelectionCell.types';\nimport { renderTableSelectionCell_unstable } from '../TableSelectionCell/renderTableSelectionCell';\n\n/**\n * Render the final JSX of DataGridSelectionCell\n */\nexport const renderDataGridSelectionCell_unstable = (state: DataGridSelectionCellState) => {\n return renderTableSelectionCell_unstable(state);\n};\n"],"mappings":"AACA,SAASA,iCAAiC,QAAQ,gDAAgD;AAElG;;;AAGA,OAAO,MAAMC,oCAAoC,GAAIC,KAAiC,IAAI;EACxF,OAAOF,iCAAiC,CAACE,KAAK,CAAC;AACjD,CAAC"}
1
+ {"version":3,"names":["renderTableSelectionCell_unstable","renderDataGridSelectionCell_unstable","state"],"sources":["../../../src/components/DataGridSelectionCell/renderDataGridSelectionCell.tsx"],"sourcesContent":["import type { DataGridSelectionCellState } from './DataGridSelectionCell.types';\nimport { renderTableSelectionCell_unstable } from '../TableSelectionCell/renderTableSelectionCell';\n\n/**\n * Render the final JSX of DataGridSelectionCell\n */\nexport const renderDataGridSelectionCell_unstable = (state: DataGridSelectionCellState) => {\n return renderTableSelectionCell_unstable(state);\n};\n"],"mappings":"AACA,SAASA,iCAAiC,QAAQ;AAElD;;;AAGA,OAAO,MAAMC,oCAAA,GAAwCC,KAAA,IAAsC;EACzF,OAAOF,iCAAA,CAAkCE,KAAA;AAC3C"}
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { useEventCallback } from '@fluentui/react-utilities';
2
3
  import { useDataGridContext_unstable } from '../../contexts/dataGridContext';
3
4
  import { useTableRowIdContext } from '../../contexts/rowIdContext';
@@ -25,11 +26,11 @@ export const useDataGridSelectionCell_unstable = (props, ref) => {
25
26
  const toggleAllRows = useDataGridContext_unstable(ctx => ctx.selection.toggleAllRows);
26
27
  const type = useDataGridContext_unstable(ctx => ctx.selection.selectionMode === 'multiselect' ? 'checkbox' : 'radio');
27
28
  const onClick = useEventCallback(e => {
28
- var _a;
29
+ var _props_onClick;
29
30
  if (isHeader) {
30
31
  toggleAllRows(e);
31
32
  }
32
- (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props, e);
33
+ (_props_onClick = props.onClick) === null || _props_onClick === void 0 ? void 0 : _props_onClick.call(props, e);
33
34
  });
34
35
  return useTableSelectionCell_unstable({
35
36
  as: 'div',
@@ -1 +1 @@
1
- {"version":3,"names":["useEventCallback","useDataGridContext_unstable","useTableRowIdContext","useIsInTableHeader","useTableSelectionCell_unstable","useDataGridSelectionCell_unstable","props","ref","isHeader","rowId","subtle","ctx","subtleSelection","checked","selection","selectionMode","allRowsSelected","someRowsSelected","isRowSelected","toggleAllRows","type","onClick","e","_a","call","as","role","hidden","undefined"],"sources":["../src/packages/react-components/react-table/src/components/DataGridSelectionCell/useDataGridSelectionCell.ts"],"sourcesContent":["import * as React from 'react';\nimport { useEventCallback } from '@fluentui/react-utilities';\nimport { useDataGridContext_unstable } from '../../contexts/dataGridContext';\nimport { useTableRowIdContext } from '../../contexts/rowIdContext';\nimport { useIsInTableHeader } from '../../contexts/tableHeaderContext';\nimport { useTableSelectionCell_unstable } from '../TableSelectionCell/useTableSelectionCell';\nimport type { DataGridSelectionCellProps, DataGridSelectionCellState } from './DataGridSelectionCell.types';\n\n/**\n * Create the state required to render DataGridSelectionCell.\n *\n * The returned state can be modified with hooks such as useDataGridSelectionCellStyles_unstable,\n * before being passed to renderDataGridSelectionCell_unstable.\n *\n * @param props - props from this instance of DataGridSelectionCell\n * @param ref - reference to root HTMLElement of DataGridSelectionCell\n */\nexport const useDataGridSelectionCell_unstable = (\n props: DataGridSelectionCellProps,\n ref: React.Ref<HTMLElement>,\n): DataGridSelectionCellState => {\n const isHeader = useIsInTableHeader();\n const rowId = useTableRowIdContext();\n const subtle = useDataGridContext_unstable(ctx => ctx.subtleSelection);\n const checked = useDataGridContext_unstable(ctx => {\n if (isHeader && ctx.selection.selectionMode === 'multiselect') {\n return ctx.selection.allRowsSelected ? true : ctx.selection.someRowsSelected ? 'mixed' : false;\n }\n\n return ctx.selection.isRowSelected(rowId);\n });\n\n const toggleAllRows = useDataGridContext_unstable(ctx => ctx.selection.toggleAllRows);\n const type = useDataGridContext_unstable(ctx =>\n ctx.selection.selectionMode === 'multiselect' ? 'checkbox' : 'radio',\n );\n\n const onClick = useEventCallback((e: React.MouseEvent<HTMLTableCellElement>) => {\n if (isHeader) {\n toggleAllRows(e);\n }\n\n props.onClick?.(e);\n });\n\n return useTableSelectionCell_unstable(\n {\n as: 'div',\n role: 'gridcell',\n checked,\n type,\n hidden: isHeader && type === 'radio',\n 'aria-checked': isHeader ? checked : undefined,\n 'aria-selected': isHeader || checked === 'mixed' ? undefined : checked,\n subtle,\n ...props,\n onClick,\n },\n ref,\n );\n};\n"],"mappings":"AACA,SAASA,gBAAgB,QAAQ,2BAA2B;AAC5D,SAASC,2BAA2B,QAAQ,gCAAgC;AAC5E,SAASC,oBAAoB,QAAQ,6BAA6B;AAClE,SAASC,kBAAkB,QAAQ,mCAAmC;AACtE,SAASC,8BAA8B,QAAQ,6CAA6C;AAG5F;;;;;;;;;AASA,OAAO,MAAMC,iCAAiC,GAAGA,CAC/CC,KAAiC,EACjCC,GAA2B,KACG;EAC9B,MAAMC,QAAQ,GAAGL,kBAAkB,EAAE;EACrC,MAAMM,KAAK,GAAGP,oBAAoB,EAAE;EACpC,MAAMQ,MAAM,GAAGT,2BAA2B,CAACU,GAAG,IAAIA,GAAG,CAACC,eAAe,CAAC;EACtE,MAAMC,OAAO,GAAGZ,2BAA2B,CAACU,GAAG,IAAG;IAChD,IAAIH,QAAQ,IAAIG,GAAG,CAACG,SAAS,CAACC,aAAa,KAAK,aAAa,EAAE;MAC7D,OAAOJ,GAAG,CAACG,SAAS,CAACE,eAAe,GAAG,IAAI,GAAGL,GAAG,CAACG,SAAS,CAACG,gBAAgB,GAAG,OAAO,GAAG,KAAK;;IAGhG,OAAON,GAAG,CAACG,SAAS,CAACI,aAAa,CAACT,KAAK,CAAC;EAC3C,CAAC,CAAC;EAEF,MAAMU,aAAa,GAAGlB,2BAA2B,CAACU,GAAG,IAAIA,GAAG,CAACG,SAAS,CAACK,aAAa,CAAC;EACrF,MAAMC,IAAI,GAAGnB,2BAA2B,CAACU,GAAG,IAC1CA,GAAG,CAACG,SAAS,CAACC,aAAa,KAAK,aAAa,GAAG,UAAU,GAAG,OAAO,CACrE;EAED,MAAMM,OAAO,GAAGrB,gBAAgB,CAAEsB,CAAyC,IAAI;;IAC7E,IAAId,QAAQ,EAAE;MACZW,aAAa,CAACG,CAAC,CAAC;;IAGlB,CAAAC,EAAA,GAAAjB,KAAK,CAACe,OAAO,cAAAE,EAAA,uBAAAA,EAAA,CAAAC,IAAA,CAAblB,KAAK,EAAWgB,CAAC,CAAC;EACpB,CAAC,CAAC;EAEF,OAAOlB,8BAA8B,CACnC;IACEqB,EAAE,EAAE,KAAK;IACTC,IAAI,EAAE,UAAU;IAChBb,OAAO;IACPO,IAAI;IACJO,MAAM,EAAEnB,QAAQ,IAAIY,IAAI,KAAK,OAAO;IACpC,cAAc,EAAEZ,QAAQ,GAAGK,OAAO,GAAGe,SAAS;IAC9C,eAAe,EAAEpB,QAAQ,IAAIK,OAAO,KAAK,OAAO,GAAGe,SAAS,GAAGf,OAAO;IACtEH,MAAM;IACN,GAAGJ,KAAK;IACRe;GACD,EACDd,GAAG,CACJ;AACH,CAAC"}
1
+ {"version":3,"names":["React","useEventCallback","useDataGridContext_unstable","useTableRowIdContext","useIsInTableHeader","useTableSelectionCell_unstable","useDataGridSelectionCell_unstable","props","ref","isHeader","rowId","subtle","ctx","subtleSelection","checked","selection","selectionMode","allRowsSelected","someRowsSelected","isRowSelected","toggleAllRows","type","onClick","e","_props_onClick","call","as","role","hidden","undefined"],"sources":["../../../src/components/DataGridSelectionCell/useDataGridSelectionCell.ts"],"sourcesContent":["import * as React from 'react';\nimport { useEventCallback } from '@fluentui/react-utilities';\nimport { useDataGridContext_unstable } from '../../contexts/dataGridContext';\nimport { useTableRowIdContext } from '../../contexts/rowIdContext';\nimport { useIsInTableHeader } from '../../contexts/tableHeaderContext';\nimport { useTableSelectionCell_unstable } from '../TableSelectionCell/useTableSelectionCell';\nimport type { DataGridSelectionCellProps, DataGridSelectionCellState } from './DataGridSelectionCell.types';\n\n/**\n * Create the state required to render DataGridSelectionCell.\n *\n * The returned state can be modified with hooks such as useDataGridSelectionCellStyles_unstable,\n * before being passed to renderDataGridSelectionCell_unstable.\n *\n * @param props - props from this instance of DataGridSelectionCell\n * @param ref - reference to root HTMLElement of DataGridSelectionCell\n */\nexport const useDataGridSelectionCell_unstable = (\n props: DataGridSelectionCellProps,\n ref: React.Ref<HTMLElement>,\n): DataGridSelectionCellState => {\n const isHeader = useIsInTableHeader();\n const rowId = useTableRowIdContext();\n const subtle = useDataGridContext_unstable(ctx => ctx.subtleSelection);\n const checked = useDataGridContext_unstable(ctx => {\n if (isHeader && ctx.selection.selectionMode === 'multiselect') {\n return ctx.selection.allRowsSelected ? true : ctx.selection.someRowsSelected ? 'mixed' : false;\n }\n\n return ctx.selection.isRowSelected(rowId);\n });\n\n const toggleAllRows = useDataGridContext_unstable(ctx => ctx.selection.toggleAllRows);\n const type = useDataGridContext_unstable(ctx =>\n ctx.selection.selectionMode === 'multiselect' ? 'checkbox' : 'radio',\n );\n\n const onClick = useEventCallback((e: React.MouseEvent<HTMLTableCellElement>) => {\n if (isHeader) {\n toggleAllRows(e);\n }\n\n props.onClick?.(e);\n });\n\n return useTableSelectionCell_unstable(\n {\n as: 'div',\n role: 'gridcell',\n checked,\n type,\n hidden: isHeader && type === 'radio',\n 'aria-checked': isHeader ? checked : undefined,\n 'aria-selected': isHeader || checked === 'mixed' ? undefined : checked,\n subtle,\n ...props,\n onClick,\n },\n ref,\n );\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,gBAAgB,QAAQ;AACjC,SAASC,2BAA2B,QAAQ;AAC5C,SAASC,oBAAoB,QAAQ;AACrC,SAASC,kBAAkB,QAAQ;AACnC,SAASC,8BAA8B,QAAQ;AAG/C;;;;;;;;;AASA,OAAO,MAAMC,iCAAA,GAAoCA,CAC/CC,KAAA,EACAC,GAAA,KAC+B;EAC/B,MAAMC,QAAA,GAAWL,kBAAA;EACjB,MAAMM,KAAA,GAAQP,oBAAA;EACd,MAAMQ,MAAA,GAAST,2BAAA,CAA4BU,GAAA,IAAOA,GAAA,CAAIC,eAAe;EACrE,MAAMC,OAAA,GAAUZ,2BAAA,CAA4BU,GAAA,IAAO;IACjD,IAAIH,QAAA,IAAYG,GAAA,CAAIG,SAAS,CAACC,aAAa,KAAK,eAAe;MAC7D,OAAOJ,GAAA,CAAIG,SAAS,CAACE,eAAe,GAAG,IAAI,GAAGL,GAAA,CAAIG,SAAS,CAACG,gBAAgB,GAAG,UAAU,KAAK;IAChG;IAEA,OAAON,GAAA,CAAIG,SAAS,CAACI,aAAa,CAACT,KAAA;EACrC;EAEA,MAAMU,aAAA,GAAgBlB,2BAAA,CAA4BU,GAAA,IAAOA,GAAA,CAAIG,SAAS,CAACK,aAAa;EACpF,MAAMC,IAAA,GAAOnB,2BAAA,CAA4BU,GAAA,IACvCA,GAAA,CAAIG,SAAS,CAACC,aAAa,KAAK,gBAAgB,aAAa,OAAO;EAGtE,MAAMM,OAAA,GAAUrB,gBAAA,CAAkBsB,CAAA,IAA8C;QAK9EC,cAAA;IAJA,IAAIf,QAAA,EAAU;MACZW,aAAA,CAAcG,CAAA;IAChB;IAEA,CAAAC,cAAA,GAAAjB,KAAA,CAAMe,OAAO,cAAbE,cAAA,uBAAAA,cAAA,CAAAC,IAAA,CAAAlB,KAAA,EAAgBgB,CAAA;EAClB;EAEA,OAAOlB,8BAAA,CACL;IACEqB,EAAA,EAAI;IACJC,IAAA,EAAM;IACNb,OAAA;IACAO,IAAA;IACAO,MAAA,EAAQnB,QAAA,IAAYY,IAAA,KAAS;IAC7B,gBAAgBZ,QAAA,GAAWK,OAAA,GAAUe,SAAS;IAC9C,iBAAiBpB,QAAA,IAAYK,OAAA,KAAY,UAAUe,SAAA,GAAYf,OAAO;IACtEH,MAAA;IACA,GAAGJ,KAAK;IACRe;EACF,GACAd,GAAA;AAEJ"}
@@ -1 +1 @@
1
- {"version":3,"names":["mergeClasses","useTableSelectionCellStyles_unstable","dataGridSelectionCellClassNames","root","checkboxIndicator","radioIndicator","useDataGridSelectionCellStyles_unstable","state","className"],"sources":["../src/packages/react-components/react-table/src/components/DataGridSelectionCell/useDataGridSelectionCellStyles.ts"],"sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport type { DataGridSelectionCellSlots, DataGridSelectionCellState } from './DataGridSelectionCell.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableSelectionCellStyles_unstable } from '../TableSelectionCell/useTableSelectionCellStyles';\n\nexport const dataGridSelectionCellClassNames: SlotClassNames<DataGridSelectionCellSlots> = {\n root: 'fui-DataGridSelectionCell',\n checkboxIndicator: 'fui-DataGridSelectionCell__checkboxIndicator',\n radioIndicator: 'fui-DataGridSelectionCell__radioIndicator',\n};\n\n/**\n * Apply styling to the DataGridSelectionCell slots based on the state\n */\nexport const useDataGridSelectionCellStyles_unstable = (\n state: DataGridSelectionCellState,\n): DataGridSelectionCellState => {\n useTableSelectionCellStyles_unstable(state);\n state.root.className = mergeClasses(dataGridSelectionCellClassNames.root, state.root.className);\n\n if (state.checkboxIndicator) {\n state.checkboxIndicator.className = mergeClasses(\n dataGridSelectionCellClassNames.checkboxIndicator,\n state.checkboxIndicator.className,\n );\n }\n\n if (state.radioIndicator) {\n state.radioIndicator.className = mergeClasses(\n dataGridSelectionCellClassNames.radioIndicator,\n state.radioIndicator.className,\n );\n }\n\n return state;\n};\n"],"mappings":"AAAA,SAASA,YAAY,QAAQ,gBAAgB;AAG7C,SAASC,oCAAoC,QAAQ,mDAAmD;AAExG,OAAO,MAAMC,+BAA+B,GAA+C;EACzFC,IAAI,EAAE,2BAA2B;EACjCC,iBAAiB,EAAE,8CAA8C;EACjEC,cAAc,EAAE;CACjB;AAED;;;AAGA,OAAO,MAAMC,uCAAuC,GAClDC,KAAiC,IACH;EAC9BN,oCAAoC,CAACM,KAAK,CAAC;EAC3CA,KAAK,CAACJ,IAAI,CAACK,SAAS,GAAGR,YAAY,CAACE,+BAA+B,CAACC,IAAI,EAAEI,KAAK,CAACJ,IAAI,CAACK,SAAS,CAAC;EAE/F,IAAID,KAAK,CAACH,iBAAiB,EAAE;IAC3BG,KAAK,CAACH,iBAAiB,CAACI,SAAS,GAAGR,YAAY,CAC9CE,+BAA+B,CAACE,iBAAiB,EACjDG,KAAK,CAACH,iBAAiB,CAACI,SAAS,CAClC;;EAGH,IAAID,KAAK,CAACF,cAAc,EAAE;IACxBE,KAAK,CAACF,cAAc,CAACG,SAAS,GAAGR,YAAY,CAC3CE,+BAA+B,CAACG,cAAc,EAC9CE,KAAK,CAACF,cAAc,CAACG,SAAS,CAC/B;;EAGH,OAAOD,KAAK;AACd,CAAC"}
1
+ {"version":3,"names":["mergeClasses","useTableSelectionCellStyles_unstable","dataGridSelectionCellClassNames","root","checkboxIndicator","radioIndicator","useDataGridSelectionCellStyles_unstable","state","className"],"sources":["../../../src/components/DataGridSelectionCell/useDataGridSelectionCellStyles.ts"],"sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport type { DataGridSelectionCellSlots, DataGridSelectionCellState } from './DataGridSelectionCell.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableSelectionCellStyles_unstable } from '../TableSelectionCell/useTableSelectionCellStyles';\n\nexport const dataGridSelectionCellClassNames: SlotClassNames<DataGridSelectionCellSlots> = {\n root: 'fui-DataGridSelectionCell',\n checkboxIndicator: 'fui-DataGridSelectionCell__checkboxIndicator',\n radioIndicator: 'fui-DataGridSelectionCell__radioIndicator',\n};\n\n/**\n * Apply styling to the DataGridSelectionCell slots based on the state\n */\nexport const useDataGridSelectionCellStyles_unstable = (\n state: DataGridSelectionCellState,\n): DataGridSelectionCellState => {\n useTableSelectionCellStyles_unstable(state);\n state.root.className = mergeClasses(dataGridSelectionCellClassNames.root, state.root.className);\n\n if (state.checkboxIndicator) {\n state.checkboxIndicator.className = mergeClasses(\n dataGridSelectionCellClassNames.checkboxIndicator,\n state.checkboxIndicator.className,\n );\n }\n\n if (state.radioIndicator) {\n state.radioIndicator.className = mergeClasses(\n dataGridSelectionCellClassNames.radioIndicator,\n state.radioIndicator.className,\n );\n }\n\n return state;\n};\n"],"mappings":"AAAA,SAASA,YAAY,QAAQ;AAG7B,SAASC,oCAAoC,QAAQ;AAErD,OAAO,MAAMC,+BAAA,GAA8E;EACzFC,IAAA,EAAM;EACNC,iBAAA,EAAmB;EACnBC,cAAA,EAAgB;AAClB;AAEA;;;AAGA,OAAO,MAAMC,uCAAA,GACXC,KAAA,IAC+B;EAC/BN,oCAAA,CAAqCM,KAAA;EACrCA,KAAA,CAAMJ,IAAI,CAACK,SAAS,GAAGR,YAAA,CAAaE,+BAAA,CAAgCC,IAAI,EAAEI,KAAA,CAAMJ,IAAI,CAACK,SAAS;EAE9F,IAAID,KAAA,CAAMH,iBAAiB,EAAE;IAC3BG,KAAA,CAAMH,iBAAiB,CAACI,SAAS,GAAGR,YAAA,CAClCE,+BAAA,CAAgCE,iBAAiB,EACjDG,KAAA,CAAMH,iBAAiB,CAACI,SAAS;EAErC;EAEA,IAAID,KAAA,CAAMF,cAAc,EAAE;IACxBE,KAAA,CAAMF,cAAc,CAACG,SAAS,GAAGR,YAAA,CAC/BE,+BAAA,CAAgCG,cAAc,EAC9CE,KAAA,CAAMF,cAAc,CAACG,SAAS;EAElC;EAEA,OAAOD,KAAA;AACT"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","useTable_unstable","renderTable_unstable","useTableStyles_unstable","useTableContextValues_unstable","useCustomStyleHooks_unstable","Table","forwardRef","props","ref","state","useCustomStyles","displayName"],"sources":["../src/packages/react-components/react-table/src/components/Table/Table.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useTable_unstable } from './useTable';\nimport { renderTable_unstable } from './renderTable';\nimport { useTableStyles_unstable } from './useTableStyles';\nimport type { TableProps } from './Table.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useTableContextValues_unstable } from './useTableContextValues';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * Table component\n */\nexport const Table: ForwardRefComponent<TableProps> = React.forwardRef((props, ref) => {\n const state = useTable_unstable(props, ref);\n\n useTableStyles_unstable(state);\n\n const { useTableStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderTable_unstable(state, useTableContextValues_unstable(state));\n});\n\nTable.displayName = 'Table';\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,iBAAiB,QAAQ,YAAY;AAC9C,SAASC,oBAAoB,QAAQ,eAAe;AACpD,SAASC,uBAAuB,QAAQ,kBAAkB;AAG1D,SAASC,8BAA8B,QAAQ,yBAAyB;AACxE,SAASC,4BAA4B,QAAQ,iCAAiC;AAE9E;;;AAGA,OAAO,MAAMC,KAAK,gBAAoCN,KAAK,CAACO,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EACpF,MAAMC,KAAK,GAAGT,iBAAiB,CAACO,KAAK,EAAEC,GAAG,CAAC;EAE3CN,uBAAuB,CAACO,KAAK,CAAC;EAE9B,MAAM;IAAEP,uBAAuB,EAAEQ;EAAe,CAAE,GAAGN,4BAA4B,EAAE;EACnFM,eAAe,CAACD,KAAK,CAAC;EAEtB,OAAOR,oBAAoB,CAACQ,KAAK,EAAEN,8BAA8B,CAACM,KAAK,CAAC,CAAC;AAC3E,CAAC,CAAC;AAEFJ,KAAK,CAACM,WAAW,GAAG,OAAO"}
1
+ {"version":3,"names":["React","useTable_unstable","renderTable_unstable","useTableStyles_unstable","useTableContextValues_unstable","useCustomStyleHooks_unstable","Table","forwardRef","props","ref","state","useCustomStyles","displayName"],"sources":["../../../src/components/Table/Table.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useTable_unstable } from './useTable';\nimport { renderTable_unstable } from './renderTable';\nimport { useTableStyles_unstable } from './useTableStyles';\nimport type { TableProps } from './Table.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useTableContextValues_unstable } from './useTableContextValues';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * Table component\n */\nexport const Table: ForwardRefComponent<TableProps> = React.forwardRef((props, ref) => {\n const state = useTable_unstable(props, ref);\n\n useTableStyles_unstable(state);\n\n const { useTableStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderTable_unstable(state, useTableContextValues_unstable(state));\n});\n\nTable.displayName = 'Table';\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,iBAAiB,QAAQ;AAClC,SAASC,oBAAoB,QAAQ;AACrC,SAASC,uBAAuB,QAAQ;AAGxC,SAASC,8BAA8B,QAAQ;AAC/C,SAASC,4BAA4B,QAAQ;AAE7C;;;AAGA,OAAO,MAAMC,KAAA,gBAAyCN,KAAA,CAAMO,UAAU,CAAC,CAACC,KAAA,EAAOC,GAAA,KAAQ;EACrF,MAAMC,KAAA,GAAQT,iBAAA,CAAkBO,KAAA,EAAOC,GAAA;EAEvCN,uBAAA,CAAwBO,KAAA;EAExB,MAAM;IAAEP,uBAAA,EAAyBQ;EAAe,CAAE,GAAGN,4BAAA;EACrDM,eAAA,CAAgBD,KAAA;EAEhB,OAAOR,oBAAA,CAAqBQ,KAAA,EAAON,8BAAA,CAA+BM,KAAA;AACpE;AAEAJ,KAAA,CAAMM,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"Table.types.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/Table/Table.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type TableSlots = {\n root: Slot<'table', 'div'>;\n};\n\nexport type TableContextValue = {\n /**\n * Affects the sizes of all table subcomponents\n * @default medium\n */\n size: 'extra-small' | 'small' | 'medium';\n\n /**\n * Render all table elements as divs instead of semantic table elements\n * Using divs no longer uses `display: table` layout but `display: flex`\n * @default false\n */\n noNativeElements: boolean;\n\n /**\n * Whether the table is sortable\n * @default false\n */\n sortable: boolean;\n};\n\nexport type SortDirection = 'ascending' | 'descending';\n\nexport type TableContextValues = {\n table: TableContextValue;\n};\n\n/**\n * Table Props\n */\nexport type TableProps = ComponentProps<TableSlots> & Partial<TableContextValue>;\n\n/**\n * State used in rendering Table\n */\nexport type TableState = ComponentState<TableSlots> &\n Pick<Required<TableProps>, 'size' | 'noNativeElements'> &\n TableContextValue;\n"]}
1
+ {"version":3,"names":[],"sources":["../../../src/components/Table/Table.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type TableSlots = {\n root: Slot<'table', 'div'>;\n};\n\nexport type TableContextValue = {\n /**\n * Affects the sizes of all table subcomponents\n * @default medium\n */\n size: 'extra-small' | 'small' | 'medium';\n\n /**\n * Render all table elements as divs instead of semantic table elements\n * Using divs no longer uses `display: table` layout but `display: flex`\n * @default false\n */\n noNativeElements: boolean;\n\n /**\n * Whether the table is sortable\n * @default false\n */\n sortable: boolean;\n};\n\nexport type SortDirection = 'ascending' | 'descending';\n\nexport type TableContextValues = {\n table: TableContextValue;\n};\n\n/**\n * Table Props\n */\nexport type TableProps = ComponentProps<TableSlots> & Partial<TableContextValue>;\n\n/**\n * State used in rendering Table\n */\nexport type TableState = ComponentState<TableSlots> &\n Pick<Required<TableProps>, 'size' | 'noNativeElements'> &\n TableContextValue;\n"],"mappings":"AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/Table/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './Table';\nexport * from './Table.types';\nexport * from './renderTable';\nexport * from './useTable';\nexport * from './useTableStyles';\n"]}
1
+ {"version":3,"names":[],"sources":["../../../src/components/Table/index.ts"],"sourcesContent":["export * from './Table';\nexport * from './Table.types';\nexport * from './renderTable';\nexport * from './useTable';\nexport * from './useTableStyles';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc"}
@@ -11,8 +11,6 @@ export const renderTable_unstable = (state, contextValues) => {
11
11
  } = getSlots(state);
12
12
  return /*#__PURE__*/React.createElement(TableContextProvider, {
13
13
  value: contextValues.table
14
- }, /*#__PURE__*/React.createElement(slots.root, {
15
- ...slotProps.root
16
- }));
14
+ }, /*#__PURE__*/React.createElement(slots.root, slotProps.root));
17
15
  };
18
16
  //# sourceMappingURL=renderTable.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","getSlots","TableContextProvider","renderTable_unstable","state","contextValues","slots","slotProps","createElement","value","table","root"],"sources":["../src/packages/react-components/react-table/src/components/Table/renderTable.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { TableState, TableSlots, TableContextValues } from './Table.types';\nimport { TableContextProvider } from '../../contexts/tableContext';\n\n/**\n * Render the final JSX of Table\n */\nexport const renderTable_unstable = (state: TableState, contextValues: TableContextValues) => {\n const { slots, slotProps } = getSlots<TableSlots>(state);\n\n return (\n <TableContextProvider value={contextValues.table}>\n <slots.root {...slotProps.root} />\n </TableContextProvider>\n );\n};\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,2BAA2B;AAEpD,SAASC,oBAAoB,QAAQ,6BAA6B;AAElE;;;AAGA,OAAO,MAAMC,oBAAoB,GAAGA,CAACC,KAAiB,EAAEC,aAAiC,KAAI;EAC3F,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAE,GAAGN,QAAQ,CAAaG,KAAK,CAAC;EAExD,oBACEJ,KAAA,CAAAQ,aAAA,CAACN,oBAAoB;IAACO,KAAK,EAAEJ,aAAa,CAACK;EAAK,gBAC9CV,KAAA,CAAAQ,aAAA,CAACF,KAAK,CAACK,IAAI;IAAA,GAAKJ,SAAS,CAACI;EAAI,EAAI,CACb;AAE3B,CAAC"}
1
+ {"version":3,"names":["React","getSlots","TableContextProvider","renderTable_unstable","state","contextValues","slots","slotProps","createElement","value","table","root"],"sources":["../../../src/components/Table/renderTable.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { TableState, TableSlots, TableContextValues } from './Table.types';\nimport { TableContextProvider } from '../../contexts/tableContext';\n\n/**\n * Render the final JSX of Table\n */\nexport const renderTable_unstable = (state: TableState, contextValues: TableContextValues) => {\n const { slots, slotProps } = getSlots<TableSlots>(state);\n\n return (\n <TableContextProvider value={contextValues.table}>\n <slots.root {...slotProps.root} />\n </TableContextProvider>\n );\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,QAAQ,QAAQ;AAEzB,SAASC,oBAAoB,QAAQ;AAErC;;;AAGA,OAAO,MAAMC,oBAAA,GAAuBA,CAACC,KAAA,EAAmBC,aAAA,KAAsC;EAC5F,MAAM;IAAEC,KAAA;IAAOC;EAAS,CAAE,GAAGN,QAAA,CAAqBG,KAAA;EAElD,oBACEJ,KAAA,CAAAQ,aAAA,CAACN,oBAAA;IAAqBO,KAAA,EAAOJ,aAAA,CAAcK;kBACzCV,KAAA,CAAAQ,aAAA,CAACF,KAAA,CAAMK,IAAI,EAAKJ,SAAA,CAAUI,IAAI;AAGpC"}
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { getNativeElementProps } from '@fluentui/react-utilities';
2
3
  /**
3
4
  * Create the state required to render Table.
@@ -9,8 +10,9 @@ import { getNativeElementProps } from '@fluentui/react-utilities';
9
10
  * @param ref - reference to root HTMLElement of Table
10
11
  */
11
12
  export const useTable_unstable = (props, ref) => {
12
- var _a, _b, _c, _d;
13
- const rootComponent = ((_a = props.as) !== null && _a !== void 0 ? _a : props.noNativeElements) ? 'div' : 'table';
13
+ var _props_as;
14
+ const rootComponent = ((_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : props.noNativeElements) ? 'div' : 'table';
15
+ var _props_size, _props_noNativeElements, _props_sortable;
14
16
  return {
15
17
  components: {
16
18
  root: rootComponent
@@ -20,9 +22,9 @@ export const useTable_unstable = (props, ref) => {
20
22
  role: rootComponent === 'div' ? 'table' : undefined,
21
23
  ...props
22
24
  }),
23
- size: (_b = props.size) !== null && _b !== void 0 ? _b : 'medium',
24
- noNativeElements: (_c = props.noNativeElements) !== null && _c !== void 0 ? _c : false,
25
- sortable: (_d = props.sortable) !== null && _d !== void 0 ? _d : false
25
+ size: (_props_size = props.size) !== null && _props_size !== void 0 ? _props_size : 'medium',
26
+ noNativeElements: (_props_noNativeElements = props.noNativeElements) !== null && _props_noNativeElements !== void 0 ? _props_noNativeElements : false,
27
+ sortable: (_props_sortable = props.sortable) !== null && _props_sortable !== void 0 ? _props_sortable : false
26
28
  };
27
29
  };
28
30
  //# sourceMappingURL=useTable.js.map