@fluentui/react-table 9.8.1 → 9.8.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 (369) hide show
  1. package/CHANGELOG.json +88 -1
  2. package/CHANGELOG.md +23 -2
  3. package/lib/components/DataGrid/DataGrid.js.map +1 -1
  4. package/lib/components/DataGrid/renderDataGrid.js.map +1 -1
  5. package/lib/components/DataGrid/useDataGrid.js +5 -5
  6. package/lib/components/DataGrid/useDataGrid.js.map +1 -1
  7. package/lib/components/DataGrid/useDataGridContextValues.js +1 -1
  8. package/lib/components/DataGrid/useDataGridContextValues.js.map +1 -1
  9. package/lib/components/DataGridBody/DataGridBody.js.map +1 -1
  10. package/lib/components/DataGridBody/renderDataGridBody.js +7 -5
  11. package/lib/components/DataGridBody/renderDataGridBody.js.map +1 -1
  12. package/lib/components/DataGridBody/useDataGridBody.js +1 -1
  13. package/lib/components/DataGridBody/useDataGridBody.js.map +1 -1
  14. package/lib/components/DataGridCell/DataGridCell.js.map +1 -1
  15. package/lib/components/DataGridCell/renderDataGridCell.js.map +1 -1
  16. package/lib/components/DataGridCell/useDataGridCell.js +1 -1
  17. package/lib/components/DataGridCell/useDataGridCell.js.map +1 -1
  18. package/lib/components/DataGridHeader/DataGridHeader.js.map +1 -1
  19. package/lib/components/DataGridHeader/renderDataGridHeader.js.map +1 -1
  20. package/lib/components/DataGridHeader/useDataGridHeader.js.map +1 -1
  21. package/lib/components/DataGridHeaderCell/DataGridHeaderCell.js.map +1 -1
  22. package/lib/components/DataGridHeaderCell/renderDataGridHeaderCell.js.map +1 -1
  23. package/lib/components/DataGridHeaderCell/useDataGridHeaderCell.js +3 -3
  24. package/lib/components/DataGridHeaderCell/useDataGridHeaderCell.js.map +1 -1
  25. package/lib/components/DataGridRow/DataGridRow.js.map +1 -1
  26. package/lib/components/DataGridRow/renderDataGridRow.js +10 -5
  27. package/lib/components/DataGridRow/renderDataGridRow.js.map +1 -1
  28. package/lib/components/DataGridRow/useDataGridRow.js +4 -4
  29. package/lib/components/DataGridRow/useDataGridRow.js.map +1 -1
  30. package/lib/components/DataGridSelectionCell/DataGridSelectionCell.js.map +1 -1
  31. package/lib/components/DataGridSelectionCell/renderDataGridSelectionCell.js.map +1 -1
  32. package/lib/components/DataGridSelectionCell/useDataGridSelectionCell.js +2 -2
  33. package/lib/components/DataGridSelectionCell/useDataGridSelectionCell.js.map +1 -1
  34. package/lib/components/Table/Table.js.map +1 -1
  35. package/lib/components/Table/renderTable.js +5 -4
  36. package/lib/components/Table/renderTable.js.map +1 -1
  37. package/lib/components/Table/useTable.js.map +1 -1
  38. package/lib/components/Table/useTableContextValues.js +1 -1
  39. package/lib/components/Table/useTableContextValues.js.map +1 -1
  40. package/lib/components/TableBody/TableBody.js.map +1 -1
  41. package/lib/components/TableBody/renderTableBody.js +2 -2
  42. package/lib/components/TableBody/renderTableBody.js.map +1 -1
  43. package/lib/components/TableBody/useTableBody.js +1 -1
  44. package/lib/components/TableBody/useTableBody.js.map +1 -1
  45. package/lib/components/TableCell/TableCell.js.map +1 -1
  46. package/lib/components/TableCell/renderTableCell.js +2 -2
  47. package/lib/components/TableCell/renderTableCell.js.map +1 -1
  48. package/lib/components/TableCell/useTableCell.js +1 -1
  49. package/lib/components/TableCell/useTableCell.js.map +1 -1
  50. package/lib/components/TableCellActions/TableCellActions.js.map +1 -1
  51. package/lib/components/TableCellActions/renderTableCellActions.js +2 -2
  52. package/lib/components/TableCellActions/renderTableCellActions.js.map +1 -1
  53. package/lib/components/TableCellActions/useTableCellActions.js.map +1 -1
  54. package/lib/components/TableCellLayout/TableCellLayout.js.map +1 -1
  55. package/lib/components/TableCellLayout/renderTableCellLayout.js +17 -4
  56. package/lib/components/TableCellLayout/renderTableCellLayout.js.map +1 -1
  57. package/lib/components/TableCellLayout/useTableCellLayout.js +1 -1
  58. package/lib/components/TableCellLayout/useTableCellLayout.js.map +1 -1
  59. package/lib/components/TableCellLayout/useTableCellLayoutContextValues.js +1 -1
  60. package/lib/components/TableCellLayout/useTableCellLayoutContextValues.js.map +1 -1
  61. package/lib/components/TableCellLayout/useTableCellLayoutStyles.styles.js.map +1 -1
  62. package/lib/components/TableHeader/TableHeader.js.map +1 -1
  63. package/lib/components/TableHeader/renderTableHeader.js +5 -4
  64. package/lib/components/TableHeader/renderTableHeader.js.map +1 -1
  65. package/lib/components/TableHeader/useTableHeader.js +1 -1
  66. package/lib/components/TableHeader/useTableHeader.js.map +1 -1
  67. package/lib/components/TableHeaderCell/TableHeaderCell.js.map +1 -1
  68. package/lib/components/TableHeaderCell/renderTableHeaderCell.js +12 -2
  69. package/lib/components/TableHeaderCell/renderTableHeaderCell.js.map +1 -1
  70. package/lib/components/TableHeaderCell/useTableHeaderCell.js +1 -1
  71. package/lib/components/TableHeaderCell/useTableHeaderCell.js.map +1 -1
  72. package/lib/components/TableResizeHandle/TableResizeHandle.js.map +1 -1
  73. package/lib/components/TableResizeHandle/renderTableResizeHandle.js +2 -2
  74. package/lib/components/TableResizeHandle/renderTableResizeHandle.js.map +1 -1
  75. package/lib/components/TableResizeHandle/useTableResizeHandle.js +2 -2
  76. package/lib/components/TableResizeHandle/useTableResizeHandle.js.map +1 -1
  77. package/lib/components/TableRow/TableRow.js.map +1 -1
  78. package/lib/components/TableRow/renderTableRow.js +2 -2
  79. package/lib/components/TableRow/renderTableRow.js.map +1 -1
  80. package/lib/components/TableRow/useTableRow.js +1 -1
  81. package/lib/components/TableRow/useTableRow.js.map +1 -1
  82. package/lib/components/TableSelectionCell/TableSelectionCell.js.map +1 -1
  83. package/lib/components/TableSelectionCell/renderTableSelectionCell.js +7 -2
  84. package/lib/components/TableSelectionCell/renderTableSelectionCell.js.map +1 -1
  85. package/lib/components/TableSelectionCell/useTableSelectionCell.js +2 -2
  86. package/lib/components/TableSelectionCell/useTableSelectionCell.js.map +1 -1
  87. package/lib/contexts/columnIdContext.js.map +1 -1
  88. package/lib/contexts/dataGridContext.js.map +1 -1
  89. package/lib/contexts/rowIdContext.js.map +1 -1
  90. package/lib/contexts/tableContext.js.map +1 -1
  91. package/lib/hooks/createColumn.js +1 -1
  92. package/lib/hooks/createColumn.js.map +1 -1
  93. package/lib/hooks/useKeyboardResizing.js +6 -6
  94. package/lib/hooks/useKeyboardResizing.js.map +1 -1
  95. package/lib/hooks/useMeasureElement.js +3 -2
  96. package/lib/hooks/useMeasureElement.js.map +1 -1
  97. package/lib/hooks/useTableColumnResizeMouseHandler.js +20 -16
  98. package/lib/hooks/useTableColumnResizeMouseHandler.js.map +1 -1
  99. package/lib/hooks/useTableColumnResizeState.js +5 -5
  100. package/lib/hooks/useTableColumnResizeState.js.map +1 -1
  101. package/lib/hooks/useTableColumnSizing.js +7 -6
  102. package/lib/hooks/useTableColumnSizing.js.map +1 -1
  103. package/lib/hooks/useTableCompositeNavigation.js +2 -2
  104. package/lib/hooks/useTableCompositeNavigation.js.map +1 -1
  105. package/lib/hooks/useTableFeatures.js +4 -5
  106. package/lib/hooks/useTableFeatures.js.map +1 -1
  107. package/lib/hooks/useTableSelection.js +6 -4
  108. package/lib/hooks/useTableSelection.js.map +1 -1
  109. package/lib/hooks/useTableSort.js +9 -6
  110. package/lib/hooks/useTableSort.js.map +1 -1
  111. package/lib/utils/columnResizeUtils.js +6 -4
  112. package/lib/utils/columnResizeUtils.js.map +1 -1
  113. package/lib-commonjs/DataGrid.js +2 -2
  114. package/lib-commonjs/DataGrid.js.map +1 -1
  115. package/lib-commonjs/DataGridBody.js +2 -2
  116. package/lib-commonjs/DataGridBody.js.map +1 -1
  117. package/lib-commonjs/DataGridCell.js +2 -2
  118. package/lib-commonjs/DataGridCell.js.map +1 -1
  119. package/lib-commonjs/DataGridHeader.js +2 -2
  120. package/lib-commonjs/DataGridHeader.js.map +1 -1
  121. package/lib-commonjs/DataGridHeaderCell.js +2 -2
  122. package/lib-commonjs/DataGridHeaderCell.js.map +1 -1
  123. package/lib-commonjs/DataGridRow.js +2 -2
  124. package/lib-commonjs/DataGridRow.js.map +1 -1
  125. package/lib-commonjs/DataGridSelectionCell.js +2 -2
  126. package/lib-commonjs/DataGridSelectionCell.js.map +1 -1
  127. package/lib-commonjs/Table.js +2 -2
  128. package/lib-commonjs/Table.js.map +1 -1
  129. package/lib-commonjs/TableBody.js +2 -2
  130. package/lib-commonjs/TableBody.js.map +1 -1
  131. package/lib-commonjs/TableCell.js +2 -2
  132. package/lib-commonjs/TableCell.js.map +1 -1
  133. package/lib-commonjs/TableCellActions.js +2 -2
  134. package/lib-commonjs/TableCellActions.js.map +1 -1
  135. package/lib-commonjs/TableCellLayout.js +2 -2
  136. package/lib-commonjs/TableCellLayout.js.map +1 -1
  137. package/lib-commonjs/TableCellPrimaryLayout.js +2 -2
  138. package/lib-commonjs/TableCellPrimaryLayout.js.map +1 -1
  139. package/lib-commonjs/TableHeader.js +2 -2
  140. package/lib-commonjs/TableHeader.js.map +1 -1
  141. package/lib-commonjs/TableHeaderCell.js +2 -2
  142. package/lib-commonjs/TableHeaderCell.js.map +1 -1
  143. package/lib-commonjs/TableResizeHandle.js +2 -2
  144. package/lib-commonjs/TableResizeHandle.js.map +1 -1
  145. package/lib-commonjs/TableRow.js +2 -2
  146. package/lib-commonjs/TableRow.js.map +1 -1
  147. package/lib-commonjs/TableSelectionCell.js +2 -2
  148. package/lib-commonjs/TableSelectionCell.js.map +1 -1
  149. package/lib-commonjs/components/DataGrid/DataGrid.js +9 -7
  150. package/lib-commonjs/components/DataGrid/DataGrid.js.map +1 -1
  151. package/lib-commonjs/components/DataGrid/DataGrid.types.js +2 -2
  152. package/lib-commonjs/components/DataGrid/DataGrid.types.js.map +1 -1
  153. package/lib-commonjs/components/DataGrid/index.js +7 -7
  154. package/lib-commonjs/components/DataGrid/index.js.map +1 -1
  155. package/lib-commonjs/components/DataGrid/renderDataGrid.js +5 -3
  156. package/lib-commonjs/components/DataGrid/renderDataGrid.js.map +1 -1
  157. package/lib-commonjs/components/DataGrid/useDataGrid.js +20 -18
  158. package/lib-commonjs/components/DataGrid/useDataGrid.js.map +1 -1
  159. package/lib-commonjs/components/DataGrid/useDataGridContextValues.js +4 -2
  160. package/lib-commonjs/components/DataGrid/useDataGridContextValues.js.map +1 -1
  161. package/lib-commonjs/components/DataGrid/useDataGridStyles.styles.js +8 -4
  162. package/lib-commonjs/components/DataGrid/useDataGridStyles.styles.js.map +1 -1
  163. package/lib-commonjs/components/DataGridBody/DataGridBody.js +9 -7
  164. package/lib-commonjs/components/DataGridBody/DataGridBody.js.map +1 -1
  165. package/lib-commonjs/components/DataGridBody/DataGridBody.types.js +2 -2
  166. package/lib-commonjs/components/DataGridBody/DataGridBody.types.js.map +1 -1
  167. package/lib-commonjs/components/DataGridBody/index.js +6 -6
  168. package/lib-commonjs/components/DataGridBody/index.js.map +1 -1
  169. package/lib-commonjs/components/DataGridBody/renderDataGridBody.js +13 -9
  170. package/lib-commonjs/components/DataGridBody/renderDataGridBody.js.map +1 -1
  171. package/lib-commonjs/components/DataGridBody/useDataGridBody.js +6 -4
  172. package/lib-commonjs/components/DataGridBody/useDataGridBody.js.map +1 -1
  173. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.styles.js +8 -4
  174. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.styles.js.map +1 -1
  175. package/lib-commonjs/components/DataGridCell/DataGridCell.js +9 -7
  176. package/lib-commonjs/components/DataGridCell/DataGridCell.js.map +1 -1
  177. package/lib-commonjs/components/DataGridCell/index.js +6 -6
  178. package/lib-commonjs/components/DataGridCell/index.js.map +1 -1
  179. package/lib-commonjs/components/DataGridCell/renderDataGridCell.js +3 -1
  180. package/lib-commonjs/components/DataGridCell/renderDataGridCell.js.map +1 -1
  181. package/lib-commonjs/components/DataGridCell/useDataGridCell.js +8 -6
  182. package/lib-commonjs/components/DataGridCell/useDataGridCell.js.map +1 -1
  183. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.styles.js +8 -4
  184. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.styles.js.map +1 -1
  185. package/lib-commonjs/components/DataGridHeader/DataGridHeader.js +9 -7
  186. package/lib-commonjs/components/DataGridHeader/DataGridHeader.js.map +1 -1
  187. package/lib-commonjs/components/DataGridHeader/index.js +6 -6
  188. package/lib-commonjs/components/DataGridHeader/index.js.map +1 -1
  189. package/lib-commonjs/components/DataGridHeader/renderDataGridHeader.js +3 -1
  190. package/lib-commonjs/components/DataGridHeader/renderDataGridHeader.js.map +1 -1
  191. package/lib-commonjs/components/DataGridHeader/useDataGridHeader.js +5 -3
  192. package/lib-commonjs/components/DataGridHeader/useDataGridHeader.js.map +1 -1
  193. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.styles.js +8 -4
  194. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.styles.js.map +1 -1
  195. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.js +9 -7
  196. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.js.map +1 -1
  197. package/lib-commonjs/components/DataGridHeaderCell/index.js +6 -6
  198. package/lib-commonjs/components/DataGridHeaderCell/index.js.map +1 -1
  199. package/lib-commonjs/components/DataGridHeaderCell/renderDataGridHeaderCell.js +3 -1
  200. package/lib-commonjs/components/DataGridHeaderCell/renderDataGridHeaderCell.js.map +1 -1
  201. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCell.js +10 -8
  202. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCell.js.map +1 -1
  203. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.js +8 -4
  204. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.js.map +1 -1
  205. package/lib-commonjs/components/DataGridRow/DataGridRow.js +9 -7
  206. package/lib-commonjs/components/DataGridRow/DataGridRow.js.map +1 -1
  207. package/lib-commonjs/components/DataGridRow/DataGridRow.types.js +2 -2
  208. package/lib-commonjs/components/DataGridRow/DataGridRow.types.js.map +1 -1
  209. package/lib-commonjs/components/DataGridRow/index.js +6 -6
  210. package/lib-commonjs/components/DataGridRow/index.js.map +1 -1
  211. package/lib-commonjs/components/DataGridRow/renderDataGridRow.js +16 -9
  212. package/lib-commonjs/components/DataGridRow/renderDataGridRow.js.map +1 -1
  213. package/lib-commonjs/components/DataGridRow/useDataGridRow.js +18 -16
  214. package/lib-commonjs/components/DataGridRow/useDataGridRow.js.map +1 -1
  215. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.styles.js +8 -4
  216. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.styles.js.map +1 -1
  217. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.js +9 -7
  218. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.js.map +1 -1
  219. package/lib-commonjs/components/DataGridSelectionCell/index.js +6 -6
  220. package/lib-commonjs/components/DataGridSelectionCell/index.js.map +1 -1
  221. package/lib-commonjs/components/DataGridSelectionCell/renderDataGridSelectionCell.js +3 -1
  222. package/lib-commonjs/components/DataGridSelectionCell/renderDataGridSelectionCell.js.map +1 -1
  223. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCell.js +9 -7
  224. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCell.js.map +1 -1
  225. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.js +8 -4
  226. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.js.map +1 -1
  227. package/lib-commonjs/components/Table/Table.js +9 -7
  228. package/lib-commonjs/components/Table/Table.js.map +1 -1
  229. package/lib-commonjs/components/Table/index.js +6 -6
  230. package/lib-commonjs/components/Table/index.js.map +1 -1
  231. package/lib-commonjs/components/Table/renderTable.js +11 -8
  232. package/lib-commonjs/components/Table/renderTable.js.map +1 -1
  233. package/lib-commonjs/components/Table/useTable.js +7 -5
  234. package/lib-commonjs/components/Table/useTable.js.map +1 -1
  235. package/lib-commonjs/components/Table/useTableContextValues.js +6 -4
  236. package/lib-commonjs/components/Table/useTableContextValues.js.map +1 -1
  237. package/lib-commonjs/components/Table/useTableStyles.styles.js +12 -6
  238. package/lib-commonjs/components/Table/useTableStyles.styles.js.map +1 -1
  239. package/lib-commonjs/components/TableBody/TableBody.js +9 -7
  240. package/lib-commonjs/components/TableBody/TableBody.js.map +1 -1
  241. package/lib-commonjs/components/TableBody/index.js +6 -6
  242. package/lib-commonjs/components/TableBody/index.js.map +1 -1
  243. package/lib-commonjs/components/TableBody/renderTableBody.js +8 -6
  244. package/lib-commonjs/components/TableBody/renderTableBody.js.map +1 -1
  245. package/lib-commonjs/components/TableBody/useTableBody.js +8 -6
  246. package/lib-commonjs/components/TableBody/useTableBody.js.map +1 -1
  247. package/lib-commonjs/components/TableBody/useTableBodyStyles.styles.js +11 -5
  248. package/lib-commonjs/components/TableBody/useTableBodyStyles.styles.js.map +1 -1
  249. package/lib-commonjs/components/TableCell/TableCell.js +9 -7
  250. package/lib-commonjs/components/TableCell/TableCell.js.map +1 -1
  251. package/lib-commonjs/components/TableCell/index.js +6 -6
  252. package/lib-commonjs/components/TableCell/index.js.map +1 -1
  253. package/lib-commonjs/components/TableCell/renderTableCell.js +8 -6
  254. package/lib-commonjs/components/TableCell/renderTableCell.js.map +1 -1
  255. package/lib-commonjs/components/TableCell/useTableCell.js +8 -6
  256. package/lib-commonjs/components/TableCell/useTableCell.js.map +1 -1
  257. package/lib-commonjs/components/TableCell/useTableCellStyles.styles.js +12 -6
  258. package/lib-commonjs/components/TableCell/useTableCellStyles.styles.js.map +1 -1
  259. package/lib-commonjs/components/TableCellActions/TableCellActions.js +9 -7
  260. package/lib-commonjs/components/TableCellActions/TableCellActions.js.map +1 -1
  261. package/lib-commonjs/components/TableCellActions/index.js +6 -6
  262. package/lib-commonjs/components/TableCellActions/index.js.map +1 -1
  263. package/lib-commonjs/components/TableCellActions/renderTableCellActions.js +8 -6
  264. package/lib-commonjs/components/TableCellActions/renderTableCellActions.js.map +1 -1
  265. package/lib-commonjs/components/TableCellActions/useTableCellActions.js +7 -5
  266. package/lib-commonjs/components/TableCellActions/useTableCellActions.js.map +1 -1
  267. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.styles.js +7 -3
  268. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.styles.js.map +1 -1
  269. package/lib-commonjs/components/TableCellLayout/TableCellLayout.js +9 -7
  270. package/lib-commonjs/components/TableCellLayout/TableCellLayout.js.map +1 -1
  271. package/lib-commonjs/components/TableCellLayout/index.js +6 -6
  272. package/lib-commonjs/components/TableCellLayout/index.js.map +1 -1
  273. package/lib-commonjs/components/TableCellLayout/renderTableCellLayout.js +24 -9
  274. package/lib-commonjs/components/TableCellLayout/renderTableCellLayout.js.map +1 -1
  275. package/lib-commonjs/components/TableCellLayout/useTableCellLayout.js +12 -10
  276. package/lib-commonjs/components/TableCellLayout/useTableCellLayout.js.map +1 -1
  277. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutContextValues.js +6 -4
  278. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutContextValues.js.map +1 -1
  279. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.styles.js +8 -4
  280. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.styles.js.map +1 -1
  281. package/lib-commonjs/components/TableHeader/TableHeader.js +9 -7
  282. package/lib-commonjs/components/TableHeader/TableHeader.js.map +1 -1
  283. package/lib-commonjs/components/TableHeader/index.js +6 -6
  284. package/lib-commonjs/components/TableHeader/index.js.map +1 -1
  285. package/lib-commonjs/components/TableHeader/renderTableHeader.js +11 -8
  286. package/lib-commonjs/components/TableHeader/renderTableHeader.js.map +1 -1
  287. package/lib-commonjs/components/TableHeader/useTableHeader.js +8 -6
  288. package/lib-commonjs/components/TableHeader/useTableHeader.js.map +1 -1
  289. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.styles.js +11 -5
  290. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.styles.js.map +1 -1
  291. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.js +9 -7
  292. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.js.map +1 -1
  293. package/lib-commonjs/components/TableHeaderCell/index.js +6 -6
  294. package/lib-commonjs/components/TableHeaderCell/index.js.map +1 -1
  295. package/lib-commonjs/components/TableHeaderCell/renderTableHeaderCell.js +18 -6
  296. package/lib-commonjs/components/TableHeaderCell/renderTableHeaderCell.js.map +1 -1
  297. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCell.js +17 -15
  298. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCell.js.map +1 -1
  299. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.styles.js +12 -6
  300. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.styles.js.map +1 -1
  301. package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.js +9 -7
  302. package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.js.map +1 -1
  303. package/lib-commonjs/components/TableResizeHandle/index.js +6 -6
  304. package/lib-commonjs/components/TableResizeHandle/index.js.map +1 -1
  305. package/lib-commonjs/components/TableResizeHandle/renderTableResizeHandle.js +8 -6
  306. package/lib-commonjs/components/TableResizeHandle/renderTableResizeHandle.js.map +1 -1
  307. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandle.js +10 -8
  308. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandle.js.map +1 -1
  309. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.styles.js +7 -3
  310. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.styles.js.map +1 -1
  311. package/lib-commonjs/components/TableRow/TableRow.js +9 -7
  312. package/lib-commonjs/components/TableRow/TableRow.js.map +1 -1
  313. package/lib-commonjs/components/TableRow/index.js +6 -6
  314. package/lib-commonjs/components/TableRow/index.js.map +1 -1
  315. package/lib-commonjs/components/TableRow/renderTableRow.js +8 -6
  316. package/lib-commonjs/components/TableRow/renderTableRow.js.map +1 -1
  317. package/lib-commonjs/components/TableRow/useTableRow.js +12 -10
  318. package/lib-commonjs/components/TableRow/useTableRow.js.map +1 -1
  319. package/lib-commonjs/components/TableRow/useTableRowStyles.styles.js +12 -6
  320. package/lib-commonjs/components/TableRow/useTableRowStyles.styles.js.map +1 -1
  321. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.js +9 -7
  322. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.js.map +1 -1
  323. package/lib-commonjs/components/TableSelectionCell/index.js +6 -6
  324. package/lib-commonjs/components/TableSelectionCell/index.js.map +1 -1
  325. package/lib-commonjs/components/TableSelectionCell/renderTableSelectionCell.js +13 -6
  326. package/lib-commonjs/components/TableSelectionCell/renderTableSelectionCell.js.map +1 -1
  327. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCell.js +17 -15
  328. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCell.js.map +1 -1
  329. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.styles.js +12 -6
  330. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.styles.js.map +1 -1
  331. package/lib-commonjs/contexts/columnIdContext.js +11 -5
  332. package/lib-commonjs/contexts/columnIdContext.js.map +1 -1
  333. package/lib-commonjs/contexts/dataGridContext.js +9 -5
  334. package/lib-commonjs/contexts/dataGridContext.js.map +1 -1
  335. package/lib-commonjs/contexts/rowIdContext.js +11 -5
  336. package/lib-commonjs/contexts/rowIdContext.js.map +1 -1
  337. package/lib-commonjs/contexts/tableContext.js +11 -5
  338. package/lib-commonjs/contexts/tableContext.js.map +1 -1
  339. package/lib-commonjs/contexts/tableHeaderContext.js +8 -4
  340. package/lib-commonjs/contexts/tableHeaderContext.js.map +1 -1
  341. package/lib-commonjs/hooks/createColumn.js +4 -2
  342. package/lib-commonjs/hooks/createColumn.js.map +1 -1
  343. package/lib-commonjs/hooks/index.js +8 -8
  344. package/lib-commonjs/hooks/index.js.map +1 -1
  345. package/lib-commonjs/hooks/types.js +2 -2
  346. package/lib-commonjs/hooks/types.js.map +1 -1
  347. package/lib-commonjs/hooks/useKeyboardResizing.js +22 -20
  348. package/lib-commonjs/hooks/useKeyboardResizing.js.map +1 -1
  349. package/lib-commonjs/hooks/useMeasureElement.js +11 -8
  350. package/lib-commonjs/hooks/useMeasureElement.js.map +1 -1
  351. package/lib-commonjs/hooks/useTableColumnResizeMouseHandler.js +32 -26
  352. package/lib-commonjs/hooks/useTableColumnResizeMouseHandler.js.map +1 -1
  353. package/lib-commonjs/hooks/useTableColumnResizeState.js +15 -13
  354. package/lib-commonjs/hooks/useTableColumnResizeState.js.map +1 -1
  355. package/lib-commonjs/hooks/useTableColumnSizing.js +17 -12
  356. package/lib-commonjs/hooks/useTableColumnSizing.js.map +1 -1
  357. package/lib-commonjs/hooks/useTableCompositeNavigation.js +20 -18
  358. package/lib-commonjs/hooks/useTableCompositeNavigation.js.map +1 -1
  359. package/lib-commonjs/hooks/useTableFeatures.js +12 -9
  360. package/lib-commonjs/hooks/useTableFeatures.js.map +1 -1
  361. package/lib-commonjs/hooks/useTableSelection.js +24 -16
  362. package/lib-commonjs/hooks/useTableSelection.js.map +1 -1
  363. package/lib-commonjs/hooks/useTableSort.js +22 -13
  364. package/lib-commonjs/hooks/useTableSort.js.map +1 -1
  365. package/lib-commonjs/index.js +344 -126
  366. package/lib-commonjs/index.js.map +1 -1
  367. package/lib-commonjs/utils/columnResizeUtils.js +30 -12
  368. package/lib-commonjs/utils/columnResizeUtils.js.map +1 -1
  369. package/package.json +17 -17
@@ -1,18 +1,25 @@
1
- /** @jsxRuntime classic */ /** @jsx createElement */ "use strict";
1
+ /** @jsxRuntime automatic */ /** @jsxImportSource @fluentui/react-jsx-runtime */ "use strict";
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
5
  Object.defineProperty(exports, "renderDataGridRow_unstable", {
6
6
  enumerable: true,
7
- get: ()=>renderDataGridRow_unstable
7
+ get: function() {
8
+ return renderDataGridRow_unstable;
9
+ }
8
10
  });
9
- const _reactJsxRuntime = require("@fluentui/react-jsx-runtime");
10
- const _reactUtilities = require("@fluentui/react-utilities");
11
+ const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
12
+ const _reactutilities = require("@fluentui/react-utilities");
11
13
  const _columnIdContext = require("../../contexts/columnIdContext");
12
14
  const renderDataGridRow_unstable = (state)=>{
13
- (0, _reactUtilities.assertSlots)(state);
14
- return /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(state.root, null, state.selectionCell && /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(state.selectionCell, null), state.columnDefs.map((columnDef)=>/*#__PURE__*/ (0, _reactJsxRuntime.createElement)(_columnIdContext.ColumnIdContextProvider, {
15
- value: columnDef.columnId,
16
- key: columnDef.columnId
17
- }, state.renderCell(columnDef, state.dataGridContextValue))));
15
+ (0, _reactutilities.assertSlots)(state);
16
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(state.root, {
17
+ children: [
18
+ state.selectionCell && /*#__PURE__*/ (0, _jsxruntime.jsx)(state.selectionCell, {}),
19
+ state.columnDefs.map((columnDef)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_columnIdContext.ColumnIdContextProvider, {
20
+ value: columnDef.columnId,
21
+ children: state.renderCell(columnDef, state.dataGridContextValue)
22
+ }, columnDef.columnId))
23
+ ]
24
+ });
18
25
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["renderDataGridRow.js"],"sourcesContent":["/** @jsxRuntime classic */ /** @jsx createElement */ import { createElement } from '@fluentui/react-jsx-runtime';\nimport { assertSlots } from '@fluentui/react-utilities';\nimport { ColumnIdContextProvider } from '../../contexts/columnIdContext';\n/**\n * Render the final JSX of DataGridRow\n */ export const renderDataGridRow_unstable = (state)=>{\n assertSlots(state);\n return /*#__PURE__*/ createElement(state.root, null, state.selectionCell && /*#__PURE__*/ createElement(state.selectionCell, null), state.columnDefs.map((columnDef)=>/*#__PURE__*/ createElement(ColumnIdContextProvider, {\n value: columnDef.columnId,\n key: columnDef.columnId\n }, state.renderCell(columnDef, state.dataGridContextValue))));\n};\n"],"names":["renderDataGridRow_unstable","state","assertSlots","createElement","root","selectionCell","columnDefs","map","columnDef","ColumnIdContextProvider","value","columnId","key","renderCell","dataGridContextValue"],"mappings":"AAAA,wBAAwB,GAAG,uBAAuB;;;;+BAKjCA;;aAAAA;;iCALkE;gCACvD;iCACY;AAG7B,MAAMA,6BAA6B,CAACC,QAAQ;IACnDC,IAAAA,2BAAW,EAACD;IACZ,OAAO,WAAW,GAAGE,IAAAA,8BAAa,EAACF,MAAMG,IAAI,EAAE,IAAI,EAAEH,MAAMI,aAAa,IAAI,WAAW,GAAGF,IAAAA,8BAAa,EAACF,MAAMI,aAAa,EAAE,IAAI,GAAGJ,MAAMK,UAAU,CAACC,GAAG,CAAC,CAACC,YAAY,WAAW,GAAGL,IAAAA,8BAAa,EAACM,wCAAuB,EAAE;YACnNC,OAAOF,UAAUG,QAAQ;YACzBC,KAAKJ,UAAUG,QAAQ;QAC3B,GAAGV,MAAMY,UAAU,CAACL,WAAWP,MAAMa,oBAAoB;AACjE"}
1
+ {"version":3,"sources":["renderDataGridRow.js"],"sourcesContent":["/** @jsxRuntime automatic */ /** @jsxImportSource @fluentui/react-jsx-runtime */ import { jsx as _jsx, jsxs as _jsxs } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { assertSlots } from '@fluentui/react-utilities';\nimport { ColumnIdContextProvider } from '../../contexts/columnIdContext';\n/**\n * Render the final JSX of DataGridRow\n */ export const renderDataGridRow_unstable = (state)=>{\n assertSlots(state);\n return /*#__PURE__*/ _jsxs(state.root, {\n children: [\n state.selectionCell && /*#__PURE__*/ _jsx(state.selectionCell, {}),\n state.columnDefs.map((columnDef)=>/*#__PURE__*/ _jsx(ColumnIdContextProvider, {\n value: columnDef.columnId,\n children: state.renderCell(columnDef, state.dataGridContextValue)\n }, columnDef.columnId))\n ]\n });\n};\n"],"names":["renderDataGridRow_unstable","state","assertSlots","_jsxs","root","children","selectionCell","_jsx","columnDefs","map","columnDef","ColumnIdContextProvider","value","columnId","renderCell","dataGridContextValue"],"mappings":"AAAA,0BAA0B,GAAG,iDAAiD;;;;+BAK7DA;;;eAAAA;;;4BAL2G;gCAChG;iCACY;AAG7B,MAAMA,6BAA6B,CAACC;IAC3CC,IAAAA,2BAAW,EAACD;IACZ,OAAO,WAAW,GAAGE,IAAAA,gBAAK,EAACF,MAAMG,IAAI,EAAE;QACnCC,UAAU;YACNJ,MAAMK,aAAa,IAAI,WAAW,GAAGC,IAAAA,eAAI,EAACN,MAAMK,aAAa,EAAE,CAAC;YAChEL,MAAMO,UAAU,CAACC,GAAG,CAAC,CAACC,YAAY,WAAW,GAAGH,IAAAA,eAAI,EAACI,wCAAuB,EAAE;oBACtEC,OAAOF,UAAUG,QAAQ;oBACzBR,UAAUJ,MAAMa,UAAU,CAACJ,WAAWT,MAAMc,oBAAoB;gBACpE,GAAGL,UAAUG,QAAQ;SAC5B;IACL;AACJ"}
@@ -4,15 +4,17 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "useDataGridRow_unstable", {
6
6
  enumerable: true,
7
- get: ()=>useDataGridRow_unstable
7
+ get: function() {
8
+ return useDataGridRow_unstable;
9
+ }
8
10
  });
9
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
- const _reactUtilities = require("@fluentui/react-utilities");
12
- const _keyboardKeys = require("@fluentui/keyboard-keys");
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactutilities = require("@fluentui/react-utilities");
14
+ const _keyboardkeys = require("@fluentui/keyboard-keys");
13
15
  const _useTableRow = require("../TableRow/useTableRow");
14
16
  const _dataGridContext = require("../../contexts/dataGridContext");
15
- const _dataGridSelectionCell = require("../DataGridSelectionCell/DataGridSelectionCell");
17
+ const _DataGridSelectionCell = require("../DataGridSelectionCell/DataGridSelectionCell");
16
18
  const _rowIdContext = require("../../contexts/rowIdContext");
17
19
  const _tableHeaderContext = require("../../contexts/tableHeaderContext");
18
20
  const useDataGridRow_unstable = (props, ref)=>{
@@ -32,21 +34,21 @@ const useDataGridRow_unstable = (props, ref)=>{
32
34
  });
33
35
  const toggleRow = (0, _dataGridContext.useDataGridContext_unstable)((ctx)=>ctx.selection.toggleRow);
34
36
  const dataGridContextValue = (0, _dataGridContext.useDataGridContext_unstable)((ctx)=>ctx);
35
- const onClick = (0, _reactUtilities.useEventCallback)((e)=>{
36
- var _props_onClick;
37
+ const onClick = (0, _reactutilities.useEventCallback)((e)=>{
38
+ var _props_onClick, _props;
37
39
  if (selectable && !isHeader) {
38
40
  toggleRow(e, rowId);
39
41
  }
40
- (_props_onClick = props.onClick) === null || _props_onClick === void 0 ? void 0 : _props_onClick.call(props, e);
42
+ (_props_onClick = (_props = props).onClick) === null || _props_onClick === void 0 ? void 0 : _props_onClick.call(_props, e);
41
43
  });
42
- const onKeyDown = (0, _reactUtilities.useEventCallback)((e)=>{
43
- var _props_onKeyDown;
44
- if (selectable && !isHeader && e.key === _keyboardKeys.Space && !(0, _reactUtilities.isInteractiveHTMLElement)(e.target)) {
44
+ const onKeyDown = (0, _reactutilities.useEventCallback)((e)=>{
45
+ var _props_onKeyDown, _props;
46
+ if (selectable && !isHeader && e.key === _keyboardkeys.Space && !(0, _reactutilities.isInteractiveHTMLElement)(e.target)) {
45
47
  // stop scrolling
46
48
  e.preventDefault();
47
49
  toggleRow(e, rowId);
48
50
  }
49
- (_props_onKeyDown = props.onKeyDown) === null || _props_onKeyDown === void 0 ? void 0 : _props_onKeyDown.call(props, e);
51
+ (_props_onKeyDown = (_props = props).onKeyDown) === null || _props_onKeyDown === void 0 ? void 0 : _props_onKeyDown.call(_props, e);
50
52
  });
51
53
  const baseState = (0, _useTableRow.useTableRow_unstable)({
52
54
  appearance,
@@ -63,11 +65,11 @@ const useDataGridRow_unstable = (props, ref)=>{
63
65
  ...baseState,
64
66
  components: {
65
67
  ...baseState.components,
66
- selectionCell: _dataGridSelectionCell.DataGridSelectionCell
68
+ selectionCell: _DataGridSelectionCell.DataGridSelectionCell
67
69
  },
68
- selectionCell: _reactUtilities.slot.optional(props.selectionCell, {
70
+ selectionCell: _reactutilities.slot.optional(props.selectionCell, {
69
71
  renderByDefault: selectable,
70
- elementType: _dataGridSelectionCell.DataGridSelectionCell
72
+ elementType: _DataGridSelectionCell.DataGridSelectionCell
71
73
  }),
72
74
  renderCell: props.children,
73
75
  columnDefs,
@@ -1 +1 @@
1
- {"version":3,"sources":["useDataGridRow.js"],"sourcesContent":["import * as React from 'react';\nimport { isInteractiveHTMLElement, useEventCallback, slot } from '@fluentui/react-utilities';\nimport { Space } from '@fluentui/keyboard-keys';\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 * 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 */ export const useDataGridRow_unstable = (props, ref)=>{\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 focusMode = useDataGridContext_unstable((ctx)=>ctx.focusMode);\n const compositeRowTabsterAttribute = useDataGridContext_unstable((ctx)=>ctx.compositeRowTabsterAttribute);\n const tabbable = focusMode === 'row_unstable' || focusMode === 'composite';\n const appearance = useDataGridContext_unstable((ctx)=>{\n if (!isHeader && selectable && ctx.selection.isRowSelected(rowId)) {\n return ctx.selectionAppearance;\n }\n return 'none';\n });\n const toggleRow = useDataGridContext_unstable((ctx)=>ctx.selection.toggleRow);\n const dataGridContextValue = useDataGridContext_unstable((ctx)=>ctx);\n const onClick = useEventCallback((e)=>{\n var _props_onClick;\n if (selectable && !isHeader) {\n toggleRow(e, rowId);\n }\n (_props_onClick = props.onClick) === null || _props_onClick === void 0 ? void 0 : _props_onClick.call(props, e);\n });\n const onKeyDown = useEventCallback((e)=>{\n var _props_onKeyDown;\n if (selectable && !isHeader && e.key === Space && !isInteractiveHTMLElement(e.target)) {\n // stop scrolling\n e.preventDefault();\n toggleRow(e, rowId);\n }\n (_props_onKeyDown = props.onKeyDown) === null || _props_onKeyDown === void 0 ? void 0 : _props_onKeyDown.call(props, e);\n });\n const baseState = useTableRow_unstable({\n appearance,\n 'aria-selected': selectable ? selected : undefined,\n tabIndex: tabbable && !isHeader ? 0 : undefined,\n ...focusMode === 'composite' && !isHeader && compositeRowTabsterAttribute,\n ...props,\n onClick,\n onKeyDown,\n children: null,\n as: 'div'\n }, ref);\n return {\n ...baseState,\n components: {\n ...baseState.components,\n selectionCell: DataGridSelectionCell\n },\n selectionCell: slot.optional(props.selectionCell, {\n renderByDefault: selectable,\n elementType: DataGridSelectionCell\n }),\n renderCell: props.children,\n columnDefs,\n dataGridContextValue\n };\n};\n"],"names":["useDataGridRow_unstable","props","ref","rowId","useTableRowIdContext","isHeader","useIsInTableHeader","columnDefs","useDataGridContext_unstable","ctx","columns","selectable","selectableRows","selected","selection","isRowSelected","focusMode","compositeRowTabsterAttribute","tabbable","appearance","selectionAppearance","toggleRow","dataGridContextValue","onClick","useEventCallback","e","_props_onClick","call","onKeyDown","_props_onKeyDown","key","Space","isInteractiveHTMLElement","target","preventDefault","baseState","useTableRow_unstable","undefined","tabIndex","children","as","components","selectionCell","DataGridSelectionCell","slot","optional","renderByDefault","elementType","renderCell"],"mappings":";;;;+BAgBiBA;;aAAAA;;;6DAhBM;gCAC0C;8BAC3C;6BACe;iCACO;uCACN;8BACD;oCACF;AASxB,MAAMA,0BAA0B,CAACC,OAAOC,MAAM;IACrD,MAAMC,QAAQC,IAAAA,kCAAoB;IAClC,MAAMC,WAAWC,IAAAA,sCAAkB;IACnC,MAAMC,aAAaC,IAAAA,4CAA2B,EAAC,CAACC,MAAMA,IAAIC,OAAO;IACjE,MAAMC,aAAaH,IAAAA,4CAA2B,EAAC,CAACC,MAAMA,IAAIG,cAAc;IACxE,MAAMC,WAAWL,IAAAA,4CAA2B,EAAC,CAACC,MAAMA,IAAIK,SAAS,CAACC,aAAa,CAACZ;IAChF,MAAMa,YAAYR,IAAAA,4CAA2B,EAAC,CAACC,MAAMA,IAAIO,SAAS;IAClE,MAAMC,+BAA+BT,IAAAA,4CAA2B,EAAC,CAACC,MAAMA,IAAIQ,4BAA4B;IACxG,MAAMC,WAAWF,cAAc,kBAAkBA,cAAc;IAC/D,MAAMG,aAAaX,IAAAA,4CAA2B,EAAC,CAACC,MAAM;QAClD,IAAI,CAACJ,YAAYM,cAAcF,IAAIK,SAAS,CAACC,aAAa,CAACZ,QAAQ;YAC/D,OAAOM,IAAIW,mBAAmB;QAClC,CAAC;QACD,OAAO;IACX;IACA,MAAMC,YAAYb,IAAAA,4CAA2B,EAAC,CAACC,MAAMA,IAAIK,SAAS,CAACO,SAAS;IAC5E,MAAMC,uBAAuBd,IAAAA,4CAA2B,EAAC,CAACC,MAAMA;IAChE,MAAMc,UAAUC,IAAAA,gCAAgB,EAAC,CAACC,IAAI;QAClC,IAAIC;QACJ,IAAIf,cAAc,CAACN,UAAU;YACzBgB,UAAUI,GAAGtB;QACjB,CAAC;QACAuB,CAAAA,iBAAiBzB,MAAMsB,OAAO,AAAD,MAAO,IAAI,IAAIG,mBAAmB,KAAK,IAAI,KAAK,IAAIA,eAAeC,IAAI,CAAC1B,OAAOwB,EAAE;IACnH;IACA,MAAMG,YAAYJ,IAAAA,gCAAgB,EAAC,CAACC,IAAI;QACpC,IAAII;QACJ,IAAIlB,cAAc,CAACN,YAAYoB,EAAEK,GAAG,KAAKC,mBAAK,IAAI,CAACC,IAAAA,wCAAwB,EAACP,EAAEQ,MAAM,GAAG;YACnF,iBAAiB;YACjBR,EAAES,cAAc;YAChBb,UAAUI,GAAGtB;QACjB,CAAC;QACA0B,CAAAA,mBAAmB5B,MAAM2B,SAAS,AAAD,MAAO,IAAI,IAAIC,qBAAqB,KAAK,IAAI,KAAK,IAAIA,iBAAiBF,IAAI,CAAC1B,OAAOwB,EAAE;IAC3H;IACA,MAAMU,YAAYC,IAAAA,iCAAoB,EAAC;QACnCjB;QACA,iBAAiBR,aAAaE,WAAWwB,SAAS;QAClDC,UAAUpB,YAAY,CAACb,WAAW,IAAIgC,SAAS;QAC/C,GAAGrB,cAAc,eAAe,CAACX,YAAYY,4BAA4B;QACzE,GAAGhB,KAAK;QACRsB;QACAK;QACAW,UAAU,IAAI;QACdC,IAAI;IACR,GAAGtC;IACH,OAAO;QACH,GAAGiC,SAAS;QACZM,YAAY;YACR,GAAGN,UAAUM,UAAU;YACvBC,eAAeC,4CAAqB;QACxC;QACAD,eAAeE,oBAAI,CAACC,QAAQ,CAAC5C,MAAMyC,aAAa,EAAE;YAC9CI,iBAAiBnC;YACjBoC,aAAaJ,4CAAqB;QACtC;QACAK,YAAY/C,MAAMsC,QAAQ;QAC1BhC;QACAe;IACJ;AACJ"}
1
+ {"version":3,"sources":["useDataGridRow.js"],"sourcesContent":["import * as React from 'react';\nimport { isInteractiveHTMLElement, useEventCallback, slot } from '@fluentui/react-utilities';\nimport { Space } from '@fluentui/keyboard-keys';\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 * 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 */ export const useDataGridRow_unstable = (props, ref)=>{\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 focusMode = useDataGridContext_unstable((ctx)=>ctx.focusMode);\n const compositeRowTabsterAttribute = useDataGridContext_unstable((ctx)=>ctx.compositeRowTabsterAttribute);\n const tabbable = focusMode === 'row_unstable' || focusMode === 'composite';\n const appearance = useDataGridContext_unstable((ctx)=>{\n if (!isHeader && selectable && ctx.selection.isRowSelected(rowId)) {\n return ctx.selectionAppearance;\n }\n return 'none';\n });\n const toggleRow = useDataGridContext_unstable((ctx)=>ctx.selection.toggleRow);\n const dataGridContextValue = useDataGridContext_unstable((ctx)=>ctx);\n const onClick = useEventCallback((e)=>{\n var _props_onClick, _props;\n if (selectable && !isHeader) {\n toggleRow(e, rowId);\n }\n (_props_onClick = (_props = props).onClick) === null || _props_onClick === void 0 ? void 0 : _props_onClick.call(_props, e);\n });\n const onKeyDown = useEventCallback((e)=>{\n var _props_onKeyDown, _props;\n if (selectable && !isHeader && e.key === Space && !isInteractiveHTMLElement(e.target)) {\n // stop scrolling\n e.preventDefault();\n toggleRow(e, rowId);\n }\n (_props_onKeyDown = (_props = props).onKeyDown) === null || _props_onKeyDown === void 0 ? void 0 : _props_onKeyDown.call(_props, e);\n });\n const baseState = useTableRow_unstable({\n appearance,\n 'aria-selected': selectable ? selected : undefined,\n tabIndex: tabbable && !isHeader ? 0 : undefined,\n ...focusMode === 'composite' && !isHeader && compositeRowTabsterAttribute,\n ...props,\n onClick,\n onKeyDown,\n children: null,\n as: 'div'\n }, ref);\n return {\n ...baseState,\n components: {\n ...baseState.components,\n selectionCell: DataGridSelectionCell\n },\n selectionCell: slot.optional(props.selectionCell, {\n renderByDefault: selectable,\n elementType: DataGridSelectionCell\n }),\n renderCell: props.children,\n columnDefs,\n dataGridContextValue\n };\n};\n"],"names":["useDataGridRow_unstable","props","ref","rowId","useTableRowIdContext","isHeader","useIsInTableHeader","columnDefs","useDataGridContext_unstable","ctx","columns","selectable","selectableRows","selected","selection","isRowSelected","focusMode","compositeRowTabsterAttribute","tabbable","appearance","selectionAppearance","toggleRow","dataGridContextValue","onClick","useEventCallback","e","_props_onClick","_props","call","onKeyDown","_props_onKeyDown","key","Space","isInteractiveHTMLElement","target","preventDefault","baseState","useTableRow_unstable","undefined","tabIndex","children","as","components","selectionCell","DataGridSelectionCell","slot","optional","renderByDefault","elementType","renderCell"],"mappings":";;;;+BAgBiBA;;;eAAAA;;;;iEAhBM;gCAC0C;8BAC3C;6BACe;iCACO;uCACN;8BACD;oCACF;AASxB,MAAMA,0BAA0B,CAACC,OAAOC;IAC/C,MAAMC,QAAQC,IAAAA,kCAAoB;IAClC,MAAMC,WAAWC,IAAAA,sCAAkB;IACnC,MAAMC,aAAaC,IAAAA,4CAA2B,EAAC,CAACC,MAAMA,IAAIC,OAAO;IACjE,MAAMC,aAAaH,IAAAA,4CAA2B,EAAC,CAACC,MAAMA,IAAIG,cAAc;IACxE,MAAMC,WAAWL,IAAAA,4CAA2B,EAAC,CAACC,MAAMA,IAAIK,SAAS,CAACC,aAAa,CAACZ;IAChF,MAAMa,YAAYR,IAAAA,4CAA2B,EAAC,CAACC,MAAMA,IAAIO,SAAS;IAClE,MAAMC,+BAA+BT,IAAAA,4CAA2B,EAAC,CAACC,MAAMA,IAAIQ,4BAA4B;IACxG,MAAMC,WAAWF,cAAc,kBAAkBA,cAAc;IAC/D,MAAMG,aAAaX,IAAAA,4CAA2B,EAAC,CAACC;QAC5C,IAAI,CAACJ,YAAYM,cAAcF,IAAIK,SAAS,CAACC,aAAa,CAACZ,QAAQ;YAC/D,OAAOM,IAAIW,mBAAmB;QAClC;QACA,OAAO;IACX;IACA,MAAMC,YAAYb,IAAAA,4CAA2B,EAAC,CAACC,MAAMA,IAAIK,SAAS,CAACO,SAAS;IAC5E,MAAMC,uBAAuBd,IAAAA,4CAA2B,EAAC,CAACC,MAAMA;IAChE,MAAMc,UAAUC,IAAAA,gCAAgB,EAAC,CAACC;QAC9B,IAAIC,gBAAgBC;QACpB,IAAIhB,cAAc,CAACN,UAAU;YACzBgB,UAAUI,GAAGtB;QACjB;QACCuB,CAAAA,iBAAiB,AAACC,CAAAA,SAAS1B,KAAI,EAAGsB,OAAO,AAAD,MAAO,QAAQG,mBAAmB,KAAK,IAAI,KAAK,IAAIA,eAAeE,IAAI,CAACD,QAAQF;IAC7H;IACA,MAAMI,YAAYL,IAAAA,gCAAgB,EAAC,CAACC;QAChC,IAAIK,kBAAkBH;QACtB,IAAIhB,cAAc,CAACN,YAAYoB,EAAEM,GAAG,KAAKC,mBAAK,IAAI,CAACC,IAAAA,wCAAwB,EAACR,EAAES,MAAM,GAAG;YACnF,iBAAiB;YACjBT,EAAEU,cAAc;YAChBd,UAAUI,GAAGtB;QACjB;QACC2B,CAAAA,mBAAmB,AAACH,CAAAA,SAAS1B,KAAI,EAAG4B,SAAS,AAAD,MAAO,QAAQC,qBAAqB,KAAK,IAAI,KAAK,IAAIA,iBAAiBF,IAAI,CAACD,QAAQF;IACrI;IACA,MAAMW,YAAYC,IAAAA,iCAAoB,EAAC;QACnClB;QACA,iBAAiBR,aAAaE,WAAWyB;QACzCC,UAAUrB,YAAY,CAACb,WAAW,IAAIiC;QACtC,GAAGtB,cAAc,eAAe,CAACX,YAAYY,4BAA4B;QACzE,GAAGhB,KAAK;QACRsB;QACAM;QACAW,UAAU;QACVC,IAAI;IACR,GAAGvC;IACH,OAAO;QACH,GAAGkC,SAAS;QACZM,YAAY;YACR,GAAGN,UAAUM,UAAU;YACvBC,eAAeC,4CAAqB;QACxC;QACAD,eAAeE,oBAAI,CAACC,QAAQ,CAAC7C,MAAM0C,aAAa,EAAE;YAC9CI,iBAAiBpC;YACjBqC,aAAaJ,4CAAqB;QACtC;QACAK,YAAYhD,MAAMuC,QAAQ;QAC1BjC;QACAe;IACJ;AACJ"}
@@ -9,17 +9,21 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- dataGridRowClassNames: ()=>dataGridRowClassNames,
13
- useDataGridRowStyles_unstable: ()=>useDataGridRowStyles_unstable
12
+ dataGridRowClassNames: function() {
13
+ return dataGridRowClassNames;
14
+ },
15
+ useDataGridRowStyles_unstable: function() {
16
+ return useDataGridRowStyles_unstable;
17
+ }
14
18
  });
15
19
  const _react = require("@griffel/react");
16
- const _useTableRowStylesStyles = require("../TableRow/useTableRowStyles.styles");
20
+ const _useTableRowStylesstyles = require("../TableRow/useTableRowStyles.styles");
17
21
  const dataGridRowClassNames = {
18
22
  root: 'fui-DataGridRow',
19
23
  selectionCell: 'fui-DataGridRow__selectionCell'
20
24
  };
21
25
  const useDataGridRowStyles_unstable = (state)=>{
22
- (0, _useTableRowStylesStyles.useTableRowStyles_unstable)(state);
26
+ (0, _useTableRowStylesstyles.useTableRowStyles_unstable)(state);
23
27
  state.root.className = (0, _react.mergeClasses)(dataGridRowClassNames.root, state.root.className);
24
28
  if (state.selectionCell) {
25
29
  state.selectionCell.className = (0, _react.mergeClasses)(dataGridRowClassNames.selectionCell, state.selectionCell.className);
@@ -1 +1 @@
1
- {"version":3,"sources":["useDataGridRowStyles.styles.js"],"sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport { useTableRowStyles_unstable } from '../TableRow/useTableRowStyles.styles';\nexport const dataGridRowClassNames = {\n root: 'fui-DataGridRow',\n selectionCell: 'fui-DataGridRow__selectionCell'\n};\n/**\n * Apply styling to the DataGridRow slots based on the state\n */\nexport const useDataGridRowStyles_unstable = state => {\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 return state;\n};\n//# sourceMappingURL=useDataGridRowStyles.styles.js.map"],"names":["dataGridRowClassNames","useDataGridRowStyles_unstable","root","selectionCell","state","useTableRowStyles_unstable","className","mergeClasses"],"mappings":";;;;;;;;;;;IAEaA,qBAAqB,MAArBA;IAOAC,6BAA6B,MAA7BA;;uBATgB;yCACc;AACpC,MAAMD,wBAAwB;IACnCE,MAAM;IACNC,eAAe;AACjB;AAIO,MAAMF,gCAAgCG,CAAAA,QAAS;IACpDC,IAAAA,mDAA0B,EAACD;IAC3BA,MAAMF,IAAI,CAACI,SAAS,GAAGC,IAAAA,mBAAY,EAACP,sBAAsBE,IAAI,EAAEE,MAAMF,IAAI,CAACI,SAAS;IACpF,IAAIF,MAAMD,aAAa,EAAE;QACvBC,MAAMD,aAAa,CAACG,SAAS,GAAGC,IAAAA,mBAAY,EAACP,sBAAsBG,aAAa,EAAEC,MAAMD,aAAa,CAACG,SAAS;IACjH,CAAC;IACD,OAAOF;AACT,GACA,uDAAuD"}
1
+ {"version":3,"sources":["useDataGridRowStyles.styles.js"],"sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport { useTableRowStyles_unstable } from '../TableRow/useTableRowStyles.styles';\nexport const dataGridRowClassNames = {\n root: 'fui-DataGridRow',\n selectionCell: 'fui-DataGridRow__selectionCell'\n};\n/**\n * Apply styling to the DataGridRow slots based on the state\n */\nexport const useDataGridRowStyles_unstable = state => {\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 return state;\n};\n//# sourceMappingURL=useDataGridRowStyles.styles.js.map"],"names":["dataGridRowClassNames","useDataGridRowStyles_unstable","root","selectionCell","state","useTableRowStyles_unstable","className","mergeClasses"],"mappings":";;;;;;;;;;;IAEaA,qBAAqB;eAArBA;;IAOAC,6BAA6B;eAA7BA;;;uBATgB;yCACc;AACpC,MAAMD,wBAAwB;IACnCE,MAAM;IACNC,eAAe;AACjB;AAIO,MAAMF,gCAAgCG,CAAAA;IAC3CC,IAAAA,mDAA0B,EAACD;IAC3BA,MAAMF,IAAI,CAACI,SAAS,GAAGC,IAAAA,mBAAY,EAACP,sBAAsBE,IAAI,EAAEE,MAAMF,IAAI,CAACI,SAAS;IACpF,IAAIF,MAAMD,aAAa,EAAE;QACvBC,MAAMD,aAAa,CAACG,SAAS,GAAGC,IAAAA,mBAAY,EAACP,sBAAsBG,aAAa,EAAEC,MAAMD,aAAa,CAACG,SAAS;IACjH;IACA,OAAOF;AACT,GACA,uDAAuD"}
@@ -4,18 +4,20 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "DataGridSelectionCell", {
6
6
  enumerable: true,
7
- get: ()=>DataGridSelectionCell
7
+ get: function() {
8
+ return DataGridSelectionCell;
9
+ }
8
10
  });
9
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
11
13
  const _useDataGridSelectionCell = require("./useDataGridSelectionCell");
12
14
  const _renderDataGridSelectionCell = require("./renderDataGridSelectionCell");
13
- const _useDataGridSelectionCellStylesStyles = require("./useDataGridSelectionCellStyles.styles");
14
- const _reactSharedContexts = require("@fluentui/react-shared-contexts");
15
+ const _useDataGridSelectionCellStylesstyles = require("./useDataGridSelectionCellStyles.styles");
16
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
15
17
  const DataGridSelectionCell = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
16
18
  const state = (0, _useDataGridSelectionCell.useDataGridSelectionCell_unstable)(props, ref);
17
- (0, _useDataGridSelectionCellStylesStyles.useDataGridSelectionCellStyles_unstable)(state);
18
- (0, _reactSharedContexts.useCustomStyleHook_unstable)('useDataGridSelectionCellStyles_unstable')(state);
19
+ (0, _useDataGridSelectionCellStylesstyles.useDataGridSelectionCellStyles_unstable)(state);
20
+ (0, _reactsharedcontexts.useCustomStyleHook_unstable)('useDataGridSelectionCellStyles_unstable')(state);
19
21
  return (0, _renderDataGridSelectionCell.renderDataGridSelectionCell_unstable)(state);
20
22
  });
21
23
  DataGridSelectionCell.displayName = 'DataGridSelectionCell';
@@ -1 +1 @@
1
- {"version":3,"sources":["DataGridSelectionCell.js"],"sourcesContent":["import * as React from 'react';\nimport { useDataGridSelectionCell_unstable } from './useDataGridSelectionCell';\nimport { renderDataGridSelectionCell_unstable } from './renderDataGridSelectionCell';\nimport { useDataGridSelectionCellStyles_unstable } from './useDataGridSelectionCellStyles.styles';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n/**\n * DataGridSelectionCell component\n */ export const DataGridSelectionCell = /*#__PURE__*/ React.forwardRef((props, ref)=>{\n const state = useDataGridSelectionCell_unstable(props, ref);\n useDataGridSelectionCellStyles_unstable(state);\n useCustomStyleHook_unstable('useDataGridSelectionCellStyles_unstable')(state);\n return renderDataGridSelectionCell_unstable(state);\n});\nDataGridSelectionCell.displayName = 'DataGridSelectionCell';\n"],"names":["DataGridSelectionCell","React","forwardRef","props","ref","state","useDataGridSelectionCell_unstable","useDataGridSelectionCellStyles_unstable","useCustomStyleHook_unstable","renderDataGridSelectionCell_unstable","displayName"],"mappings":";;;;+BAOiBA;;aAAAA;;;6DAPM;0CAC2B;6CACG;sDACG;qCACZ;AAGjC,MAAMA,wBAAwB,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC,MAAM;IAClF,MAAMC,QAAQC,IAAAA,2DAAiC,EAACH,OAAOC;IACvDG,IAAAA,6EAAuC,EAACF;IACxCG,IAAAA,gDAA2B,EAAC,2CAA2CH;IACvE,OAAOI,IAAAA,iEAAoC,EAACJ;AAChD;AACAL,sBAAsBU,WAAW,GAAG"}
1
+ {"version":3,"sources":["DataGridSelectionCell.js"],"sourcesContent":["import * as React from 'react';\nimport { useDataGridSelectionCell_unstable } from './useDataGridSelectionCell';\nimport { renderDataGridSelectionCell_unstable } from './renderDataGridSelectionCell';\nimport { useDataGridSelectionCellStyles_unstable } from './useDataGridSelectionCellStyles.styles';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n/**\n * DataGridSelectionCell component\n */ export const DataGridSelectionCell = /*#__PURE__*/ React.forwardRef((props, ref)=>{\n const state = useDataGridSelectionCell_unstable(props, ref);\n useDataGridSelectionCellStyles_unstable(state);\n useCustomStyleHook_unstable('useDataGridSelectionCellStyles_unstable')(state);\n return renderDataGridSelectionCell_unstable(state);\n});\nDataGridSelectionCell.displayName = 'DataGridSelectionCell';\n"],"names":["DataGridSelectionCell","React","forwardRef","props","ref","state","useDataGridSelectionCell_unstable","useDataGridSelectionCellStyles_unstable","useCustomStyleHook_unstable","renderDataGridSelectionCell_unstable","displayName"],"mappings":";;;;+BAOiBA;;;eAAAA;;;;iEAPM;0CAC2B;6CACG;sDACG;qCACZ;AAGjC,MAAMA,wBAAwB,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IAC5E,MAAMC,QAAQC,IAAAA,2DAAiC,EAACH,OAAOC;IACvDG,IAAAA,6EAAuC,EAACF;IACxCG,IAAAA,gDAA2B,EAAC,2CAA2CH;IACvE,OAAOI,IAAAA,iEAAoC,EAACJ;AAChD;AACAL,sBAAsBU,WAAW,GAAG"}
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./DataGridSelectionCell"), exports);
7
- _exportStar(require("./DataGridSelectionCell.types"), exports);
8
- _exportStar(require("./renderDataGridSelectionCell"), exports);
9
- _exportStar(require("./useDataGridSelectionCell"), exports);
10
- _exportStar(require("./useDataGridSelectionCellStyles.styles"), exports);
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./DataGridSelectionCell"), exports);
7
+ _export_star._(require("./DataGridSelectionCell.types"), exports);
8
+ _export_star._(require("./renderDataGridSelectionCell"), exports);
9
+ _export_star._(require("./useDataGridSelectionCell"), exports);
10
+ _export_star._(require("./useDataGridSelectionCellStyles.styles"), exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export * from './DataGridSelectionCell';\nexport * from './DataGridSelectionCell.types';\nexport * from './renderDataGridSelectionCell';\nexport * from './useDataGridSelectionCell';\nexport * from './useDataGridSelectionCellStyles.styles';\n"],"names":[],"mappings":";;;;;oBAAc;oBACA;oBACA;oBACA;oBACA"}
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export * from './DataGridSelectionCell';\nexport * from './DataGridSelectionCell.types';\nexport * from './renderDataGridSelectionCell';\nexport * from './useDataGridSelectionCell';\nexport * from './useDataGridSelectionCellStyles.styles';\n"],"names":[],"mappings":";;;;;uBAAc;uBACA;uBACA;uBACA;uBACA"}
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "renderDataGridSelectionCell_unstable", {
6
6
  enumerable: true,
7
- get: ()=>renderDataGridSelectionCell_unstable
7
+ get: function() {
8
+ return renderDataGridSelectionCell_unstable;
9
+ }
8
10
  });
9
11
  const _renderTableSelectionCell = require("../TableSelectionCell/renderTableSelectionCell");
10
12
  const renderDataGridSelectionCell_unstable = (state)=>{
@@ -1 +1 @@
1
- {"version":3,"sources":["renderDataGridSelectionCell.js"],"sourcesContent":["import { renderTableSelectionCell_unstable } from '../TableSelectionCell/renderTableSelectionCell';\n/**\n * Render the final JSX of DataGridSelectionCell\n */ export const renderDataGridSelectionCell_unstable = (state)=>{\n return renderTableSelectionCell_unstable(state);\n};\n"],"names":["renderDataGridSelectionCell_unstable","state","renderTableSelectionCell_unstable"],"mappings":";;;;+BAGiBA;;aAAAA;;0CAHiC;AAGvC,MAAMA,uCAAuC,CAACC,QAAQ;IAC7D,OAAOC,IAAAA,2DAAiC,EAACD;AAC7C"}
1
+ {"version":3,"sources":["renderDataGridSelectionCell.js"],"sourcesContent":["import { renderTableSelectionCell_unstable } from '../TableSelectionCell/renderTableSelectionCell';\n/**\n * Render the final JSX of DataGridSelectionCell\n */ export const renderDataGridSelectionCell_unstable = (state)=>{\n return renderTableSelectionCell_unstable(state);\n};\n"],"names":["renderDataGridSelectionCell_unstable","state","renderTableSelectionCell_unstable"],"mappings":";;;;+BAGiBA;;;eAAAA;;;0CAHiC;AAGvC,MAAMA,uCAAuC,CAACC;IACrD,OAAOC,IAAAA,2DAAiC,EAACD;AAC7C"}
@@ -4,11 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "useDataGridSelectionCell_unstable", {
6
6
  enumerable: true,
7
- get: ()=>useDataGridSelectionCell_unstable
7
+ get: function() {
8
+ return useDataGridSelectionCell_unstable;
9
+ }
8
10
  });
9
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
- const _reactUtilities = require("@fluentui/react-utilities");
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactutilities = require("@fluentui/react-utilities");
12
14
  const _dataGridContext = require("../../contexts/dataGridContext");
13
15
  const _rowIdContext = require("../../contexts/rowIdContext");
14
16
  const _tableHeaderContext = require("../../contexts/tableHeaderContext");
@@ -25,12 +27,12 @@ const useDataGridSelectionCell_unstable = (props, ref)=>{
25
27
  });
26
28
  const toggleAllRows = (0, _dataGridContext.useDataGridContext_unstable)((ctx)=>ctx.selection.toggleAllRows);
27
29
  const type = (0, _dataGridContext.useDataGridContext_unstable)((ctx)=>ctx.selection.selectionMode === 'multiselect' ? 'checkbox' : 'radio');
28
- const onClick = (0, _reactUtilities.useEventCallback)((e)=>{
29
- var _props_onClick;
30
+ const onClick = (0, _reactutilities.useEventCallback)((e)=>{
31
+ var _props_onClick, _props;
30
32
  if (isHeader) {
31
33
  toggleAllRows(e);
32
34
  }
33
- (_props_onClick = props.onClick) === null || _props_onClick === void 0 ? void 0 : _props_onClick.call(props, e);
35
+ (_props_onClick = (_props = props).onClick) === null || _props_onClick === void 0 ? void 0 : _props_onClick.call(_props, e);
34
36
  });
35
37
  return (0, _useTableSelectionCell.useTableSelectionCell_unstable)({
36
38
  as: 'div',
@@ -1 +1 @@
1
- {"version":3,"sources":["useDataGridSelectionCell.js"],"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';\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 */ export const useDataGridSelectionCell_unstable = (props, ref)=>{\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 return ctx.selection.isRowSelected(rowId);\n });\n const toggleAllRows = useDataGridContext_unstable((ctx)=>ctx.selection.toggleAllRows);\n const type = useDataGridContext_unstable((ctx)=>ctx.selection.selectionMode === 'multiselect' ? 'checkbox' : 'radio');\n const onClick = useEventCallback((e)=>{\n var _props_onClick;\n if (isHeader) {\n toggleAllRows(e);\n }\n (_props_onClick = props.onClick) === null || _props_onClick === void 0 ? void 0 : _props_onClick.call(props, e);\n });\n return useTableSelectionCell_unstable({\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 }, ref);\n};\n"],"names":["useDataGridSelectionCell_unstable","props","ref","isHeader","useIsInTableHeader","rowId","useTableRowIdContext","subtle","useDataGridContext_unstable","ctx","subtleSelection","checked","selection","selectionMode","allRowsSelected","someRowsSelected","isRowSelected","toggleAllRows","type","onClick","useEventCallback","e","_props_onClick","call","useTableSelectionCell_unstable","as","role","hidden","undefined"],"mappings":";;;;+BAciBA;;aAAAA;;;6DAdM;gCACU;iCACW;8BACP;oCACF;uCACY;AASpC,MAAMA,oCAAoC,CAACC,OAAOC,MAAM;IAC/D,MAAMC,WAAWC,IAAAA,sCAAkB;IACnC,MAAMC,QAAQC,IAAAA,kCAAoB;IAClC,MAAMC,SAASC,IAAAA,4CAA2B,EAAC,CAACC,MAAMA,IAAIC,eAAe;IACrE,MAAMC,UAAUH,IAAAA,4CAA2B,EAAC,CAACC,MAAM;QAC/C,IAAIN,YAAYM,IAAIG,SAAS,CAACC,aAAa,KAAK,eAAe;YAC3D,OAAOJ,IAAIG,SAAS,CAACE,eAAe,GAAG,IAAI,GAAGL,IAAIG,SAAS,CAACG,gBAAgB,GAAG,UAAU,KAAK;QAClG,CAAC;QACD,OAAON,IAAIG,SAAS,CAACI,aAAa,CAACX;IACvC;IACA,MAAMY,gBAAgBT,IAAAA,4CAA2B,EAAC,CAACC,MAAMA,IAAIG,SAAS,CAACK,aAAa;IACpF,MAAMC,OAAOV,IAAAA,4CAA2B,EAAC,CAACC,MAAMA,IAAIG,SAAS,CAACC,aAAa,KAAK,gBAAgB,aAAa,OAAO;IACpH,MAAMM,UAAUC,IAAAA,gCAAgB,EAAC,CAACC,IAAI;QAClC,IAAIC;QACJ,IAAInB,UAAU;YACVc,cAAcI;QAClB,CAAC;QACAC,CAAAA,iBAAiBrB,MAAMkB,OAAO,AAAD,MAAO,IAAI,IAAIG,mBAAmB,KAAK,IAAI,KAAK,IAAIA,eAAeC,IAAI,CAACtB,OAAOoB,EAAE;IACnH;IACA,OAAOG,IAAAA,qDAA8B,EAAC;QAClCC,IAAI;QACJC,MAAM;QACNf;QACAO;QACAS,QAAQxB,YAAYe,SAAS;QAC7B,gBAAgBf,WAAWQ,UAAUiB,SAAS;QAC9C,iBAAiBzB,YAAYQ,YAAY,UAAUiB,YAAYjB,OAAO;QACtEJ;QACA,GAAGN,KAAK;QACRkB;IACJ,GAAGjB;AACP"}
1
+ {"version":3,"sources":["useDataGridSelectionCell.js"],"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';\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 */ export const useDataGridSelectionCell_unstable = (props, ref)=>{\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 return ctx.selection.isRowSelected(rowId);\n });\n const toggleAllRows = useDataGridContext_unstable((ctx)=>ctx.selection.toggleAllRows);\n const type = useDataGridContext_unstable((ctx)=>ctx.selection.selectionMode === 'multiselect' ? 'checkbox' : 'radio');\n const onClick = useEventCallback((e)=>{\n var _props_onClick, _props;\n if (isHeader) {\n toggleAllRows(e);\n }\n (_props_onClick = (_props = props).onClick) === null || _props_onClick === void 0 ? void 0 : _props_onClick.call(_props, e);\n });\n return useTableSelectionCell_unstable({\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 }, ref);\n};\n"],"names":["useDataGridSelectionCell_unstable","props","ref","isHeader","useIsInTableHeader","rowId","useTableRowIdContext","subtle","useDataGridContext_unstable","ctx","subtleSelection","checked","selection","selectionMode","allRowsSelected","someRowsSelected","isRowSelected","toggleAllRows","type","onClick","useEventCallback","e","_props_onClick","_props","call","useTableSelectionCell_unstable","as","role","hidden","undefined"],"mappings":";;;;+BAciBA;;;eAAAA;;;;iEAdM;gCACU;iCACW;8BACP;oCACF;uCACY;AASpC,MAAMA,oCAAoC,CAACC,OAAOC;IACzD,MAAMC,WAAWC,IAAAA,sCAAkB;IACnC,MAAMC,QAAQC,IAAAA,kCAAoB;IAClC,MAAMC,SAASC,IAAAA,4CAA2B,EAAC,CAACC,MAAMA,IAAIC,eAAe;IACrE,MAAMC,UAAUH,IAAAA,4CAA2B,EAAC,CAACC;QACzC,IAAIN,YAAYM,IAAIG,SAAS,CAACC,aAAa,KAAK,eAAe;YAC3D,OAAOJ,IAAIG,SAAS,CAACE,eAAe,GAAG,OAAOL,IAAIG,SAAS,CAACG,gBAAgB,GAAG,UAAU;QAC7F;QACA,OAAON,IAAIG,SAAS,CAACI,aAAa,CAACX;IACvC;IACA,MAAMY,gBAAgBT,IAAAA,4CAA2B,EAAC,CAACC,MAAMA,IAAIG,SAAS,CAACK,aAAa;IACpF,MAAMC,OAAOV,IAAAA,4CAA2B,EAAC,CAACC,MAAMA,IAAIG,SAAS,CAACC,aAAa,KAAK,gBAAgB,aAAa;IAC7G,MAAMM,UAAUC,IAAAA,gCAAgB,EAAC,CAACC;QAC9B,IAAIC,gBAAgBC;QACpB,IAAIpB,UAAU;YACVc,cAAcI;QAClB;QACCC,CAAAA,iBAAiB,AAACC,CAAAA,SAAStB,KAAI,EAAGkB,OAAO,AAAD,MAAO,QAAQG,mBAAmB,KAAK,IAAI,KAAK,IAAIA,eAAeE,IAAI,CAACD,QAAQF;IAC7H;IACA,OAAOI,IAAAA,qDAA8B,EAAC;QAClCC,IAAI;QACJC,MAAM;QACNhB;QACAO;QACAU,QAAQzB,YAAYe,SAAS;QAC7B,gBAAgBf,WAAWQ,UAAUkB;QACrC,iBAAiB1B,YAAYQ,YAAY,UAAUkB,YAAYlB;QAC/DJ;QACA,GAAGN,KAAK;QACRkB;IACJ,GAAGjB;AACP"}
@@ -9,18 +9,22 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- dataGridSelectionCellClassNames: ()=>dataGridSelectionCellClassNames,
13
- useDataGridSelectionCellStyles_unstable: ()=>useDataGridSelectionCellStyles_unstable
12
+ dataGridSelectionCellClassNames: function() {
13
+ return dataGridSelectionCellClassNames;
14
+ },
15
+ useDataGridSelectionCellStyles_unstable: function() {
16
+ return useDataGridSelectionCellStyles_unstable;
17
+ }
14
18
  });
15
19
  const _react = require("@griffel/react");
16
- const _useTableSelectionCellStylesStyles = require("../TableSelectionCell/useTableSelectionCellStyles.styles");
20
+ const _useTableSelectionCellStylesstyles = require("../TableSelectionCell/useTableSelectionCellStyles.styles");
17
21
  const dataGridSelectionCellClassNames = {
18
22
  root: 'fui-DataGridSelectionCell',
19
23
  checkboxIndicator: 'fui-DataGridSelectionCell__checkboxIndicator',
20
24
  radioIndicator: 'fui-DataGridSelectionCell__radioIndicator'
21
25
  };
22
26
  const useDataGridSelectionCellStyles_unstable = (state)=>{
23
- (0, _useTableSelectionCellStylesStyles.useTableSelectionCellStyles_unstable)(state);
27
+ (0, _useTableSelectionCellStylesstyles.useTableSelectionCellStyles_unstable)(state);
24
28
  state.root.className = (0, _react.mergeClasses)(dataGridSelectionCellClassNames.root, state.root.className);
25
29
  if (state.checkboxIndicator) {
26
30
  state.checkboxIndicator.className = (0, _react.mergeClasses)(dataGridSelectionCellClassNames.checkboxIndicator, state.checkboxIndicator.className);
@@ -1 +1 @@
1
- {"version":3,"sources":["useDataGridSelectionCellStyles.styles.js"],"sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport { useTableSelectionCellStyles_unstable } from '../TableSelectionCell/useTableSelectionCellStyles.styles';\nexport const dataGridSelectionCellClassNames = {\n root: 'fui-DataGridSelectionCell',\n checkboxIndicator: 'fui-DataGridSelectionCell__checkboxIndicator',\n radioIndicator: 'fui-DataGridSelectionCell__radioIndicator'\n};\n/**\n * Apply styling to the DataGridSelectionCell slots based on the state\n */\nexport const useDataGridSelectionCellStyles_unstable = state => {\n useTableSelectionCellStyles_unstable(state);\n state.root.className = mergeClasses(dataGridSelectionCellClassNames.root, state.root.className);\n if (state.checkboxIndicator) {\n state.checkboxIndicator.className = mergeClasses(dataGridSelectionCellClassNames.checkboxIndicator, state.checkboxIndicator.className);\n }\n if (state.radioIndicator) {\n state.radioIndicator.className = mergeClasses(dataGridSelectionCellClassNames.radioIndicator, state.radioIndicator.className);\n }\n return state;\n};\n//# sourceMappingURL=useDataGridSelectionCellStyles.styles.js.map"],"names":["dataGridSelectionCellClassNames","useDataGridSelectionCellStyles_unstable","root","checkboxIndicator","radioIndicator","state","useTableSelectionCellStyles_unstable","className","mergeClasses"],"mappings":";;;;;;;;;;;IAEaA,+BAA+B,MAA/BA;IAQAC,uCAAuC,MAAvCA;;uBAVgB;mDACwB;AAC9C,MAAMD,kCAAkC;IAC7CE,MAAM;IACNC,mBAAmB;IACnBC,gBAAgB;AAClB;AAIO,MAAMH,0CAA0CI,CAAAA,QAAS;IAC9DC,IAAAA,uEAAoC,EAACD;IACrCA,MAAMH,IAAI,CAACK,SAAS,GAAGC,IAAAA,mBAAY,EAACR,gCAAgCE,IAAI,EAAEG,MAAMH,IAAI,CAACK,SAAS;IAC9F,IAAIF,MAAMF,iBAAiB,EAAE;QAC3BE,MAAMF,iBAAiB,CAACI,SAAS,GAAGC,IAAAA,mBAAY,EAACR,gCAAgCG,iBAAiB,EAAEE,MAAMF,iBAAiB,CAACI,SAAS;IACvI,CAAC;IACD,IAAIF,MAAMD,cAAc,EAAE;QACxBC,MAAMD,cAAc,CAACG,SAAS,GAAGC,IAAAA,mBAAY,EAACR,gCAAgCI,cAAc,EAAEC,MAAMD,cAAc,CAACG,SAAS;IAC9H,CAAC;IACD,OAAOF;AACT,GACA,iEAAiE"}
1
+ {"version":3,"sources":["useDataGridSelectionCellStyles.styles.js"],"sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport { useTableSelectionCellStyles_unstable } from '../TableSelectionCell/useTableSelectionCellStyles.styles';\nexport const dataGridSelectionCellClassNames = {\n root: 'fui-DataGridSelectionCell',\n checkboxIndicator: 'fui-DataGridSelectionCell__checkboxIndicator',\n radioIndicator: 'fui-DataGridSelectionCell__radioIndicator'\n};\n/**\n * Apply styling to the DataGridSelectionCell slots based on the state\n */\nexport const useDataGridSelectionCellStyles_unstable = state => {\n useTableSelectionCellStyles_unstable(state);\n state.root.className = mergeClasses(dataGridSelectionCellClassNames.root, state.root.className);\n if (state.checkboxIndicator) {\n state.checkboxIndicator.className = mergeClasses(dataGridSelectionCellClassNames.checkboxIndicator, state.checkboxIndicator.className);\n }\n if (state.radioIndicator) {\n state.radioIndicator.className = mergeClasses(dataGridSelectionCellClassNames.radioIndicator, state.radioIndicator.className);\n }\n return state;\n};\n//# sourceMappingURL=useDataGridSelectionCellStyles.styles.js.map"],"names":["dataGridSelectionCellClassNames","useDataGridSelectionCellStyles_unstable","root","checkboxIndicator","radioIndicator","state","useTableSelectionCellStyles_unstable","className","mergeClasses"],"mappings":";;;;;;;;;;;IAEaA,+BAA+B;eAA/BA;;IAQAC,uCAAuC;eAAvCA;;;uBAVgB;mDACwB;AAC9C,MAAMD,kCAAkC;IAC7CE,MAAM;IACNC,mBAAmB;IACnBC,gBAAgB;AAClB;AAIO,MAAMH,0CAA0CI,CAAAA;IACrDC,IAAAA,uEAAoC,EAACD;IACrCA,MAAMH,IAAI,CAACK,SAAS,GAAGC,IAAAA,mBAAY,EAACR,gCAAgCE,IAAI,EAAEG,MAAMH,IAAI,CAACK,SAAS;IAC9F,IAAIF,MAAMF,iBAAiB,EAAE;QAC3BE,MAAMF,iBAAiB,CAACI,SAAS,GAAGC,IAAAA,mBAAY,EAACR,gCAAgCG,iBAAiB,EAAEE,MAAMF,iBAAiB,CAACI,SAAS;IACvI;IACA,IAAIF,MAAMD,cAAc,EAAE;QACxBC,MAAMD,cAAc,CAACG,SAAS,GAAGC,IAAAA,mBAAY,EAACR,gCAAgCI,cAAc,EAAEC,MAAMD,cAAc,CAACG,SAAS;IAC9H;IACA,OAAOF;AACT,GACA,iEAAiE"}
@@ -4,19 +4,21 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "Table", {
6
6
  enumerable: true,
7
- get: ()=>Table
7
+ get: function() {
8
+ return Table;
9
+ }
8
10
  });
9
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
11
13
  const _useTable = require("./useTable");
12
14
  const _renderTable = require("./renderTable");
13
- const _useTableStylesStyles = require("./useTableStyles.styles");
15
+ const _useTableStylesstyles = require("./useTableStyles.styles");
14
16
  const _useTableContextValues = require("./useTableContextValues");
15
- const _reactSharedContexts = require("@fluentui/react-shared-contexts");
17
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
16
18
  const Table = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
17
19
  const state = (0, _useTable.useTable_unstable)(props, ref);
18
- (0, _useTableStylesStyles.useTableStyles_unstable)(state);
19
- (0, _reactSharedContexts.useCustomStyleHook_unstable)('useTableStyles_unstable')(state);
20
+ (0, _useTableStylesstyles.useTableStyles_unstable)(state);
21
+ (0, _reactsharedcontexts.useCustomStyleHook_unstable)('useTableStyles_unstable')(state);
20
22
  return (0, _renderTable.renderTable_unstable)(state, (0, _useTableContextValues.useTableContextValues_unstable)(state));
21
23
  });
22
24
  Table.displayName = 'Table';
@@ -1 +1 @@
1
- {"version":3,"sources":["Table.js"],"sourcesContent":["import * as React from 'react';\nimport { useTable_unstable } from './useTable';\nimport { renderTable_unstable } from './renderTable';\nimport { useTableStyles_unstable } from './useTableStyles.styles';\nimport { useTableContextValues_unstable } from './useTableContextValues';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n/**\n * Table component\n */ export const Table = /*#__PURE__*/ React.forwardRef((props, ref)=>{\n const state = useTable_unstable(props, ref);\n useTableStyles_unstable(state);\n useCustomStyleHook_unstable('useTableStyles_unstable')(state);\n return renderTable_unstable(state, useTableContextValues_unstable(state));\n});\nTable.displayName = 'Table';\n"],"names":["Table","React","forwardRef","props","ref","state","useTable_unstable","useTableStyles_unstable","useCustomStyleHook_unstable","renderTable_unstable","useTableContextValues_unstable","displayName"],"mappings":";;;;+BAQiBA;;aAAAA;;;6DARM;0BACW;6BACG;sCACG;uCACO;qCACH;AAGjC,MAAMA,QAAQ,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC,MAAM;IAClE,MAAMC,QAAQC,IAAAA,2BAAiB,EAACH,OAAOC;IACvCG,IAAAA,6CAAuB,EAACF;IACxBG,IAAAA,gDAA2B,EAAC,2BAA2BH;IACvD,OAAOI,IAAAA,iCAAoB,EAACJ,OAAOK,IAAAA,qDAA8B,EAACL;AACtE;AACAL,MAAMW,WAAW,GAAG"}
1
+ {"version":3,"sources":["Table.js"],"sourcesContent":["import * as React from 'react';\nimport { useTable_unstable } from './useTable';\nimport { renderTable_unstable } from './renderTable';\nimport { useTableStyles_unstable } from './useTableStyles.styles';\nimport { useTableContextValues_unstable } from './useTableContextValues';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n/**\n * Table component\n */ export const Table = /*#__PURE__*/ React.forwardRef((props, ref)=>{\n const state = useTable_unstable(props, ref);\n useTableStyles_unstable(state);\n useCustomStyleHook_unstable('useTableStyles_unstable')(state);\n return renderTable_unstable(state, useTableContextValues_unstable(state));\n});\nTable.displayName = 'Table';\n"],"names":["Table","React","forwardRef","props","ref","state","useTable_unstable","useTableStyles_unstable","useCustomStyleHook_unstable","renderTable_unstable","useTableContextValues_unstable","displayName"],"mappings":";;;;+BAQiBA;;;eAAAA;;;;iEARM;0BACW;6BACG;sCACG;uCACO;qCACH;AAGjC,MAAMA,QAAQ,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IAC5D,MAAMC,QAAQC,IAAAA,2BAAiB,EAACH,OAAOC;IACvCG,IAAAA,6CAAuB,EAACF;IACxBG,IAAAA,gDAA2B,EAAC,2BAA2BH;IACvD,OAAOI,IAAAA,iCAAoB,EAACJ,OAAOK,IAAAA,qDAA8B,EAACL;AACtE;AACAL,MAAMW,WAAW,GAAG"}
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./Table"), exports);
7
- _exportStar(require("./Table.types"), exports);
8
- _exportStar(require("./renderTable"), exports);
9
- _exportStar(require("./useTable"), exports);
10
- _exportStar(require("./useTableStyles.styles"), exports);
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./Table"), exports);
7
+ _export_star._(require("./Table.types"), exports);
8
+ _export_star._(require("./renderTable"), exports);
9
+ _export_star._(require("./useTable"), exports);
10
+ _export_star._(require("./useTableStyles.styles"), exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export * from './Table';\nexport * from './Table.types';\nexport * from './renderTable';\nexport * from './useTable';\nexport * from './useTableStyles.styles';\n"],"names":[],"mappings":";;;;;oBAAc;oBACA;oBACA;oBACA;oBACA"}
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export * from './Table';\nexport * from './Table.types';\nexport * from './renderTable';\nexport * from './useTable';\nexport * from './useTableStyles.styles';\n"],"names":[],"mappings":";;;;;uBAAc;uBACA;uBACA;uBACA;uBACA"}
@@ -1,17 +1,20 @@
1
- /** @jsxRuntime classic */ /** @jsx createElement */ "use strict";
1
+ /** @jsxRuntime automatic */ /** @jsxImportSource @fluentui/react-jsx-runtime */ "use strict";
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
5
  Object.defineProperty(exports, "renderTable_unstable", {
6
6
  enumerable: true,
7
- get: ()=>renderTable_unstable
7
+ get: function() {
8
+ return renderTable_unstable;
9
+ }
8
10
  });
9
- const _reactJsxRuntime = require("@fluentui/react-jsx-runtime");
10
- const _reactUtilities = require("@fluentui/react-utilities");
11
+ const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
12
+ const _reactutilities = require("@fluentui/react-utilities");
11
13
  const _tableContext = require("../../contexts/tableContext");
12
14
  const renderTable_unstable = (state, contextValues)=>{
13
- (0, _reactUtilities.assertSlots)(state);
14
- return /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(_tableContext.TableContextProvider, {
15
- value: contextValues.table
16
- }, /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(state.root, null));
15
+ (0, _reactutilities.assertSlots)(state);
16
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_tableContext.TableContextProvider, {
17
+ value: contextValues.table,
18
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(state.root, {})
19
+ });
17
20
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["renderTable.js"],"sourcesContent":["/** @jsxRuntime classic */ /** @jsx createElement */ import { createElement } from '@fluentui/react-jsx-runtime';\nimport { assertSlots } from '@fluentui/react-utilities';\nimport { TableContextProvider } from '../../contexts/tableContext';\n/**\n * Render the final JSX of Table\n */ export const renderTable_unstable = (state, contextValues)=>{\n assertSlots(state);\n return /*#__PURE__*/ createElement(TableContextProvider, {\n value: contextValues.table\n }, /*#__PURE__*/ createElement(state.root, null));\n};\n"],"names":["renderTable_unstable","state","contextValues","assertSlots","createElement","TableContextProvider","value","table","root"],"mappings":"AAAA,wBAAwB,GAAG,uBAAuB;;;;+BAKjCA;;aAAAA;;iCALkE;gCACvD;8BACS;AAG1B,MAAMA,uBAAuB,CAACC,OAAOC,gBAAgB;IAC5DC,IAAAA,2BAAW,EAACF;IACZ,OAAO,WAAW,GAAGG,IAAAA,8BAAa,EAACC,kCAAoB,EAAE;QACrDC,OAAOJ,cAAcK,KAAK;IAC9B,GAAG,WAAW,GAAGH,IAAAA,8BAAa,EAACH,MAAMO,IAAI,EAAE,IAAI;AACnD"}
1
+ {"version":3,"sources":["renderTable.js"],"sourcesContent":["/** @jsxRuntime automatic */ /** @jsxImportSource @fluentui/react-jsx-runtime */ import { jsx as _jsx } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { assertSlots } from '@fluentui/react-utilities';\nimport { TableContextProvider } from '../../contexts/tableContext';\n/**\n * Render the final JSX of Table\n */ export const renderTable_unstable = (state, contextValues)=>{\n assertSlots(state);\n return /*#__PURE__*/ _jsx(TableContextProvider, {\n value: contextValues.table,\n children: /*#__PURE__*/ _jsx(state.root, {})\n });\n};\n"],"names":["renderTable_unstable","state","contextValues","assertSlots","_jsx","TableContextProvider","value","table","children","root"],"mappings":"AAAA,0BAA0B,GAAG,iDAAiD;;;;+BAK7DA;;;eAAAA;;;4BAL4F;gCACjF;8BACS;AAG1B,MAAMA,uBAAuB,CAACC,OAAOC;IAC5CC,IAAAA,2BAAW,EAACF;IACZ,OAAO,WAAW,GAAGG,IAAAA,eAAI,EAACC,kCAAoB,EAAE;QAC5CC,OAAOJ,cAAcK,KAAK;QAC1BC,UAAU,WAAW,GAAGJ,IAAAA,eAAI,EAACH,MAAMQ,IAAI,EAAE,CAAC;IAC9C;AACJ"}
@@ -4,11 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "useTable_unstable", {
6
6
  enumerable: true,
7
- get: ()=>useTable_unstable
7
+ get: function() {
8
+ return useTable_unstable;
9
+ }
8
10
  });
9
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
- const _reactUtilities = require("@fluentui/react-utilities");
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactutilities = require("@fluentui/react-utilities");
12
14
  const useTable_unstable = (props, ref)=>{
13
15
  var _props_as;
14
16
  const rootComponent = ((_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : props.noNativeElements) ? 'div' : 'table';
@@ -17,7 +19,7 @@ const useTable_unstable = (props, ref)=>{
17
19
  components: {
18
20
  root: rootComponent
19
21
  },
20
- root: _reactUtilities.slot.always((0, _reactUtilities.getNativeElementProps)(rootComponent, {
22
+ root: _reactutilities.slot.always((0, _reactutilities.getNativeElementProps)(rootComponent, {
21
23
  ref,
22
24
  role: rootComponent === 'div' ? 'table' : undefined,
23
25
  ...props
@@ -1 +1 @@
1
- {"version":3,"sources":["useTable.js"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, slot } from '@fluentui/react-utilities';\n/**\n * Create the state required to render Table.\n *\n * The returned state can be modified with hooks such as useTableStyles_unstable,\n * before being passed to renderTable_unstable.\n *\n * @param props - props from this instance of Table\n * @param ref - reference to root HTMLElement of Table\n */ export const useTable_unstable = (props, ref)=>{\n var _props_as;\n const rootComponent = ((_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : props.noNativeElements) ? 'div' : 'table';\n var _props_size, _props_noNativeElements, _props_sortable;\n return {\n components: {\n root: rootComponent\n },\n root: slot.always(getNativeElementProps(rootComponent, {\n ref,\n role: rootComponent === 'div' ? 'table' : undefined,\n ...props\n }), {\n elementType: rootComponent\n }),\n size: (_props_size = props.size) !== null && _props_size !== void 0 ? _props_size : 'medium',\n noNativeElements: (_props_noNativeElements = props.noNativeElements) !== null && _props_noNativeElements !== void 0 ? _props_noNativeElements : false,\n sortable: (_props_sortable = props.sortable) !== null && _props_sortable !== void 0 ? _props_sortable : false\n };\n};\n"],"names":["useTable_unstable","props","ref","_props_as","rootComponent","as","noNativeElements","_props_size","_props_noNativeElements","_props_sortable","components","root","slot","always","getNativeElementProps","role","undefined","elementType","size","sortable"],"mappings":";;;;+BAUiBA;;aAAAA;;;6DAVM;gCACqB;AASjC,MAAMA,oBAAoB,CAACC,OAAOC,MAAM;IAC/C,IAAIC;IACJ,MAAMC,gBAAgB,AAAC,CAAA,AAACD,CAAAA,YAAYF,MAAMI,EAAE,AAAD,MAAO,IAAI,IAAIF,cAAc,KAAK,IAAIA,YAAYF,MAAMK,gBAAgB,AAAD,IAAK,QAAQ,OAAO;IACtI,IAAIC,aAAaC,yBAAyBC;IAC1C,OAAO;QACHC,YAAY;YACRC,MAAMP;QACV;QACAO,MAAMC,oBAAI,CAACC,MAAM,CAACC,IAAAA,qCAAqB,EAACV,eAAe;YACnDF;YACAa,MAAMX,kBAAkB,QAAQ,UAAUY,SAAS;YACnD,GAAGf,KAAK;QACZ,IAAI;YACAgB,aAAab;QACjB;QACAc,MAAM,AAACX,CAAAA,cAAcN,MAAMiB,IAAI,AAAD,MAAO,IAAI,IAAIX,gBAAgB,KAAK,IAAIA,cAAc,QAAQ;QAC5FD,kBAAkB,AAACE,CAAAA,0BAA0BP,MAAMK,gBAAgB,AAAD,MAAO,IAAI,IAAIE,4BAA4B,KAAK,IAAIA,0BAA0B,KAAK;QACrJW,UAAU,AAACV,CAAAA,kBAAkBR,MAAMkB,QAAQ,AAAD,MAAO,IAAI,IAAIV,oBAAoB,KAAK,IAAIA,kBAAkB,KAAK;IACjH;AACJ"}
1
+ {"version":3,"sources":["useTable.js"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, slot } from '@fluentui/react-utilities';\n/**\n * Create the state required to render Table.\n *\n * The returned state can be modified with hooks such as useTableStyles_unstable,\n * before being passed to renderTable_unstable.\n *\n * @param props - props from this instance of Table\n * @param ref - reference to root HTMLElement of Table\n */ export const useTable_unstable = (props, ref)=>{\n var _props_as;\n const rootComponent = ((_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : props.noNativeElements) ? 'div' : 'table';\n var _props_size, _props_noNativeElements, _props_sortable;\n return {\n components: {\n root: rootComponent\n },\n root: slot.always(getNativeElementProps(rootComponent, {\n ref,\n role: rootComponent === 'div' ? 'table' : undefined,\n ...props\n }), {\n elementType: rootComponent\n }),\n size: (_props_size = props.size) !== null && _props_size !== void 0 ? _props_size : 'medium',\n noNativeElements: (_props_noNativeElements = props.noNativeElements) !== null && _props_noNativeElements !== void 0 ? _props_noNativeElements : false,\n sortable: (_props_sortable = props.sortable) !== null && _props_sortable !== void 0 ? _props_sortable : false\n };\n};\n"],"names":["useTable_unstable","props","ref","_props_as","rootComponent","as","noNativeElements","_props_size","_props_noNativeElements","_props_sortable","components","root","slot","always","getNativeElementProps","role","undefined","elementType","size","sortable"],"mappings":";;;;+BAUiBA;;;eAAAA;;;;iEAVM;gCACqB;AASjC,MAAMA,oBAAoB,CAACC,OAAOC;IACzC,IAAIC;IACJ,MAAMC,gBAAgB,AAAC,CAAA,AAACD,CAAAA,YAAYF,MAAMI,EAAE,AAAD,MAAO,QAAQF,cAAc,KAAK,IAAIA,YAAYF,MAAMK,gBAAgB,AAAD,IAAK,QAAQ;IAC/H,IAAIC,aAAaC,yBAAyBC;IAC1C,OAAO;QACHC,YAAY;YACRC,MAAMP;QACV;QACAO,MAAMC,oBAAI,CAACC,MAAM,CAACC,IAAAA,qCAAqB,EAACV,eAAe;YACnDF;YACAa,MAAMX,kBAAkB,QAAQ,UAAUY;YAC1C,GAAGf,KAAK;QACZ,IAAI;YACAgB,aAAab;QACjB;QACAc,MAAM,AAACX,CAAAA,cAAcN,MAAMiB,IAAI,AAAD,MAAO,QAAQX,gBAAgB,KAAK,IAAIA,cAAc;QACpFD,kBAAkB,AAACE,CAAAA,0BAA0BP,MAAMK,gBAAgB,AAAD,MAAO,QAAQE,4BAA4B,KAAK,IAAIA,0BAA0B;QAChJW,UAAU,AAACV,CAAAA,kBAAkBR,MAAMkB,QAAQ,AAAD,MAAO,QAAQV,oBAAoB,KAAK,IAAIA,kBAAkB;IAC5G;AACJ"}
@@ -4,12 +4,14 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "useTableContextValues_unstable", {
6
6
  enumerable: true,
7
- get: ()=>useTableContextValues_unstable
7
+ get: function() {
8
+ return useTableContextValues_unstable;
9
+ }
8
10
  });
9
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
11
13
  function useTableContextValues_unstable(state) {
12
- const { size , noNativeElements , sortable } = state;
14
+ const { size, noNativeElements, sortable } = state;
13
15
  const tableContext = _react.useMemo(()=>({
14
16
  noNativeElements,
15
17
  size,
@@ -1 +1 @@
1
- {"version":3,"sources":["useTableContextValues.js"],"sourcesContent":["import * as React from 'react';\nexport function useTableContextValues_unstable(state) {\n const { size , noNativeElements , sortable } = state;\n const tableContext = React.useMemo(()=>({\n noNativeElements,\n size,\n sortable\n }), [\n noNativeElements,\n size,\n sortable\n ]);\n return {\n table: tableContext\n };\n}\n"],"names":["useTableContextValues_unstable","state","size","noNativeElements","sortable","tableContext","React","useMemo","table"],"mappings":";;;;+BACgBA;;aAAAA;;;6DADO;AAChB,SAASA,+BAA+BC,KAAK,EAAE;IAClD,MAAM,EAAEC,KAAI,EAAGC,iBAAgB,EAAGC,SAAQ,EAAG,GAAGH;IAChD,MAAMI,eAAeC,OAAMC,OAAO,CAAC,IAAK,CAAA;YAChCJ;YACAD;YACAE;QACJ,CAAA,GAAI;QACJD;QACAD;QACAE;KACH;IACD,OAAO;QACHI,OAAOH;IACX;AACJ"}
1
+ {"version":3,"sources":["useTableContextValues.js"],"sourcesContent":["import * as React from 'react';\nexport function useTableContextValues_unstable(state) {\n const { size, noNativeElements, sortable } = state;\n const tableContext = React.useMemo(()=>({\n noNativeElements,\n size,\n sortable\n }), [\n noNativeElements,\n size,\n sortable\n ]);\n return {\n table: tableContext\n };\n}\n"],"names":["useTableContextValues_unstable","state","size","noNativeElements","sortable","tableContext","React","useMemo","table"],"mappings":";;;;+BACgBA;;;eAAAA;;;;iEADO;AAChB,SAASA,+BAA+BC,KAAK;IAChD,MAAM,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,QAAQ,EAAE,GAAGH;IAC7C,MAAMI,eAAeC,OAAMC,OAAO,CAAC,IAAK,CAAA;YAChCJ;YACAD;YACAE;QACJ,CAAA,GAAI;QACJD;QACAD;QACAE;KACH;IACD,OAAO;QACHI,OAAOH;IACX;AACJ"}
@@ -9,16 +9,22 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- tableClassName: ()=>tableClassName,
13
- tableClassNames: ()=>tableClassNames,
14
- useTableStyles_unstable: ()=>useTableStyles_unstable
12
+ tableClassName: function() {
13
+ return tableClassName;
14
+ },
15
+ tableClassNames: function() {
16
+ return tableClassNames;
17
+ },
18
+ useTableStyles_unstable: function() {
19
+ return useTableStyles_unstable;
20
+ }
15
21
  });
16
22
  const _react = require("@griffel/react");
17
23
  const tableClassName = 'fui-Table';
18
24
  const tableClassNames = {
19
25
  root: 'fui-Table'
20
26
  };
21
- const useTableLayoutStyles = /*#__PURE__*/ (0, _react["__styles"])({
27
+ const useTableLayoutStyles = /*#__PURE__*/ (0, _react.__styles)({
22
28
  root: {
23
29
  mc9l5x: "f1w4nmp0",
24
30
  ha4doy: "fmrv4ls",
@@ -33,7 +39,7 @@ const useTableLayoutStyles = /*#__PURE__*/ (0, _react["__styles"])({
33
39
  ".f14m3nip{table-layout:fixed;}"
34
40
  ]
35
41
  });
36
- const useFlexLayoutStyles = /*#__PURE__*/ (0, _react["__styles"])({
42
+ const useFlexLayoutStyles = /*#__PURE__*/ (0, _react.__styles)({
37
43
  root: {
38
44
  mc9l5x: "ftgm304"
39
45
  }
@@ -44,7 +50,7 @@ const useFlexLayoutStyles = /*#__PURE__*/ (0, _react["__styles"])({
44
50
  });
45
51
  /**
46
52
  * Styles for the root slot
47
- */ const useStyles = /*#__PURE__*/ (0, _react["__styles"])({
53
+ */ const useStyles = /*#__PURE__*/ (0, _react.__styles)({
48
54
  root: {
49
55
  po53p8: "fgkb47j",
50
56
  De3pzq: "fhovq9v"