@fluentui/react-table 9.19.23 → 9.19.24

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 (379) hide show
  1. package/CHANGELOG.md +10 -2
  2. package/lib/components/DataGrid/DataGrid.js.map +1 -1
  3. package/lib/components/DataGrid/DataGrid.types.js.map +1 -1
  4. package/lib/components/DataGrid/index.js.map +1 -1
  5. package/lib/components/DataGrid/renderDataGrid.js.map +1 -1
  6. package/lib/components/DataGrid/useDataGrid.js +1 -1
  7. package/lib/components/DataGrid/useDataGrid.js.map +1 -1
  8. package/lib/components/DataGrid/useDataGridContextValues.js.map +1 -1
  9. package/lib/components/DataGrid/useDataGridStyles.styles.raw.js.map +1 -1
  10. package/lib/components/DataGridBody/DataGridBody.js.map +1 -1
  11. package/lib/components/DataGridBody/DataGridBody.types.js.map +1 -1
  12. package/lib/components/DataGridBody/index.js.map +1 -1
  13. package/lib/components/DataGridBody/renderDataGridBody.js +2 -2
  14. package/lib/components/DataGridBody/renderDataGridBody.js.map +1 -1
  15. package/lib/components/DataGridBody/useDataGridBody.js.map +1 -1
  16. package/lib/components/DataGridBody/useDataGridBodyStyles.styles.raw.js.map +1 -1
  17. package/lib/components/DataGridCell/DataGridCell.js.map +1 -1
  18. package/lib/components/DataGridCell/DataGridCell.types.js.map +1 -1
  19. package/lib/components/DataGridCell/index.js.map +1 -1
  20. package/lib/components/DataGridCell/renderDataGridCell.js.map +1 -1
  21. package/lib/components/DataGridCell/useDataGridCell.js.map +1 -1
  22. package/lib/components/DataGridCell/useDataGridCellStyles.styles.raw.js.map +1 -1
  23. package/lib/components/DataGridHeader/DataGridHeader.js.map +1 -1
  24. package/lib/components/DataGridHeader/DataGridHeader.types.js.map +1 -1
  25. package/lib/components/DataGridHeader/index.js.map +1 -1
  26. package/lib/components/DataGridHeader/renderDataGridHeader.js.map +1 -1
  27. package/lib/components/DataGridHeader/useDataGridHeader.js.map +1 -1
  28. package/lib/components/DataGridHeader/useDataGridHeaderStyles.styles.raw.js.map +1 -1
  29. package/lib/components/DataGridHeaderCell/DataGridHeaderCell.js.map +1 -1
  30. package/lib/components/DataGridHeaderCell/DataGridHeaderCell.types.js.map +1 -1
  31. package/lib/components/DataGridHeaderCell/index.js.map +1 -1
  32. package/lib/components/DataGridHeaderCell/renderDataGridHeaderCell.js.map +1 -1
  33. package/lib/components/DataGridHeaderCell/useDataGridHeaderCell.js.map +1 -1
  34. package/lib/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.raw.js.map +1 -1
  35. package/lib/components/DataGridRow/DataGridRow.js.map +1 -1
  36. package/lib/components/DataGridRow/DataGridRow.types.js.map +1 -1
  37. package/lib/components/DataGridRow/index.js.map +1 -1
  38. package/lib/components/DataGridRow/renderDataGridRow.js +2 -2
  39. package/lib/components/DataGridRow/renderDataGridRow.js.map +1 -1
  40. package/lib/components/DataGridRow/useDataGridRow.js.map +1 -1
  41. package/lib/components/DataGridRow/useDataGridRowStyles.styles.raw.js.map +1 -1
  42. package/lib/components/DataGridSelectionCell/DataGridSelectionCell.js.map +1 -1
  43. package/lib/components/DataGridSelectionCell/DataGridSelectionCell.types.js.map +1 -1
  44. package/lib/components/DataGridSelectionCell/index.js.map +1 -1
  45. package/lib/components/DataGridSelectionCell/renderDataGridSelectionCell.js.map +1 -1
  46. package/lib/components/DataGridSelectionCell/useDataGridSelectionCell.js.map +1 -1
  47. package/lib/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.raw.js.map +1 -1
  48. package/lib/components/Table/Table.js.map +1 -1
  49. package/lib/components/Table/Table.types.js.map +1 -1
  50. package/lib/components/Table/index.js.map +1 -1
  51. package/lib/components/Table/renderTable.js +2 -2
  52. package/lib/components/Table/renderTable.js.map +1 -1
  53. package/lib/components/Table/useTable.js +1 -2
  54. package/lib/components/Table/useTable.js.map +1 -1
  55. package/lib/components/Table/useTableContextValues.js.map +1 -1
  56. package/lib/components/Table/useTableStyles.styles.raw.js.map +1 -1
  57. package/lib/components/TableBody/TableBody.js.map +1 -1
  58. package/lib/components/TableBody/TableBody.types.js.map +1 -1
  59. package/lib/components/TableBody/index.js.map +1 -1
  60. package/lib/components/TableBody/renderTableBody.js +2 -2
  61. package/lib/components/TableBody/renderTableBody.js.map +1 -1
  62. package/lib/components/TableBody/useTableBody.js +1 -1
  63. package/lib/components/TableBody/useTableBody.js.map +1 -1
  64. package/lib/components/TableBody/useTableBodyStyles.styles.raw.js.map +1 -1
  65. package/lib/components/TableCell/TableCell.js.map +1 -1
  66. package/lib/components/TableCell/TableCell.types.js.map +1 -1
  67. package/lib/components/TableCell/index.js.map +1 -1
  68. package/lib/components/TableCell/renderTableCell.js +2 -2
  69. package/lib/components/TableCell/renderTableCell.js.map +1 -1
  70. package/lib/components/TableCell/useTableCell.js +1 -1
  71. package/lib/components/TableCell/useTableCell.js.map +1 -1
  72. package/lib/components/TableCell/useTableCellStyles.styles.raw.js.map +1 -1
  73. package/lib/components/TableCellActions/TableCellActions.js.map +1 -1
  74. package/lib/components/TableCellActions/TableCellActions.types.js.map +1 -1
  75. package/lib/components/TableCellActions/index.js.map +1 -1
  76. package/lib/components/TableCellActions/renderTableCellActions.js +2 -2
  77. package/lib/components/TableCellActions/renderTableCellActions.js.map +1 -1
  78. package/lib/components/TableCellActions/useTableCellActions.js.map +1 -1
  79. package/lib/components/TableCellActions/useTableCellActionsStyles.styles.raw.js.map +1 -1
  80. package/lib/components/TableCellLayout/TableCellLayout.js.map +1 -1
  81. package/lib/components/TableCellLayout/TableCellLayout.types.js.map +1 -1
  82. package/lib/components/TableCellLayout/index.js.map +1 -1
  83. package/lib/components/TableCellLayout/renderTableCellLayout.js +2 -2
  84. package/lib/components/TableCellLayout/renderTableCellLayout.js.map +1 -1
  85. package/lib/components/TableCellLayout/useTableCellLayout.js.map +1 -1
  86. package/lib/components/TableCellLayout/useTableCellLayoutContextValues.js.map +1 -1
  87. package/lib/components/TableCellLayout/useTableCellLayoutStyles.styles.raw.js.map +1 -1
  88. package/lib/components/TableHeader/TableHeader.js.map +1 -1
  89. package/lib/components/TableHeader/TableHeader.types.js.map +1 -1
  90. package/lib/components/TableHeader/index.js.map +1 -1
  91. package/lib/components/TableHeader/renderTableHeader.js +2 -2
  92. package/lib/components/TableHeader/renderTableHeader.js.map +1 -1
  93. package/lib/components/TableHeader/useTableHeader.js +1 -1
  94. package/lib/components/TableHeader/useTableHeader.js.map +1 -1
  95. package/lib/components/TableHeader/useTableHeaderStyles.styles.raw.js.map +1 -1
  96. package/lib/components/TableHeaderCell/TableHeaderCell.js.map +1 -1
  97. package/lib/components/TableHeaderCell/TableHeaderCell.types.js.map +1 -1
  98. package/lib/components/TableHeaderCell/index.js.map +1 -1
  99. package/lib/components/TableHeaderCell/renderTableHeaderCell.js +2 -2
  100. package/lib/components/TableHeaderCell/renderTableHeaderCell.js.map +1 -1
  101. package/lib/components/TableHeaderCell/useTableHeaderCell.js +1 -2
  102. package/lib/components/TableHeaderCell/useTableHeaderCell.js.map +1 -1
  103. package/lib/components/TableHeaderCell/useTableHeaderCellStyles.styles.raw.js.map +1 -1
  104. package/lib/components/TableResizeHandle/TableResizeHandle.js.map +1 -1
  105. package/lib/components/TableResizeHandle/TableResizeHandle.types.js.map +1 -1
  106. package/lib/components/TableResizeHandle/index.js.map +1 -1
  107. package/lib/components/TableResizeHandle/renderTableResizeHandle.js +2 -2
  108. package/lib/components/TableResizeHandle/renderTableResizeHandle.js.map +1 -1
  109. package/lib/components/TableResizeHandle/useTableResizeHandle.js.map +1 -1
  110. package/lib/components/TableResizeHandle/useTableResizeHandleStyles.styles.raw.js.map +1 -1
  111. package/lib/components/TableRow/TableRow.js.map +1 -1
  112. package/lib/components/TableRow/TableRow.types.js.map +1 -1
  113. package/lib/components/TableRow/index.js.map +1 -1
  114. package/lib/components/TableRow/renderTableRow.js +2 -2
  115. package/lib/components/TableRow/renderTableRow.js.map +1 -1
  116. package/lib/components/TableRow/useTableRow.js +1 -2
  117. package/lib/components/TableRow/useTableRow.js.map +1 -1
  118. package/lib/components/TableRow/useTableRowStyles.styles.raw.js.map +1 -1
  119. package/lib/components/TableSelectionCell/TableSelectionCell.js.map +1 -1
  120. package/lib/components/TableSelectionCell/TableSelectionCell.types.js.map +1 -1
  121. package/lib/components/TableSelectionCell/index.js.map +1 -1
  122. package/lib/components/TableSelectionCell/renderTableSelectionCell.js +2 -2
  123. package/lib/components/TableSelectionCell/renderTableSelectionCell.js.map +1 -1
  124. package/lib/components/TableSelectionCell/useTableSelectionCell.js.map +1 -1
  125. package/lib/components/TableSelectionCell/useTableSelectionCellStyles.styles.raw.js.map +1 -1
  126. package/lib/contexts/columnIdContext.js.map +1 -1
  127. package/lib/contexts/dataGridContext.js.map +1 -1
  128. package/lib/contexts/rowIdContext.js.map +1 -1
  129. package/lib/contexts/tableContext.js.map +1 -1
  130. package/lib/contexts/tableHeaderContext.js.map +1 -1
  131. package/lib/hooks/createColumn.js.map +1 -1
  132. package/lib/hooks/index.js.map +1 -1
  133. package/lib/hooks/types.js.map +1 -1
  134. package/lib/hooks/useKeyboardResizing.js.map +1 -1
  135. package/lib/hooks/useMeasureElement.js.map +1 -1
  136. package/lib/hooks/useTableColumnResizeMouseHandler.js.map +1 -1
  137. package/lib/hooks/useTableColumnResizeState.js.map +1 -1
  138. package/lib/hooks/useTableColumnSizing.js.map +1 -1
  139. package/lib/hooks/useTableCompositeNavigation.js.map +1 -1
  140. package/lib/hooks/useTableFeatures.js +2 -2
  141. package/lib/hooks/useTableFeatures.js.map +1 -1
  142. package/lib/hooks/useTableSelection.js +4 -4
  143. package/lib/hooks/useTableSelection.js.map +1 -1
  144. package/lib/hooks/useTableSort.js.map +1 -1
  145. package/lib/utils/columnResizeUtils.js +6 -6
  146. package/lib/utils/columnResizeUtils.js.map +1 -1
  147. package/lib/utils/isColumnSortable.js.map +1 -1
  148. package/lib-commonjs/DataGrid.cjs +7 -7
  149. package/lib-commonjs/DataGridBody.cjs +6 -6
  150. package/lib-commonjs/DataGridCell.cjs +6 -6
  151. package/lib-commonjs/DataGridHeader.cjs +6 -6
  152. package/lib-commonjs/DataGridHeaderCell.cjs +6 -6
  153. package/lib-commonjs/DataGridRow.cjs +6 -6
  154. package/lib-commonjs/DataGridSelectionCell.cjs +6 -6
  155. package/lib-commonjs/Table.cjs +7 -7
  156. package/lib-commonjs/TableBody.cjs +7 -7
  157. package/lib-commonjs/TableCell.cjs +7 -7
  158. package/lib-commonjs/TableCellActions.cjs +6 -6
  159. package/lib-commonjs/TableCellLayout.cjs +6 -6
  160. package/lib-commonjs/TableCellPrimaryLayout.cjs +6 -6
  161. package/lib-commonjs/TableHeader.cjs +7 -7
  162. package/lib-commonjs/TableHeaderCell.cjs +7 -7
  163. package/lib-commonjs/TableResizeHandle.cjs +6 -6
  164. package/lib-commonjs/TableRow.cjs +7 -7
  165. package/lib-commonjs/TableSelectionCell.cjs +7 -7
  166. package/lib-commonjs/components/DataGrid/DataGrid.cjs.map +1 -1
  167. package/lib-commonjs/components/DataGrid/DataGrid.types.cjs.map +1 -1
  168. package/lib-commonjs/components/DataGrid/index.cjs +7 -7
  169. package/lib-commonjs/components/DataGrid/index.cjs.map +1 -1
  170. package/lib-commonjs/components/DataGrid/renderDataGrid.cjs.map +1 -1
  171. package/lib-commonjs/components/DataGrid/useDataGrid.cjs +1 -1
  172. package/lib-commonjs/components/DataGrid/useDataGrid.cjs.map +1 -1
  173. package/lib-commonjs/components/DataGrid/useDataGridContextValues.cjs.map +1 -1
  174. package/lib-commonjs/components/DataGrid/useDataGridStyles.styles.cjs +3 -3
  175. package/lib-commonjs/components/DataGrid/useDataGridStyles.styles.cjs.map +1 -1
  176. package/lib-commonjs/components/DataGrid/useDataGridStyles.styles.raw.cjs +3 -3
  177. package/lib-commonjs/components/DataGrid/useDataGridStyles.styles.raw.cjs.map +1 -1
  178. package/lib-commonjs/components/DataGridBody/DataGridBody.cjs.map +1 -1
  179. package/lib-commonjs/components/DataGridBody/DataGridBody.types.cjs.map +1 -1
  180. package/lib-commonjs/components/DataGridBody/index.cjs +6 -6
  181. package/lib-commonjs/components/DataGridBody/index.cjs.map +1 -1
  182. package/lib-commonjs/components/DataGridBody/renderDataGridBody.cjs.map +1 -1
  183. package/lib-commonjs/components/DataGridBody/useDataGridBody.cjs.map +1 -1
  184. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.styles.cjs +3 -3
  185. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.styles.cjs.map +1 -1
  186. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.styles.raw.cjs +3 -3
  187. package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.styles.raw.cjs.map +1 -1
  188. package/lib-commonjs/components/DataGridCell/DataGridCell.cjs.map +1 -1
  189. package/lib-commonjs/components/DataGridCell/DataGridCell.types.cjs.map +1 -1
  190. package/lib-commonjs/components/DataGridCell/index.cjs +6 -6
  191. package/lib-commonjs/components/DataGridCell/index.cjs.map +1 -1
  192. package/lib-commonjs/components/DataGridCell/renderDataGridCell.cjs.map +1 -1
  193. package/lib-commonjs/components/DataGridCell/useDataGridCell.cjs.map +1 -1
  194. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.styles.cjs +3 -3
  195. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.styles.cjs.map +1 -1
  196. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.styles.raw.cjs +3 -3
  197. package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.styles.raw.cjs.map +1 -1
  198. package/lib-commonjs/components/DataGridHeader/DataGridHeader.cjs.map +1 -1
  199. package/lib-commonjs/components/DataGridHeader/DataGridHeader.types.cjs.map +1 -1
  200. package/lib-commonjs/components/DataGridHeader/index.cjs +6 -6
  201. package/lib-commonjs/components/DataGridHeader/index.cjs.map +1 -1
  202. package/lib-commonjs/components/DataGridHeader/renderDataGridHeader.cjs.map +1 -1
  203. package/lib-commonjs/components/DataGridHeader/useDataGridHeader.cjs.map +1 -1
  204. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.styles.cjs +3 -3
  205. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.styles.cjs.map +1 -1
  206. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.styles.raw.cjs +3 -3
  207. package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.styles.raw.cjs.map +1 -1
  208. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.cjs.map +1 -1
  209. package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.types.cjs.map +1 -1
  210. package/lib-commonjs/components/DataGridHeaderCell/index.cjs +6 -6
  211. package/lib-commonjs/components/DataGridHeaderCell/index.cjs.map +1 -1
  212. package/lib-commonjs/components/DataGridHeaderCell/renderDataGridHeaderCell.cjs.map +1 -1
  213. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCell.cjs.map +1 -1
  214. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.cjs +3 -3
  215. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.cjs.map +1 -1
  216. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.raw.cjs +3 -3
  217. package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.raw.cjs.map +1 -1
  218. package/lib-commonjs/components/DataGridRow/DataGridRow.cjs.map +1 -1
  219. package/lib-commonjs/components/DataGridRow/DataGridRow.types.cjs.map +1 -1
  220. package/lib-commonjs/components/DataGridRow/index.cjs +6 -6
  221. package/lib-commonjs/components/DataGridRow/index.cjs.map +1 -1
  222. package/lib-commonjs/components/DataGridRow/renderDataGridRow.cjs.map +1 -1
  223. package/lib-commonjs/components/DataGridRow/useDataGridRow.cjs.map +1 -1
  224. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.styles.cjs +3 -3
  225. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.styles.cjs.map +1 -1
  226. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.styles.raw.cjs +3 -3
  227. package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.styles.raw.cjs.map +1 -1
  228. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.cjs.map +1 -1
  229. package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.types.cjs.map +1 -1
  230. package/lib-commonjs/components/DataGridSelectionCell/index.cjs +6 -6
  231. package/lib-commonjs/components/DataGridSelectionCell/index.cjs.map +1 -1
  232. package/lib-commonjs/components/DataGridSelectionCell/renderDataGridSelectionCell.cjs.map +1 -1
  233. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCell.cjs.map +1 -1
  234. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.cjs +3 -3
  235. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.cjs.map +1 -1
  236. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.raw.cjs +3 -3
  237. package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.raw.cjs.map +1 -1
  238. package/lib-commonjs/components/Table/Table.cjs.map +1 -1
  239. package/lib-commonjs/components/Table/Table.types.cjs.map +1 -1
  240. package/lib-commonjs/components/Table/index.cjs +7 -7
  241. package/lib-commonjs/components/Table/index.cjs.map +1 -1
  242. package/lib-commonjs/components/Table/renderTable.cjs.map +1 -1
  243. package/lib-commonjs/components/Table/useTable.cjs +1 -2
  244. package/lib-commonjs/components/Table/useTable.cjs.map +1 -1
  245. package/lib-commonjs/components/Table/useTableContextValues.cjs.map +1 -1
  246. package/lib-commonjs/components/Table/useTableStyles.styles.cjs +4 -4
  247. package/lib-commonjs/components/Table/useTableStyles.styles.cjs.map +1 -1
  248. package/lib-commonjs/components/Table/useTableStyles.styles.raw.cjs +4 -4
  249. package/lib-commonjs/components/Table/useTableStyles.styles.raw.cjs.map +1 -1
  250. package/lib-commonjs/components/TableBody/TableBody.cjs.map +1 -1
  251. package/lib-commonjs/components/TableBody/TableBody.types.cjs.map +1 -1
  252. package/lib-commonjs/components/TableBody/index.cjs +7 -7
  253. package/lib-commonjs/components/TableBody/index.cjs.map +1 -1
  254. package/lib-commonjs/components/TableBody/renderTableBody.cjs.map +1 -1
  255. package/lib-commonjs/components/TableBody/useTableBody.cjs +1 -1
  256. package/lib-commonjs/components/TableBody/useTableBody.cjs.map +1 -1
  257. package/lib-commonjs/components/TableBody/useTableBodyStyles.styles.cjs +4 -4
  258. package/lib-commonjs/components/TableBody/useTableBodyStyles.styles.cjs.map +1 -1
  259. package/lib-commonjs/components/TableBody/useTableBodyStyles.styles.raw.cjs +4 -4
  260. package/lib-commonjs/components/TableBody/useTableBodyStyles.styles.raw.cjs.map +1 -1
  261. package/lib-commonjs/components/TableCell/TableCell.cjs.map +1 -1
  262. package/lib-commonjs/components/TableCell/TableCell.types.cjs.map +1 -1
  263. package/lib-commonjs/components/TableCell/index.cjs +7 -7
  264. package/lib-commonjs/components/TableCell/index.cjs.map +1 -1
  265. package/lib-commonjs/components/TableCell/renderTableCell.cjs.map +1 -1
  266. package/lib-commonjs/components/TableCell/useTableCell.cjs +1 -1
  267. package/lib-commonjs/components/TableCell/useTableCell.cjs.map +1 -1
  268. package/lib-commonjs/components/TableCell/useTableCellStyles.styles.cjs +4 -4
  269. package/lib-commonjs/components/TableCell/useTableCellStyles.styles.cjs.map +1 -1
  270. package/lib-commonjs/components/TableCell/useTableCellStyles.styles.raw.cjs +4 -4
  271. package/lib-commonjs/components/TableCell/useTableCellStyles.styles.raw.cjs.map +1 -1
  272. package/lib-commonjs/components/TableCellActions/TableCellActions.cjs.map +1 -1
  273. package/lib-commonjs/components/TableCellActions/TableCellActions.types.cjs.map +1 -1
  274. package/lib-commonjs/components/TableCellActions/index.cjs +6 -6
  275. package/lib-commonjs/components/TableCellActions/index.cjs.map +1 -1
  276. package/lib-commonjs/components/TableCellActions/renderTableCellActions.cjs.map +1 -1
  277. package/lib-commonjs/components/TableCellActions/useTableCellActions.cjs.map +1 -1
  278. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.styles.cjs +3 -3
  279. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.styles.cjs.map +1 -1
  280. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.styles.raw.cjs +3 -3
  281. package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.styles.raw.cjs.map +1 -1
  282. package/lib-commonjs/components/TableCellLayout/TableCellLayout.cjs.map +1 -1
  283. package/lib-commonjs/components/TableCellLayout/TableCellLayout.types.cjs.map +1 -1
  284. package/lib-commonjs/components/TableCellLayout/index.cjs +6 -6
  285. package/lib-commonjs/components/TableCellLayout/index.cjs.map +1 -1
  286. package/lib-commonjs/components/TableCellLayout/renderTableCellLayout.cjs.map +1 -1
  287. package/lib-commonjs/components/TableCellLayout/useTableCellLayout.cjs.map +1 -1
  288. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutContextValues.cjs.map +1 -1
  289. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.styles.cjs +3 -3
  290. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.styles.cjs.map +1 -1
  291. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.styles.raw.cjs +3 -3
  292. package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.styles.raw.cjs.map +1 -1
  293. package/lib-commonjs/components/TableHeader/TableHeader.cjs.map +1 -1
  294. package/lib-commonjs/components/TableHeader/TableHeader.types.cjs.map +1 -1
  295. package/lib-commonjs/components/TableHeader/index.cjs +7 -7
  296. package/lib-commonjs/components/TableHeader/index.cjs.map +1 -1
  297. package/lib-commonjs/components/TableHeader/renderTableHeader.cjs.map +1 -1
  298. package/lib-commonjs/components/TableHeader/useTableHeader.cjs +1 -1
  299. package/lib-commonjs/components/TableHeader/useTableHeader.cjs.map +1 -1
  300. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.styles.cjs +4 -4
  301. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.styles.cjs.map +1 -1
  302. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.styles.raw.cjs +4 -4
  303. package/lib-commonjs/components/TableHeader/useTableHeaderStyles.styles.raw.cjs.map +1 -1
  304. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.cjs.map +1 -1
  305. package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.types.cjs.map +1 -1
  306. package/lib-commonjs/components/TableHeaderCell/index.cjs +7 -7
  307. package/lib-commonjs/components/TableHeaderCell/index.cjs.map +1 -1
  308. package/lib-commonjs/components/TableHeaderCell/renderTableHeaderCell.cjs.map +1 -1
  309. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCell.cjs +1 -2
  310. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCell.cjs.map +1 -1
  311. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.styles.cjs +4 -4
  312. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.styles.cjs.map +1 -1
  313. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.styles.raw.cjs +4 -4
  314. package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.styles.raw.cjs.map +1 -1
  315. package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.cjs.map +1 -1
  316. package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.types.cjs.map +1 -1
  317. package/lib-commonjs/components/TableResizeHandle/index.cjs +6 -6
  318. package/lib-commonjs/components/TableResizeHandle/index.cjs.map +1 -1
  319. package/lib-commonjs/components/TableResizeHandle/renderTableResizeHandle.cjs.map +1 -1
  320. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandle.cjs.map +1 -1
  321. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.styles.cjs +3 -3
  322. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.styles.cjs.map +1 -1
  323. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.styles.raw.cjs +3 -3
  324. package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.styles.raw.cjs.map +1 -1
  325. package/lib-commonjs/components/TableRow/TableRow.cjs.map +1 -1
  326. package/lib-commonjs/components/TableRow/TableRow.types.cjs.map +1 -1
  327. package/lib-commonjs/components/TableRow/index.cjs +7 -7
  328. package/lib-commonjs/components/TableRow/index.cjs.map +1 -1
  329. package/lib-commonjs/components/TableRow/renderTableRow.cjs.map +1 -1
  330. package/lib-commonjs/components/TableRow/useTableRow.cjs +1 -2
  331. package/lib-commonjs/components/TableRow/useTableRow.cjs.map +1 -1
  332. package/lib-commonjs/components/TableRow/useTableRowStyles.styles.cjs +4 -4
  333. package/lib-commonjs/components/TableRow/useTableRowStyles.styles.cjs.map +1 -1
  334. package/lib-commonjs/components/TableRow/useTableRowStyles.styles.raw.cjs +4 -4
  335. package/lib-commonjs/components/TableRow/useTableRowStyles.styles.raw.cjs.map +1 -1
  336. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.cjs.map +1 -1
  337. package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.types.cjs.map +1 -1
  338. package/lib-commonjs/components/TableSelectionCell/index.cjs +7 -7
  339. package/lib-commonjs/components/TableSelectionCell/index.cjs.map +1 -1
  340. package/lib-commonjs/components/TableSelectionCell/renderTableSelectionCell.cjs.map +1 -1
  341. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCell.cjs.map +1 -1
  342. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.styles.cjs +4 -4
  343. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.styles.cjs.map +1 -1
  344. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.styles.raw.cjs +4 -4
  345. package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.styles.raw.cjs.map +1 -1
  346. package/lib-commonjs/contexts/columnIdContext.cjs +4 -4
  347. package/lib-commonjs/contexts/columnIdContext.cjs.map +1 -1
  348. package/lib-commonjs/contexts/dataGridContext.cjs +4 -4
  349. package/lib-commonjs/contexts/dataGridContext.cjs.map +1 -1
  350. package/lib-commonjs/contexts/rowIdContext.cjs +4 -4
  351. package/lib-commonjs/contexts/rowIdContext.cjs.map +1 -1
  352. package/lib-commonjs/contexts/tableContext.cjs +4 -4
  353. package/lib-commonjs/contexts/tableContext.cjs.map +1 -1
  354. package/lib-commonjs/contexts/tableHeaderContext.cjs +3 -3
  355. package/lib-commonjs/contexts/tableHeaderContext.cjs.map +1 -1
  356. package/lib-commonjs/hooks/createColumn.cjs.map +1 -1
  357. package/lib-commonjs/hooks/index.cjs +13 -13
  358. package/lib-commonjs/hooks/index.cjs.map +1 -1
  359. package/lib-commonjs/hooks/types.cjs.map +1 -1
  360. package/lib-commonjs/hooks/useKeyboardResizing.cjs.map +1 -1
  361. package/lib-commonjs/hooks/useMeasureElement.cjs +3 -3
  362. package/lib-commonjs/hooks/useMeasureElement.cjs.map +1 -1
  363. package/lib-commonjs/hooks/useTableColumnResizeMouseHandler.cjs.map +1 -1
  364. package/lib-commonjs/hooks/useTableColumnResizeState.cjs.map +1 -1
  365. package/lib-commonjs/hooks/useTableColumnSizing.cjs +3 -3
  366. package/lib-commonjs/hooks/useTableColumnSizing.cjs.map +1 -1
  367. package/lib-commonjs/hooks/useTableCompositeNavigation.cjs.map +1 -1
  368. package/lib-commonjs/hooks/useTableFeatures.cjs +5 -5
  369. package/lib-commonjs/hooks/useTableFeatures.cjs.map +1 -1
  370. package/lib-commonjs/hooks/useTableSelection.cjs +8 -8
  371. package/lib-commonjs/hooks/useTableSelection.cjs.map +1 -1
  372. package/lib-commonjs/hooks/useTableSort.cjs +4 -4
  373. package/lib-commonjs/hooks/useTableSort.cjs.map +1 -1
  374. package/lib-commonjs/index.cjs +110 -110
  375. package/lib-commonjs/index.cjs.map +1 -1
  376. package/lib-commonjs/utils/columnResizeUtils.cjs +15 -15
  377. package/lib-commonjs/utils/columnResizeUtils.cjs.map +1 -1
  378. package/lib-commonjs/utils/isColumnSortable.cjs.map +1 -1
  379. package/package.json +2 -2
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- dataGridHeaderClassNames: function() {
13
+ get dataGridHeaderClassNames () {
14
14
  return dataGridHeaderClassNames;
15
15
  },
16
- useDataGridHeaderStyles_unstable: function() {
16
+ get useDataGridHeaderStyles_unstable () {
17
17
  return useDataGridHeaderStyles_unstable;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/DataGridHeader/useDataGridHeaderStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { mergeClasses } from '@griffel/react';\nimport type { DataGridHeaderSlots, DataGridHeaderState } from './DataGridHeader.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableHeaderStyles_unstable } from '../TableHeader/useTableHeaderStyles.styles';\n\nexport const dataGridHeaderClassNames: SlotClassNames<DataGridHeaderSlots> = {\n root: 'fui-DataGridHeader',\n};\n\n/**\n * Apply styling to the DataGridHeader slots based on the state\n */\nexport const useDataGridHeaderStyles_unstable = (state: DataGridHeaderState): DataGridHeaderState => {\n useTableHeaderStyles_unstable(state);\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(dataGridHeaderClassNames.root, state.root.className);\n\n return state;\n};\n"],"names":["mergeClasses","useTableHeaderStyles_unstable","dataGridHeaderClassNames","root","useDataGridHeaderStyles_unstable","state","className"],"mappings":"AAAA;;;;;;;;;;;;4BAOaE;;;oCAOAE;;;;uBAZgB,iBAAiB;4CAGA,gDAA6C;AAEpF,MAAMF,2BAAgE;IAC3EC,MAAM;AACR,EAAE;AAKK,MAAMC,mCAAmC,CAACC;IAC/CJ,6DAAAA,EAA8BI;IAC9B,oDAAoD;IACpDA,MAAMF,IAAI,CAACG,SAAS,OAAGN,mBAAAA,EAAaE,yBAAyBC,IAAI,EAAEE,MAAMF,IAAI,CAACG,SAAS;IAEvF,OAAOD;AACT,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/DataGridHeader/useDataGridHeaderStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { mergeClasses } from '@griffel/react';\nimport type { DataGridHeaderSlots, DataGridHeaderState } from './DataGridHeader.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableHeaderStyles_unstable } from '../TableHeader/useTableHeaderStyles.styles';\n\nexport const dataGridHeaderClassNames: SlotClassNames<DataGridHeaderSlots> = {\n root: 'fui-DataGridHeader',\n};\n\n/**\n * Apply styling to the DataGridHeader slots based on the state\n */\nexport const useDataGridHeaderStyles_unstable = (state: DataGridHeaderState): DataGridHeaderState => {\n useTableHeaderStyles_unstable(state);\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(dataGridHeaderClassNames.root, state.root.className);\n\n return state;\n};\n"],"names":["mergeClasses","useTableHeaderStyles_unstable","dataGridHeaderClassNames","root","useDataGridHeaderStyles_unstable","state","className"],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;uBAE6B,iBAAiB;4CAGA,gDAA6C;AAEpF,MAAME,2BAAgE;IAC3EC,MAAM;AACR,EAAE;AAKK,MAAMC,mCAAmC,CAACC;QAC/CJ,yDAAAA,EAA8BI;IAC9B,oDAAoD;IACpDA,MAAMF,IAAI,CAACG,SAAS,OAAGN,mBAAAA,EAAaE,yBAAyBC,IAAI,EAAEE,MAAMF,IAAI,CAACG,SAAS;IAEvF,OAAOD;AACT,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/DataGridHeaderCell/DataGridHeaderCell.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useDataGridHeaderCell_unstable } from './useDataGridHeaderCell';\nimport { renderDataGridHeaderCell_unstable } from './renderDataGridHeaderCell';\nimport { useDataGridHeaderCellStyles_unstable } from './useDataGridHeaderCellStyles.styles';\nimport type { DataGridHeaderCellProps } from './DataGridHeaderCell.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * DataGridHeaderCell component\n */\nexport const DataGridHeaderCell: ForwardRefComponent<DataGridHeaderCellProps> = React.forwardRef((props, ref) => {\n const state = useDataGridHeaderCell_unstable(props, ref);\n\n useDataGridHeaderCellStyles_unstable(state);\n\n useCustomStyleHook_unstable('useDataGridHeaderCellStyles_unstable')(state);\n\n return renderDataGridHeaderCell_unstable(state);\n});\n\nDataGridHeaderCell.displayName = 'DataGridHeaderCell';\n"],"names":["React","useDataGridHeaderCell_unstable","renderDataGridHeaderCell_unstable","useDataGridHeaderCellStyles_unstable","useCustomStyleHook_unstable","DataGridHeaderCell","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;uCACgB,6BAA0B;0CACvB,gCAA6B;mDAC1B,0CAAuC;qCAGhD,kCAAkC;AAKvE,MAAMK,qBAAAA,WAAAA,GAAmEL,OAAMM,UAAU,CAAC,CAACC,OAAOC;IACvG,MAAMC,YAAQR,qDAAAA,EAA+BM,OAAOC;QAEpDL,uEAAAA,EAAqCM;QAErCL,gDAAAA,EAA4B,wCAAwCK;IAEpE,WAAOP,2DAAAA,EAAkCO;AAC3C,GAAG;AAEHJ,mBAAmBK,WAAW,GAAG"}
1
+ {"version":3,"sources":["../../../src/components/DataGridHeaderCell/DataGridHeaderCell.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useDataGridHeaderCell_unstable } from './useDataGridHeaderCell';\nimport { renderDataGridHeaderCell_unstable } from './renderDataGridHeaderCell';\nimport { useDataGridHeaderCellStyles_unstable } from './useDataGridHeaderCellStyles.styles';\nimport type { DataGridHeaderCellProps } from './DataGridHeaderCell.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * DataGridHeaderCell component\n */\nexport const DataGridHeaderCell: ForwardRefComponent<DataGridHeaderCellProps> = React.forwardRef((props, ref) => {\n const state = useDataGridHeaderCell_unstable(props, ref);\n\n useDataGridHeaderCellStyles_unstable(state);\n\n useCustomStyleHook_unstable('useDataGridHeaderCellStyles_unstable')(state);\n\n return renderDataGridHeaderCell_unstable(state);\n});\n\nDataGridHeaderCell.displayName = 'DataGridHeaderCell';\n"],"names":["React","useDataGridHeaderCell_unstable","renderDataGridHeaderCell_unstable","useDataGridHeaderCellStyles_unstable","useCustomStyleHook_unstable","DataGridHeaderCell","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;uCACgB,6BAA0B;0CACvB,gCAA6B;mDAC1B,0CAAuC;qCAGhD,kCAAkC;AAKvE,MAAMK,qBAAAA,WAAAA,GAAmEL,OAAMM,UAAU,CAAC,CAACC,OAAOC;IACvG,MAAMC,YAAQR,qDAAAA,EAA+BM,OAAOC;QAEpDL,uEAAAA,EAAqCM;QAErCL,gDAAAA,EAA4B,wCAAwCK;IAEpE,WAAOP,2DAAAA,EAAkCO;AAC3C,GAAG;AAEHJ,mBAAmBK,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/DataGridHeaderCell/DataGridHeaderCell.types.ts"],"sourcesContent":["import type {\n TableHeaderCellProps,\n TableHeaderCellSlots,\n TableHeaderCellState,\n} from '../TableHeaderCell/TableHeaderCell.types';\n\nimport type { DataGridCellProps } from '../DataGridCell/DataGridCell.types';\n\nexport type DataGridHeaderCellSlots = TableHeaderCellSlots;\n\n/**\n * DataGridHeaderCell Props\n */\nexport type DataGridHeaderCellProps = Omit<TableHeaderCellProps, 'sortable'> & Pick<DataGridCellProps, 'focusMode'>;\n\n/**\n * State used in rendering DataGridHeaderCell\n */\nexport type DataGridHeaderCellState = TableHeaderCellState;\n"],"names":[],"mappings":"AAeA;;CAEC,GACD,WAA2D"}
1
+ {"version":3,"sources":["../../../src/components/DataGridHeaderCell/DataGridHeaderCell.types.ts"],"sourcesContent":["import type {\n TableHeaderCellProps,\n TableHeaderCellSlots,\n TableHeaderCellState,\n} from '../TableHeaderCell/TableHeaderCell.types';\n\nimport type { DataGridCellProps } from '../DataGridCell/DataGridCell.types';\n\nexport type DataGridHeaderCellSlots = TableHeaderCellSlots;\n\n/**\n * DataGridHeaderCell Props\n */\nexport type DataGridHeaderCellProps = Omit<TableHeaderCellProps, 'sortable'> & Pick<DataGridCellProps, 'focusMode'>;\n\n/**\n * State used in rendering DataGridHeaderCell\n */\nexport type DataGridHeaderCellState = TableHeaderCellState;\n"],"names":[],"mappings":"AAeA;;CAEC,GACD,WAA2D"}
@@ -5,23 +5,23 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- DataGridHeaderCell: function() {
12
+ get DataGridHeaderCell () {
13
13
  return _DataGridHeaderCell.DataGridHeaderCell;
14
14
  },
15
- dataGridHeaderCellClassNames: function() {
15
+ get dataGridHeaderCellClassNames () {
16
16
  return _useDataGridHeaderCellStylesstyles.dataGridHeaderCellClassNames;
17
17
  },
18
- renderDataGridHeaderCell_unstable: function() {
18
+ get renderDataGridHeaderCell_unstable () {
19
19
  return _renderDataGridHeaderCell.renderDataGridHeaderCell_unstable;
20
20
  },
21
- useDataGridHeaderCellStyles_unstable: function() {
21
+ get useDataGridHeaderCellStyles_unstable () {
22
22
  return _useDataGridHeaderCellStylesstyles.useDataGridHeaderCellStyles_unstable;
23
23
  },
24
- useDataGridHeaderCell_unstable: function() {
24
+ get useDataGridHeaderCell_unstable () {
25
25
  return _useDataGridHeaderCell.useDataGridHeaderCell_unstable;
26
26
  }
27
27
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/DataGridHeaderCell/index.ts"],"sourcesContent":["export { DataGridHeaderCell } from './DataGridHeaderCell';\nexport type {\n DataGridHeaderCellProps,\n DataGridHeaderCellSlots,\n DataGridHeaderCellState,\n} from './DataGridHeaderCell.types';\nexport { renderDataGridHeaderCell_unstable } from './renderDataGridHeaderCell';\nexport { useDataGridHeaderCell_unstable } from './useDataGridHeaderCell';\nexport {\n dataGridHeaderCellClassNames,\n useDataGridHeaderCellStyles_unstable,\n} from './useDataGridHeaderCellStyles.styles';\n"],"names":["DataGridHeaderCell","renderDataGridHeaderCell_unstable","useDataGridHeaderCell_unstable","dataGridHeaderCellClassNames","useDataGridHeaderCellStyles_unstable"],"mappings":";;;;;;;;;;;;eAASA,sCAAkB;;;eASzBG,+DAA4B;;;eAHrBF,2DAAiC;;;eAIxCG,uEAAoC;;;eAH7BF,qDAA8B;;;oCAPJ,0BAAuB;0CAMR,gCAA6B;uCAChC,6BAA0B;mDAIlE,0CAAuC"}
1
+ {"version":3,"sources":["../../../src/components/DataGridHeaderCell/index.ts"],"sourcesContent":["export { DataGridHeaderCell } from './DataGridHeaderCell';\nexport type {\n DataGridHeaderCellProps,\n DataGridHeaderCellSlots,\n DataGridHeaderCellState,\n} from './DataGridHeaderCell.types';\nexport { renderDataGridHeaderCell_unstable } from './renderDataGridHeaderCell';\nexport { useDataGridHeaderCell_unstable } from './useDataGridHeaderCell';\nexport {\n dataGridHeaderCellClassNames,\n useDataGridHeaderCellStyles_unstable,\n} from './useDataGridHeaderCellStyles.styles';\n"],"names":["DataGridHeaderCell","renderDataGridHeaderCell_unstable","useDataGridHeaderCell_unstable","dataGridHeaderCellClassNames","useDataGridHeaderCellStyles_unstable"],"mappings":";;;;;;;;;;;;eAASA,sCAAkB;;;eASzBG,+DAA4B;;;eAHrBF,2DAAiC;;;eAIxCG,uEAAoC;;;eAH7BF,qDAA8B;;;oCAPJ,0BAAuB;0CAMR,gCAA6B;uCAChC,6BAA0B;mDAIlE,0CAAuC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/DataGridHeaderCell/renderDataGridHeaderCell.tsx"],"sourcesContent":["import type { JSXElement } from '@fluentui/react-utilities';\nimport type { DataGridHeaderCellState } from './DataGridHeaderCell.types';\nimport { renderTableHeaderCell_unstable } from '../TableHeaderCell/renderTableHeaderCell';\n\n/**\n * Render the final JSX of DataGridHeaderCell\n */\nexport const renderDataGridHeaderCell_unstable = (state: DataGridHeaderCellState): JSXElement => {\n return renderTableHeaderCell_unstable(state);\n};\n"],"names":["renderTableHeaderCell_unstable","renderDataGridHeaderCell_unstable","state"],"mappings":";;;;;;;;;;uCAE+C,8CAA2C;AAKnF,MAAMC,oCAAoC,CAACC;IAChD,WAAOF,qDAAAA,EAA+BE;AACxC,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/DataGridHeaderCell/renderDataGridHeaderCell.tsx"],"sourcesContent":["import type { JSXElement } from '@fluentui/react-utilities';\nimport type { DataGridHeaderCellState } from './DataGridHeaderCell.types';\nimport { renderTableHeaderCell_unstable } from '../TableHeaderCell/renderTableHeaderCell';\n\n/**\n * Render the final JSX of DataGridHeaderCell\n */\nexport const renderDataGridHeaderCell_unstable = (state: DataGridHeaderCellState): JSXElement => {\n return renderTableHeaderCell_unstable(state);\n};\n"],"names":["renderTableHeaderCell_unstable","renderDataGridHeaderCell_unstable","state"],"mappings":";;;;;;;;;;uCAE+C,8CAA2C;AAKnF,MAAMC,oCAAoC,CAACC;IAChD,WAAOF,qDAAAA,EAA+BE;AACxC,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/DataGridHeaderCell/useDataGridHeaderCell.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { useFocusableGroup } from '@fluentui/react-tabster';\nimport { useEventCallback } from '@fluentui/react-utilities';\nimport type { DataGridHeaderCellProps, DataGridHeaderCellState } from './DataGridHeaderCell.types';\nimport { useTableHeaderCell_unstable } from '../TableHeaderCell/useTableHeaderCell';\nimport { useDataGridContext_unstable } from '../../contexts/dataGridContext';\nimport { useColumnIdContext } from '../../contexts/columnIdContext';\nimport { useTableContext } from '../../contexts/tableContext';\nimport { isColumnSortable } from '../../utils/isColumnSortable';\n\n/**\n * Create the state required to render DataGridHeaderCell.\n *\n * The returned state can be modified with hooks such as useDataGridHeaderCellStyles_unstable,\n * before being passed to renderDataGridHeaderCell_unstable.\n *\n * @param props - props from this instance of DataGridHeaderCell\n * @param ref - reference to root HTMLElement of DataGridHeaderCell\n */\nexport const useDataGridHeaderCell_unstable = (\n props: DataGridHeaderCellProps,\n ref: React.Ref<HTMLElement>,\n): DataGridHeaderCellState => {\n const columnId = useColumnIdContext();\n const { sortable: gridSortable } = useTableContext();\n const toggleColumnSort = useDataGridContext_unstable(ctx => ctx.sort.toggleColumnSort);\n\n const sortable = useDataGridContext_unstable(ctx => {\n const columnSortable = !!ctx.columns.find(c => c.columnId === columnId && isColumnSortable(c));\n if (!gridSortable) {\n // if the grid is not sortable - disable sorting on all columns\n return false;\n }\n\n return columnSortable;\n });\n\n const sortDirection = useDataGridContext_unstable(ctx =>\n sortable ? ctx.sort.getSortDirection(columnId) : undefined,\n );\n const resizableColumns = useDataGridContext_unstable(ctx => ctx.resizableColumns);\n const getTableHeaderCellProps = useDataGridContext_unstable(ctx => {\n return ctx.columnSizing_unstable.getTableHeaderCellProps;\n });\n\n const { focusMode = sortable ? 'none' : 'cell' } = props;\n const focusableGroupAttr = useFocusableGroup({ tabBehavior: 'limited-trap-focus' });\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated -- prefer HTMLTableCellElement\n const onClick = useEventCallback((e: React.MouseEvent<HTMLTableHeaderCellElement>) => {\n if (sortable) {\n toggleColumnSort(e, columnId);\n }\n props.onClick?.(e);\n });\n\n return useTableHeaderCell_unstable(\n {\n sortable,\n sortDirection,\n as: 'div',\n tabIndex: focusMode !== 'none' ? 0 : undefined,\n ...(focusMode === 'group' && focusableGroupAttr),\n ...(resizableColumns ? getTableHeaderCellProps(columnId) : {}),\n ...props,\n onClick,\n },\n ref,\n );\n};\n"],"names":["useFocusableGroup","useEventCallback","useTableHeaderCell_unstable","useDataGridContext_unstable","useColumnIdContext","useTableContext","isColumnSortable","useDataGridHeaderCell_unstable","props","ref","columnId","sortable","gridSortable","toggleColumnSort","ctx","sort","columnSortable","columns","find","c","sortDirection","getSortDirection","undefined","resizableColumns","getTableHeaderCellProps","columnSizing_unstable","focusMode","focusableGroupAttr","tabBehavior","onClick","e","as","tabIndex"],"mappings":"AAAA;;;;;+BAqBaO;;;;;;8BAlBqB,0BAA0B;gCAC3B,4BAA4B;oCAEjB,2CAAwC;iCACxC,oCAAiC;iCAC1C,oCAAiC;8BACpC,iCAA8B;kCAC7B,kCAA+B;AAWzD,uCAAuC,CAC5CC,OACAC;IAEA,MAAMC,eAAWN,mCAAAA;IACjB,MAAM,EAAEO,UAAUC,YAAY,EAAE,OAAGP,6BAAAA;IACnC,MAAMQ,uBAAmBV,4CAAAA,EAA4BW,CAAAA,MAAOA,IAAIC,IAAI,CAACF,gBAAgB;IAErF,MAAMF,eAAWR,4CAAAA,EAA4BW,CAAAA;QAC3C,MAAME,iBAAiB,CAAC,CAACF,IAAIG,OAAO,CAACC,IAAI,CAACC,CAAAA,IAAKA,EAAET,QAAQ,KAAKA,YAAYJ,sCAAAA,EAAiBa;QAC3F,IAAI,CAACP,cAAc;YACjB,+DAA+D;YAC/D,OAAO;QACT;QAEA,OAAOI;IACT;IAEA,MAAMI,oBAAgBjB,4CAAAA,EAA4BW,CAAAA,MAChDH,WAAWG,IAAIC,IAAI,CAACM,gBAAgB,CAACX,YAAYY;IAEnD,MAAMC,uBAAmBpB,4CAAAA,EAA4BW,CAAAA,MAAOA,IAAIS,gBAAgB;IAChF,MAAMC,8BAA0BrB,4CAAAA,EAA4BW,CAAAA;QAC1D,OAAOA,IAAIW,qBAAqB,CAACD,uBAAuB;IAC1D;IAEA,MAAM,EAAEE,YAAYf,WAAW,SAAS,MAAM,EAAE,GAAGH;IACnD,MAAMmB,yBAAqB3B,+BAAAA,EAAkB;QAAE4B,aAAa;IAAqB;IAEjF,2FAA2F;IAC3F,MAAMC,cAAU5B,gCAAAA,EAAiB,CAAC6B;YAIhCtB;QAHA,IAAIG,UAAU;YACZE,iBAAiBiB,GAAGpB;QACtB;SACAF,iBAAAA,MAAMqB,OAAAA,AAAO,MAAA,QAAbrB,mBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,eAAAA,IAAAA,CAAAA,OAAgBsB;IAClB;IAEA,WAAO5B,+CAAAA,EACL;QACES;QACAS;QACAW,IAAI;QACJC,UAAUN,cAAc,SAAS,IAAIJ;QACrC,GAAII,cAAc,WAAWC,kBAAkB;QAC/C,GAAIJ,mBAAmBC,wBAAwBd,YAAY,CAAC,CAAC;QAC7D,GAAGF,KAAK;QACRqB;IACF,GACApB;AAEJ,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/DataGridHeaderCell/useDataGridHeaderCell.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { useFocusableGroup } from '@fluentui/react-tabster';\nimport { useEventCallback } from '@fluentui/react-utilities';\nimport type { DataGridHeaderCellProps, DataGridHeaderCellState } from './DataGridHeaderCell.types';\nimport { useTableHeaderCell_unstable } from '../TableHeaderCell/useTableHeaderCell';\nimport { useDataGridContext_unstable } from '../../contexts/dataGridContext';\nimport { useColumnIdContext } from '../../contexts/columnIdContext';\nimport { useTableContext } from '../../contexts/tableContext';\nimport { isColumnSortable } from '../../utils/isColumnSortable';\n\n/**\n * Create the state required to render DataGridHeaderCell.\n *\n * The returned state can be modified with hooks such as useDataGridHeaderCellStyles_unstable,\n * before being passed to renderDataGridHeaderCell_unstable.\n *\n * @param props - props from this instance of DataGridHeaderCell\n * @param ref - reference to root HTMLElement of DataGridHeaderCell\n */\nexport const useDataGridHeaderCell_unstable = (\n props: DataGridHeaderCellProps,\n ref: React.Ref<HTMLElement>,\n): DataGridHeaderCellState => {\n const columnId = useColumnIdContext();\n const { sortable: gridSortable } = useTableContext();\n const toggleColumnSort = useDataGridContext_unstable(ctx => ctx.sort.toggleColumnSort);\n\n const sortable = useDataGridContext_unstable(ctx => {\n const columnSortable = !!ctx.columns.find(c => c.columnId === columnId && isColumnSortable(c));\n if (!gridSortable) {\n // if the grid is not sortable - disable sorting on all columns\n return false;\n }\n\n return columnSortable;\n });\n\n const sortDirection = useDataGridContext_unstable(ctx =>\n sortable ? ctx.sort.getSortDirection(columnId) : undefined,\n );\n const resizableColumns = useDataGridContext_unstable(ctx => ctx.resizableColumns);\n const getTableHeaderCellProps = useDataGridContext_unstable(ctx => {\n return ctx.columnSizing_unstable.getTableHeaderCellProps;\n });\n\n const { focusMode = sortable ? 'none' : 'cell' } = props;\n const focusableGroupAttr = useFocusableGroup({ tabBehavior: 'limited-trap-focus' });\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated -- prefer HTMLTableCellElement\n const onClick = useEventCallback((e: React.MouseEvent<HTMLTableHeaderCellElement>) => {\n if (sortable) {\n toggleColumnSort(e, columnId);\n }\n props.onClick?.(e);\n });\n\n return useTableHeaderCell_unstable(\n {\n sortable,\n sortDirection,\n as: 'div',\n tabIndex: focusMode !== 'none' ? 0 : undefined,\n ...(focusMode === 'group' && focusableGroupAttr),\n ...(resizableColumns ? getTableHeaderCellProps(columnId) : {}),\n ...props,\n onClick,\n },\n ref,\n );\n};\n"],"names":["useFocusableGroup","useEventCallback","useTableHeaderCell_unstable","useDataGridContext_unstable","useColumnIdContext","useTableContext","isColumnSortable","useDataGridHeaderCell_unstable","props","ref","columnId","sortable","gridSortable","toggleColumnSort","ctx","sort","columnSortable","columns","find","c","sortDirection","getSortDirection","undefined","resizableColumns","getTableHeaderCellProps","columnSizing_unstable","focusMode","focusableGroupAttr","tabBehavior","onClick","e","as","tabIndex"],"mappings":"AAAA;;;;;+BAqBaO;;;;;;8BAlBqB,0BAA0B;gCAC3B,4BAA4B;oCAEjB,2CAAwC;iCACxC,oCAAiC;iCAC1C,oCAAiC;8BACpC,iCAA8B;kCAC7B,kCAA+B;AAWzD,uCAAuC,CAC5CC,OACAC;IAEA,MAAMC,eAAWN,mCAAAA;IACjB,MAAM,EAAEO,UAAUC,YAAY,EAAE,OAAGP,6BAAAA;IACnC,MAAMQ,uBAAmBV,4CAAAA,EAA4BW,CAAAA,MAAOA,IAAIC,IAAI,CAACF,gBAAgB;IAErF,MAAMF,eAAWR,4CAAAA,EAA4BW,CAAAA;QAC3C,MAAME,iBAAiB,CAAC,CAACF,IAAIG,OAAO,CAACC,IAAI,CAACC,CAAAA,IAAKA,EAAET,QAAQ,KAAKA,YAAYJ,sCAAAA,EAAiBa;QAC3F,IAAI,CAACP,cAAc;YACjB,+DAA+D;YAC/D,OAAO;QACT;QAEA,OAAOI;IACT;IAEA,MAAMI,oBAAgBjB,4CAAAA,EAA4BW,CAAAA,MAChDH,WAAWG,IAAIC,IAAI,CAACM,gBAAgB,CAACX,YAAYY;IAEnD,MAAMC,uBAAmBpB,4CAAAA,EAA4BW,CAAAA,MAAOA,IAAIS,gBAAgB;IAChF,MAAMC,8BAA0BrB,4CAAAA,EAA4BW,CAAAA;QAC1D,OAAOA,IAAIW,qBAAqB,CAACD,uBAAuB;IAC1D;IAEA,MAAM,EAAEE,YAAYf,WAAW,SAAS,MAAM,EAAE,GAAGH;IACnD,MAAMmB,yBAAqB3B,+BAAAA,EAAkB;QAAE4B,aAAa;IAAqB;IAEjF,2FAA2F;IAC3F,MAAMC,cAAU5B,gCAAAA,EAAiB,CAAC6B;YAIhCtB;QAHA,IAAIG,UAAU;YACZE,iBAAiBiB,GAAGpB;QACtB;SACAF,iBAAAA,MAAMqB,OAAAA,AAAO,MAAA,QAAbrB,mBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,eAAAA,IAAAA,CAAAA,OAAgBsB;IAClB;IAEA,WAAO5B,+CAAAA,EACL;QACES;QACAS;QACAW,IAAI;QACJC,UAAUN,cAAc,SAAS,IAAIJ;QACrC,GAAII,cAAc,WAAWC,kBAAkB;QAC/C,GAAIJ,mBAAmBC,wBAAwBd,YAAY,CAAC,CAAC;QAC7D,GAAGF,KAAK;QACRqB;IACF,GACApB;AAEJ,EAAE"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- dataGridHeaderCellClassNames: function() {
13
+ get dataGridHeaderCellClassNames () {
14
14
  return dataGridHeaderCellClassNames;
15
15
  },
16
- useDataGridHeaderCellStyles_unstable: function() {
16
+ get useDataGridHeaderCellStyles_unstable () {
17
17
  return useDataGridHeaderCellStyles_unstable;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["useDataGridHeaderCellStyles.styles.js"],"sourcesContent":["'use client';\nimport { mergeClasses } from \"@griffel/react\";\nimport { useTableHeaderCellStyles_unstable } from \"../TableHeaderCell/useTableHeaderCellStyles.styles.js\";\nexport const dataGridHeaderCellClassNames = {\n root: 'fui-DataGridHeaderCell',\n button: 'fui-DataGridHeaderCell__button',\n sortIcon: 'fui-DataGridHeaderCell__sortIcon',\n aside: 'fui-DataGridHeaderCell__aside'\n};\n/**\n * Apply styling to the DataGridHeaderCell slots based on the state\n */ export const useDataGridHeaderCellStyles_unstable = (state)=>{\n useTableHeaderCellStyles_unstable(state);\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(dataGridHeaderCellClassNames.root, state.root.className);\n if (state.button) {\n // eslint-disable-next-line react-hooks/immutability\n state.button.className = mergeClasses(dataGridHeaderCellClassNames.button, state.button.className);\n }\n if (state.sortIcon) {\n // eslint-disable-next-line react-hooks/immutability\n state.sortIcon.className = mergeClasses(dataGridHeaderCellClassNames.sortIcon, state.sortIcon.className);\n }\n if (state.aside) {\n // eslint-disable-next-line react-hooks/immutability\n state.aside.className = mergeClasses(dataGridHeaderCellClassNames.aside, state.aside.className);\n }\n return state;\n};\n"],"names":["mergeClasses","useTableHeaderCellStyles_unstable","dataGridHeaderCellClassNames","root","button","sortIcon","aside","useDataGridHeaderCellStyles_unstable","state","className"],"mappings":"AAAA,YAAY;;;;;;;;;;;;IAGCE,4BAA4B;;;IAQxBK,oCAAoC;;;;uBAVxB,gBAAgB;gDACK,uDAAuD;AAClG,qCAAqC;IACxCJ,IAAI,EAAE,wBAAwB;IAC9BC,MAAM,EAAE,gCAAgC;IACxCC,QAAQ,EAAE,kCAAkC;IAC5CC,KAAK,EAAE;AACX,CAAC;AAGU,8CAA8CE,KAAK,IAAG;QAC7DP,iEAAiC,EAACO,KAAK,CAAC;IACxC,oDAAA;IACAA,KAAK,CAACL,IAAI,CAACM,SAAS,GAAGT,uBAAY,EAACE,4BAA4B,CAACC,IAAI,EAAEK,KAAK,CAACL,IAAI,CAACM,SAAS,CAAC;IAC5F,IAAID,KAAK,CAACJ,MAAM,EAAE;QACd,oDAAA;QACAI,KAAK,CAACJ,MAAM,CAACK,SAAS,OAAGT,mBAAY,EAACE,4BAA4B,CAACE,MAAM,EAAEI,KAAK,CAACJ,MAAM,CAACK,SAAS,CAAC;IACtG;IACA,IAAID,KAAK,CAACH,QAAQ,EAAE;QAChB,oDAAA;QACAG,KAAK,CAACH,QAAQ,CAACI,SAAS,OAAGT,mBAAY,EAACE,4BAA4B,CAACG,QAAQ,EAAEG,KAAK,CAACH,QAAQ,CAACI,SAAS,CAAC;IAC5G;IACA,IAAID,KAAK,CAACF,KAAK,EAAE;QACb,oDAAA;QACAE,KAAK,CAACF,KAAK,CAACG,SAAS,OAAGT,mBAAY,EAACE,4BAA4B,CAACI,KAAK,EAAEE,KAAK,CAACF,KAAK,CAACG,SAAS,CAAC;IACnG;IACA,OAAOD,KAAK;AAChB,CAAC"}
1
+ {"version":3,"sources":["useDataGridHeaderCellStyles.styles.js"],"sourcesContent":["'use client';\nimport { mergeClasses } from \"@griffel/react\";\nimport { useTableHeaderCellStyles_unstable } from \"../TableHeaderCell/useTableHeaderCellStyles.styles.js\";\nexport const dataGridHeaderCellClassNames = {\n root: 'fui-DataGridHeaderCell',\n button: 'fui-DataGridHeaderCell__button',\n sortIcon: 'fui-DataGridHeaderCell__sortIcon',\n aside: 'fui-DataGridHeaderCell__aside'\n};\n/**\n * Apply styling to the DataGridHeaderCell slots based on the state\n */ export const useDataGridHeaderCellStyles_unstable = (state)=>{\n useTableHeaderCellStyles_unstable(state);\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(dataGridHeaderCellClassNames.root, state.root.className);\n if (state.button) {\n // eslint-disable-next-line react-hooks/immutability\n state.button.className = mergeClasses(dataGridHeaderCellClassNames.button, state.button.className);\n }\n if (state.sortIcon) {\n // eslint-disable-next-line react-hooks/immutability\n state.sortIcon.className = mergeClasses(dataGridHeaderCellClassNames.sortIcon, state.sortIcon.className);\n }\n if (state.aside) {\n // eslint-disable-next-line react-hooks/immutability\n state.aside.className = mergeClasses(dataGridHeaderCellClassNames.aside, state.aside.className);\n }\n return state;\n};\n"],"names":["mergeClasses","useTableHeaderCellStyles_unstable","dataGridHeaderCellClassNames","root","button","sortIcon","aside","useDataGridHeaderCellStyles_unstable","state","className"],"mappings":"AAAA,YAAY;;;;;;;;;;;;QAGCE,4BAA4B;;;;eAQxBK,oCAAoC;;;uBAVxB,gBAAgB;gDACK,uDAAuD;AAClG,qCAAqC;IACxCJ,IAAI,EAAE,wBAAwB;IAC9BC,MAAM,EAAE,gCAAgC;IACxCC,QAAQ,EAAE,kCAAkC;IAC5CC,KAAK,EAAE;AACX,CAAC;AAGU,8CAA8CE,KAAK,IAAG;QAC7DP,iEAAiC,EAACO,KAAK,CAAC;IACxC,oDAAA;IACAA,KAAK,CAACL,IAAI,CAACM,SAAS,OAAGT,mBAAY,EAACE,4BAA4B,CAACC,IAAI,EAAEK,KAAK,CAACL,IAAI,CAACM,SAAS,CAAC;IAC5F,IAAID,KAAK,CAACJ,MAAM,EAAE;QACd,oDAAA;QACAI,KAAK,CAACJ,MAAM,CAACK,SAAS,OAAGT,mBAAY,EAACE,4BAA4B,CAACE,MAAM,EAAEI,KAAK,CAACJ,MAAM,CAACK,SAAS,CAAC;IACtG;IACA,IAAID,KAAK,CAACH,QAAQ,EAAE;QAChB,oDAAA;QACAG,KAAK,CAACH,QAAQ,CAACI,SAAS,OAAGT,mBAAY,EAACE,4BAA4B,CAACG,QAAQ,EAAEG,KAAK,CAACH,QAAQ,CAACI,SAAS,CAAC;IAC5G;IACA,IAAID,KAAK,CAACF,KAAK,EAAE;QACb,oDAAA;QACAE,KAAK,CAACF,KAAK,CAACG,SAAS,OAAGT,mBAAY,EAACE,4BAA4B,CAACI,KAAK,EAAEE,KAAK,CAACF,KAAK,CAACG,SAAS,CAAC;IACnG;IACA,OAAOD,KAAK;AAChB,CAAC"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- dataGridHeaderCellClassNames: function() {
13
+ get dataGridHeaderCellClassNames () {
14
14
  return dataGridHeaderCellClassNames;
15
15
  },
16
- useDataGridHeaderCellStyles_unstable: function() {
16
+ get useDataGridHeaderCellStyles_unstable () {
17
17
  return useDataGridHeaderCellStyles_unstable;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { mergeClasses } from '@griffel/react';\nimport type { DataGridHeaderCellSlots, DataGridHeaderCellState } from './DataGridHeaderCell.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableHeaderCellStyles_unstable } from '../TableHeaderCell/useTableHeaderCellStyles.styles';\n\nexport const dataGridHeaderCellClassNames: SlotClassNames<DataGridHeaderCellSlots> = {\n root: 'fui-DataGridHeaderCell',\n button: 'fui-DataGridHeaderCell__button',\n sortIcon: 'fui-DataGridHeaderCell__sortIcon',\n aside: 'fui-DataGridHeaderCell__aside',\n};\n\n/**\n * Apply styling to the DataGridHeaderCell slots based on the state\n */\nexport const useDataGridHeaderCellStyles_unstable = (state: DataGridHeaderCellState): DataGridHeaderCellState => {\n useTableHeaderCellStyles_unstable(state);\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(dataGridHeaderCellClassNames.root, state.root.className);\n\n if (state.button) {\n // eslint-disable-next-line react-hooks/immutability\n state.button.className = mergeClasses(dataGridHeaderCellClassNames.button, state.button.className);\n }\n\n if (state.sortIcon) {\n // eslint-disable-next-line react-hooks/immutability\n state.sortIcon.className = mergeClasses(dataGridHeaderCellClassNames.sortIcon, state.sortIcon.className);\n }\n\n if (state.aside) {\n // eslint-disable-next-line react-hooks/immutability\n state.aside.className = mergeClasses(dataGridHeaderCellClassNames.aside, state.aside.className);\n }\n\n return state;\n};\n"],"names":["mergeClasses","useTableHeaderCellStyles_unstable","dataGridHeaderCellClassNames","root","button","sortIcon","aside","useDataGridHeaderCellStyles_unstable","state","className"],"mappings":"AAAA;;;;;;;;;;;;IAOaE,4BAAAA;;;IAUAK,oCAAAA;;;;uBAfgB,iBAAiB;gDAGI,wDAAqD;AAEhG,qCAA8E;IACnFJ,MAAM;IACNC,QAAQ;IACRC,UAAU;IACVC,OAAO;AACT,EAAE;AAKK,6CAA6C,CAACE;QACnDP,iEAAAA,EAAkCO;IAClC,oDAAoD;IACpDA,MAAML,IAAI,CAACM,SAAS,GAAGT,uBAAAA,EAAaE,6BAA6BC,IAAI,EAAEK,MAAML,IAAI,CAACM,SAAS;IAE3F,IAAID,MAAMJ,MAAM,EAAE;QAChB,oDAAoD;QACpDI,MAAMJ,MAAM,CAACK,SAAS,OAAGT,mBAAAA,EAAaE,6BAA6BE,MAAM,EAAEI,MAAMJ,MAAM,CAACK,SAAS;IACnG;IAEA,IAAID,MAAMH,QAAQ,EAAE;QAClB,oDAAoD;QACpDG,MAAMH,QAAQ,CAACI,SAAS,OAAGT,mBAAAA,EAAaE,6BAA6BG,QAAQ,EAAEG,MAAMH,QAAQ,CAACI,SAAS;IACzG;IAEA,IAAID,MAAMF,KAAK,EAAE;QACf,oDAAoD;QACpDE,MAAMF,KAAK,CAACG,SAAS,OAAGT,mBAAAA,EAAaE,6BAA6BI,KAAK,EAAEE,MAAMF,KAAK,CAACG,SAAS;IAChG;IAEA,OAAOD;AACT,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { mergeClasses } from '@griffel/react';\nimport type { DataGridHeaderCellSlots, DataGridHeaderCellState } from './DataGridHeaderCell.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableHeaderCellStyles_unstable } from '../TableHeaderCell/useTableHeaderCellStyles.styles';\n\nexport const dataGridHeaderCellClassNames: SlotClassNames<DataGridHeaderCellSlots> = {\n root: 'fui-DataGridHeaderCell',\n button: 'fui-DataGridHeaderCell__button',\n sortIcon: 'fui-DataGridHeaderCell__sortIcon',\n aside: 'fui-DataGridHeaderCell__aside',\n};\n\n/**\n * Apply styling to the DataGridHeaderCell slots based on the state\n */\nexport const useDataGridHeaderCellStyles_unstable = (state: DataGridHeaderCellState): DataGridHeaderCellState => {\n useTableHeaderCellStyles_unstable(state);\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(dataGridHeaderCellClassNames.root, state.root.className);\n\n if (state.button) {\n // eslint-disable-next-line react-hooks/immutability\n state.button.className = mergeClasses(dataGridHeaderCellClassNames.button, state.button.className);\n }\n\n if (state.sortIcon) {\n // eslint-disable-next-line react-hooks/immutability\n state.sortIcon.className = mergeClasses(dataGridHeaderCellClassNames.sortIcon, state.sortIcon.className);\n }\n\n if (state.aside) {\n // eslint-disable-next-line react-hooks/immutability\n state.aside.className = mergeClasses(dataGridHeaderCellClassNames.aside, state.aside.className);\n }\n\n return state;\n};\n"],"names":["mergeClasses","useTableHeaderCellStyles_unstable","dataGridHeaderCellClassNames","root","button","sortIcon","aside","useDataGridHeaderCellStyles_unstable","state","className"],"mappings":"AAAA;;;;;;;;;;;;QAOaE;;;;eAUAK;;;uBAfgB,iBAAiB;gDAGI,wDAAqD;AAEhG,qCAA8E;IACnFJ,MAAM;IACNC,QAAQ;IACRC,UAAU;IACVC,OAAO;AACT,EAAE;AAKK,6CAA6C,CAACE;QACnDP,iEAAAA,EAAkCO;IAClC,oDAAoD;IACpDA,MAAML,IAAI,CAACM,SAAS,OAAGT,mBAAAA,EAAaE,6BAA6BC,IAAI,EAAEK,MAAML,IAAI,CAACM,SAAS;IAE3F,IAAID,MAAMJ,MAAM,EAAE;QAChB,oDAAoD;QACpDI,MAAMJ,MAAM,CAACK,SAAS,OAAGT,mBAAAA,EAAaE,6BAA6BE,MAAM,EAAEI,MAAMJ,MAAM,CAACK,SAAS;IACnG;IAEA,IAAID,MAAMH,QAAQ,EAAE;QAClB,oDAAoD;QACpDG,MAAMH,QAAQ,CAACI,SAAS,OAAGT,mBAAAA,EAAaE,6BAA6BG,QAAQ,EAAEG,MAAMH,QAAQ,CAACI,SAAS;IACzG;IAEA,IAAID,MAAMF,KAAK,EAAE;QACf,oDAAoD;QACpDE,MAAMF,KAAK,CAACG,SAAS,OAAGT,mBAAAA,EAAaE,6BAA6BI,KAAK,EAAEE,MAAMF,KAAK,CAACG,SAAS;IAChG;IAEA,OAAOD;AACT,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/DataGridRow/DataGridRow.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useDataGridRow_unstable } from './useDataGridRow';\nimport { renderDataGridRow_unstable } from './renderDataGridRow';\nimport { useDataGridRowStyles_unstable } from './useDataGridRowStyles.styles';\nimport type { DataGridRowProps } from './DataGridRow.types';\nimport type { ForwardRefComponent, JSXElement } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * DataGridRow component\n */\nexport const DataGridRow: ForwardRefComponent<DataGridRowProps> &\n (<TItem>(props: DataGridRowProps<TItem>) => JSXElement) = React.forwardRef<HTMLElement, DataGridRowProps>(\n (props, ref) => {\n const state = useDataGridRow_unstable(props, ref);\n\n useDataGridRowStyles_unstable(state);\n\n useCustomStyleHook_unstable('useDataGridRowStyles_unstable')(state);\n\n return renderDataGridRow_unstable(state);\n },\n) as ForwardRefComponent<DataGridRowProps> & (<TItem>(props: DataGridRowProps<TItem>) => JSXElement);\n\nDataGridRow.displayName = 'DataGridRow';\n"],"names":["React","useDataGridRow_unstable","renderDataGridRow_unstable","useDataGridRowStyles_unstable","useCustomStyleHook_unstable","DataGridRow","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;gCACS,sBAAmB;mCAChB,yBAAsB;4CACnB,mCAAgC;qCAGlC,kCAAkC;AAKvE,MAAMK,cAAAA,WAAAA,GAC+CL,OAAMM,UAAU,CAC1E,CAACC,OAAOC;IACN,MAAMC,YAAQR,uCAAAA,EAAwBM,OAAOC;QAE7CL,yDAAAA,EAA8BM;QAE9BL,gDAAAA,EAA4B,iCAAiCK;IAE7D,WAAOP,6CAAAA,EAA2BO;AACpC,GACmG;AAErGJ,YAAYK,WAAW,GAAG"}
1
+ {"version":3,"sources":["../../../src/components/DataGridRow/DataGridRow.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useDataGridRow_unstable } from './useDataGridRow';\nimport { renderDataGridRow_unstable } from './renderDataGridRow';\nimport { useDataGridRowStyles_unstable } from './useDataGridRowStyles.styles';\nimport type { DataGridRowProps } from './DataGridRow.types';\nimport type { ForwardRefComponent, JSXElement } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * DataGridRow component\n */\nexport const DataGridRow: ForwardRefComponent<DataGridRowProps> &\n (<TItem>(props: DataGridRowProps<TItem>) => JSXElement) = React.forwardRef<HTMLElement, DataGridRowProps>(\n (props, ref) => {\n const state = useDataGridRow_unstable(props, ref);\n\n useDataGridRowStyles_unstable(state);\n\n useCustomStyleHook_unstable('useDataGridRowStyles_unstable')(state);\n\n return renderDataGridRow_unstable(state);\n },\n) as ForwardRefComponent<DataGridRowProps> & (<TItem>(props: DataGridRowProps<TItem>) => JSXElement);\n\nDataGridRow.displayName = 'DataGridRow';\n"],"names":["React","useDataGridRow_unstable","renderDataGridRow_unstable","useDataGridRowStyles_unstable","useCustomStyleHook_unstable","DataGridRow","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;gCACS,sBAAmB;mCAChB,yBAAsB;4CACnB,mCAAgC;qCAGlC,kCAAkC;AAKvE,MAAMK,cAAAA,WAAAA,GAC+CL,OAAMM,UAAU,CAC1E,CAACC,OAAOC;IACN,MAAMC,YAAQR,uCAAAA,EAAwBM,OAAOC;QAE7CL,yDAAAA,EAA8BM;QAE9BL,gDAAAA,EAA4B,iCAAiCK;IAE7D,WAAOP,6CAAAA,EAA2BO;AACpC,GACmG;AAErGJ,YAAYK,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/DataGridRow/DataGridRow.types.ts"],"sourcesContent":["import type * as React from 'react';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { TableColumnDefinition } from '../../hooks';\nimport type { DataGridContextValue } from '../DataGrid/DataGrid.types';\nimport type { TableRowProps, TableRowSlots, TableRowState } from '../TableRow/TableRow.types';\nimport type { TableSelectionCell } from '../TableSelectionCell/TableSelectionCell';\n\nexport type DataGridRowSlots = TableRowSlots & {\n /**\n * When selection is enabled on the @see DataGrid, all rows\n * will render the selection cell.\n */\n selectionCell?: Slot<typeof TableSelectionCell>;\n};\n\nexport type CellRenderFunction<TItem = unknown> = (\n column: TableColumnDefinition<TItem>,\n dataGridContextValue: DataGridContextValue,\n) => React.ReactNode;\n\n/**\n * DataGridRow Props\n */\nexport type DataGridRowProps<TItem = unknown> = Omit<TableRowProps, 'children'> &\n Omit<ComponentProps<DataGridRowSlots>, 'children'> & {\n children: CellRenderFunction<TItem>;\n };\n\n/**\n * State used in rendering DataGridRow\n */\nexport type DataGridRowState = TableRowState &\n ComponentState<DataGridRowSlots> & {\n renderCell: CellRenderFunction;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n columnDefs: TableColumnDefinition<any>[];\n dataGridContextValue: DataGridContextValue;\n };\n"],"names":[],"mappings":"AA4BA;;CAEC,GACD,WAMI"}
1
+ {"version":3,"sources":["../../../src/components/DataGridRow/DataGridRow.types.ts"],"sourcesContent":["import type * as React from 'react';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { TableColumnDefinition } from '../../hooks';\nimport type { DataGridContextValue } from '../DataGrid/DataGrid.types';\nimport type { TableRowProps, TableRowSlots, TableRowState } from '../TableRow/TableRow.types';\nimport type { TableSelectionCell } from '../TableSelectionCell/TableSelectionCell';\n\nexport type DataGridRowSlots = TableRowSlots & {\n /**\n * When selection is enabled on the @see DataGrid, all rows\n * will render the selection cell.\n */\n selectionCell?: Slot<typeof TableSelectionCell>;\n};\n\nexport type CellRenderFunction<TItem = unknown> = (\n column: TableColumnDefinition<TItem>,\n dataGridContextValue: DataGridContextValue,\n) => React.ReactNode;\n\n/**\n * DataGridRow Props\n */\nexport type DataGridRowProps<TItem = unknown> = Omit<TableRowProps, 'children'> &\n Omit<ComponentProps<DataGridRowSlots>, 'children'> & {\n children: CellRenderFunction<TItem>;\n };\n\n/**\n * State used in rendering DataGridRow\n */\nexport type DataGridRowState = TableRowState &\n ComponentState<DataGridRowSlots> & {\n renderCell: CellRenderFunction;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n columnDefs: TableColumnDefinition<any>[];\n dataGridContextValue: DataGridContextValue;\n };\n"],"names":[],"mappings":"AA4BA;;CAEC,GACD,WAMI"}
@@ -5,23 +5,23 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- DataGridRow: function() {
12
+ get DataGridRow () {
13
13
  return _DataGridRow.DataGridRow;
14
14
  },
15
- dataGridRowClassNames: function() {
15
+ get dataGridRowClassNames () {
16
16
  return _useDataGridRowStylesstyles.dataGridRowClassNames;
17
17
  },
18
- renderDataGridRow_unstable: function() {
18
+ get renderDataGridRow_unstable () {
19
19
  return _renderDataGridRow.renderDataGridRow_unstable;
20
20
  },
21
- useDataGridRowStyles_unstable: function() {
21
+ get useDataGridRowStyles_unstable () {
22
22
  return _useDataGridRowStylesstyles.useDataGridRowStyles_unstable;
23
23
  },
24
- useDataGridRow_unstable: function() {
24
+ get useDataGridRow_unstable () {
25
25
  return _useDataGridRow.useDataGridRow_unstable;
26
26
  }
27
27
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/DataGridRow/index.ts"],"sourcesContent":["export { DataGridRow } from './DataGridRow';\nexport type { CellRenderFunction, DataGridRowProps, DataGridRowSlots, DataGridRowState } from './DataGridRow.types';\nexport { renderDataGridRow_unstable } from './renderDataGridRow';\nexport { useDataGridRow_unstable } from './useDataGridRow';\nexport { dataGridRowClassNames, useDataGridRowStyles_unstable } from './useDataGridRowStyles.styles';\n"],"names":["DataGridRow","renderDataGridRow_unstable","useDataGridRow_unstable","dataGridRowClassNames","useDataGridRowStyles_unstable"],"mappings":";;;;;;;;;;;;eAASA,wBAAW;;;eAIXG,iDAAqB;;;eAFrBF,6CAA0B;;;eAEHG,yDAA6B;;;eADpDF,uCAAuB;;;6BAHJ,mBAAgB;mCAED,yBAAsB;gCACzB,sBAAmB;4CACU,mCAAgC"}
1
+ {"version":3,"sources":["../../../src/components/DataGridRow/index.ts"],"sourcesContent":["export { DataGridRow } from './DataGridRow';\nexport type { CellRenderFunction, DataGridRowProps, DataGridRowSlots, DataGridRowState } from './DataGridRow.types';\nexport { renderDataGridRow_unstable } from './renderDataGridRow';\nexport { useDataGridRow_unstable } from './useDataGridRow';\nexport { dataGridRowClassNames, useDataGridRowStyles_unstable } from './useDataGridRowStyles.styles';\n"],"names":["DataGridRow","renderDataGridRow_unstable","useDataGridRow_unstable","dataGridRowClassNames","useDataGridRowStyles_unstable"],"mappings":";;;;;;;;;;;;eAASA,wBAAW;;;eAIXG,iDAAqB;;;eAFrBF,6CAA0B;;;eAEHG,yDAA6B;;;eADpDF,uCAAuB;;;6BAHJ,mBAAgB;mCAED,yBAAsB;gCACzB,sBAAmB;4CACU,mCAAgC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/DataGridRow/renderDataGridRow.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { DataGridRowState, DataGridRowSlots } from './DataGridRow.types';\nimport { ColumnIdContextProvider } from '../../contexts/columnIdContext';\n\n/**\n * Render the final JSX of DataGridRow\n */\nexport const renderDataGridRow_unstable = (state: DataGridRowState): JSXElement => {\n assertSlots<DataGridRowSlots>(state);\n\n return (\n <state.root>\n {state.selectionCell && <state.selectionCell />}\n {state.columnDefs.map(columnDef => (\n <ColumnIdContextProvider value={columnDef.columnId} key={columnDef.columnId}>\n {state.renderCell(columnDef, state.dataGridContextValue)}\n </ColumnIdContextProvider>\n ))}\n </state.root>\n );\n};\n"],"names":["assertSlots","ColumnIdContextProvider","renderDataGridRow_unstable","state","root","selectionCell","columnDefs","map","columnDef","value","columnId","renderCell","dataGridContextValue"],"mappings":";;;;+BAUaE;;;;;;4BATb,iCAAiD;gCACrB,4BAA4B;iCAGhB,oCAAiC;AAKlE,mCAAmC,CAACC;QACzCH,2BAAAA,EAA8BG;IAE9B,OAAA,WAAA,OACE,gBAAA,EAACA,MAAMC,IAAI,EAAA;;YACRD,MAAME,aAAa,IAAA,WAAA,OAAI,eAAA,EAACF,MAAME,aAAa,EAAA,CAAA;YAC3CF,MAAMG,UAAU,CAACC,GAAG,CAACC,CAAAA,YAAAA,WAAAA,OACpB,eAAA,EAACP,wCAAAA,EAAAA;oBAAwBQ,OAAOD,UAAUE,QAAQ;8BAC/CP,MAAMQ,UAAU,CAACH,WAAWL,MAAMS,oBAAoB;mBADAJ,UAAUE,QAAQ;;;AAMnF,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/DataGridRow/renderDataGridRow.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { DataGridRowState, DataGridRowSlots } from './DataGridRow.types';\nimport { ColumnIdContextProvider } from '../../contexts/columnIdContext';\n\n/**\n * Render the final JSX of DataGridRow\n */\nexport const renderDataGridRow_unstable = (state: DataGridRowState): JSXElement => {\n assertSlots<DataGridRowSlots>(state);\n\n return (\n <state.root>\n {state.selectionCell && <state.selectionCell />}\n {state.columnDefs.map(columnDef => (\n <ColumnIdContextProvider value={columnDef.columnId} key={columnDef.columnId}>\n {state.renderCell(columnDef, state.dataGridContextValue)}\n </ColumnIdContextProvider>\n ))}\n </state.root>\n );\n};\n"],"names":["assertSlots","ColumnIdContextProvider","renderDataGridRow_unstable","state","root","selectionCell","columnDefs","map","columnDef","value","columnId","renderCell","dataGridContextValue"],"mappings":";;;;+BAUaE;;;;;;;gCATb,gDAAiD,GACjD,SAASF,WAAW,QAAQ,4BAA4B;iCAGhB,oCAAiC;AAKlE,mCAAmC,CAACG;QACzCH,2BAAAA,EAA8BG;IAE9B,OAAA,WAAA,OACE,gBAAA,EAACA,MAAMC,IAAI,EAAA;;YACRD,MAAME,aAAa,IAAA,WAAA,OAAI,eAAA,EAACF,MAAME,aAAa,EAAA,CAAA;YAC3CF,MAAMG,UAAU,CAACC,GAAG,CAACC,CAAAA,YAAAA,WAAAA,OACpB,eAAA,EAACP,wCAAAA,EAAAA;oBAAwBQ,OAAOD,UAAUE,QAAQ;8BAC/CP,MAAMQ,UAAU,CAACH,WAAWL,MAAMS,oBAAoB;mBADAJ,UAAUE,QAAQ;;;AAMnF,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/DataGridRow/useDataGridRow.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { isInteractiveHTMLElement, useEventCallback, slot } from '@fluentui/react-utilities';\nimport { Space } from '@fluentui/keyboard-keys';\nimport type { DataGridRowProps, DataGridRowState } from './DataGridRow.types';\nimport { useTableRow_unstable } from '../TableRow/useTableRow';\nimport { dataGridContextDefaultValue, useDataGridContext_unstable } from '../../contexts/dataGridContext';\nimport { DataGridSelectionCell } from '../DataGridSelectionCell/DataGridSelectionCell';\nimport { useTableRowIdContext } from '../../contexts/rowIdContext';\nimport { useIsInTableHeader } from '../../contexts/tableHeaderContext';\n\n/**\n * Create the state required to render DataGridRow.\n *\n * The returned state can be modified with hooks such as useDataGridRowStyles_unstable,\n * before being passed to renderDataGridRow_unstable.\n *\n * @param props - props from this instance of DataGridRow\n * @param ref - reference to root HTMLElement of DataGridRow\n */\nexport const useDataGridRow_unstable = (props: DataGridRowProps, ref: React.Ref<HTMLElement>): DataGridRowState => {\n const rowId = useTableRowIdContext();\n const isHeader = useIsInTableHeader();\n const columnDefs = useDataGridContext_unstable(ctx => ctx.columns);\n const selectable = useDataGridContext_unstable(ctx => ctx.selectableRows);\n const selected = useDataGridContext_unstable(ctx => ctx.selection.isRowSelected(rowId));\n const focusMode = useDataGridContext_unstable(ctx => ctx.focusMode);\n const compositeRowTabsterAttribute = useDataGridContext_unstable(ctx => ctx.compositeRowTabsterAttribute);\n\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\n return 'none';\n });\n const toggleRow = useDataGridContext_unstable(ctx => ctx.selection.toggleRow);\n\n const onClick = useEventCallback((e: React.MouseEvent<HTMLTableRowElement>) => {\n if (selectable && !isHeader) {\n toggleRow(e, rowId);\n }\n\n props.onClick?.(e);\n });\n\n const onKeyDown = useEventCallback((e: React.KeyboardEvent<HTMLTableRowElement>) => {\n if (selectable && !isHeader && e.key === Space && !isInteractiveHTMLElement(e.target as HTMLElement)) {\n // stop scrolling\n e.preventDefault();\n toggleRow(e, rowId);\n }\n\n props.onKeyDown?.(e);\n });\n\n const baseState = useTableRow_unstable(\n {\n appearance,\n 'aria-selected': selectable ? selected : undefined,\n tabIndex: tabbable && !isHeader ? 0 : undefined,\n ...(focusMode === 'composite' && !isHeader && compositeRowTabsterAttribute),\n ...props,\n onClick,\n onKeyDown,\n children: null,\n as: 'div',\n },\n ref,\n );\n\n return {\n ...baseState,\n components: {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\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 // This context value should not be used internally\n // It's intended to help power user render functions\n dataGridContextValue: useStableDataGridContextValue(),\n };\n};\n\nfunction useStableDataGridContextValue() {\n const ref = React.useRef(dataGridContextDefaultValue);\n\n // Heads up!\n // We will not re-render when the context value changes, but we will have the latest value of the context when we do\n // render for other reasons.\n //\n // This relies on a context selector that always returns the same value:\n // - we will not re-render when the context value changes\n // - we will store the context value in a ref\n useDataGridContext_unstable(ctx => {\n ref.current = ctx;\n return null;\n });\n\n // eslint-disable-next-line react-hooks/refs\n return ref.current!;\n}\n"],"names":["React","isInteractiveHTMLElement","useEventCallback","slot","Space","useTableRow_unstable","dataGridContextDefaultValue","useDataGridContext_unstable","DataGridSelectionCell","useTableRowIdContext","useIsInTableHeader","useDataGridRow_unstable","props","ref","rowId","isHeader","columnDefs","ctx","columns","selectable","selectableRows","selected","selection","isRowSelected","focusMode","compositeRowTabsterAttribute","tabbable","appearance","selectionAppearance","toggleRow","onClick","e","onKeyDown","key","target","preventDefault","baseState","undefined","tabIndex","children","as","components","selectionCell","optional","renderByDefault","elementType","renderCell","dataGridContextValue","useStableDataGridContextValue","useRef","current"],"mappings":"AAAA;;;;;+BAqBaW;;;;;;;iEAnBU,QAAQ;gCACkC,4BAA4B;8BACvE,0BAA0B;6BAEX,6BAA0B;iCACU,oCAAiC;uCACpE,oDAAiD;8BAClD,iCAA8B;oCAChC,uCAAoC;AAWhE,gCAAgC,CAACC,OAAyBC;IAC/D,MAAMC,YAAQL,kCAAAA;IACd,MAAMM,eAAWL,sCAAAA;IACjB,MAAMM,iBAAaT,4CAAAA,EAA4BU,CAAAA,MAAOA,IAAIC,OAAO;IACjE,MAAMC,iBAAaZ,4CAAAA,EAA4BU,CAAAA,MAAOA,IAAIG,cAAc;IACxE,MAAMC,eAAWd,4CAAAA,EAA4BU,CAAAA,MAAOA,IAAIK,SAAS,CAACC,aAAa,CAACT;IAChF,MAAMU,gBAAYjB,4CAAAA,EAA4BU,CAAAA,MAAOA,IAAIO,SAAS;IAClE,MAAMC,mCAA+BlB,4CAAAA,EAA4BU,CAAAA,MAAOA,IAAIQ,4BAA4B;IAExG,MAAMC,WAAWF,cAAc,kBAAkBA,cAAc;IAC/D,MAAMG,iBAAapB,4CAAAA,EAA4BU,CAAAA;QAC7C,IAAI,CAACF,YAAYI,cAAcF,IAAIK,SAAS,CAACC,aAAa,CAACT,QAAQ;YACjE,OAAOG,IAAIW,mBAAmB;QAChC;QAEA,OAAO;IACT;IACA,MAAMC,gBAAYtB,4CAAAA,EAA4BU,CAAAA,MAAOA,IAAIK,SAAS,CAACO,SAAS;IAE5E,MAAMC,cAAU5B,gCAAAA,EAAiB,CAAC6B;YAKhCnB;QAJA,IAAIO,cAAc,CAACJ,UAAU;YAC3Bc,UAAUE,GAAGjB;QACf;SAEAF,iBAAAA,MAAMkB,OAAAA,AAAO,MAAA,QAAblB,mBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,eAAAA,IAAAA,CAAAA,OAAgBmB;IAClB;IAEA,MAAMC,gBAAY9B,gCAAAA,EAAiB,CAAC6B;YAOlCnB;QANA,IAAIO,cAAc,CAACJ,YAAYgB,EAAEE,GAAG,KAAK7B,mBAAAA,IAAS,KAACH,wCAAAA,EAAyB8B,EAAEG,MAAM,GAAkB;YACpG,iBAAiB;YACjBH,EAAEI,cAAc;YAChBN,UAAUE,GAAGjB;QACf;SAEAF,mBAAAA,MAAMoB,SAAAA,AAAS,MAAA,QAAfpB,qBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,iBAAAA,IAAAA,CAAAA,OAAkBmB;IACpB;IAEA,MAAMK,gBAAY/B,iCAAAA,EAChB;QACEsB;QACA,iBAAiBR,aAAaE,WAAWgB;QACzCC,UAAUZ,YAAY,CAACX,WAAW,IAAIsB;QACtC,GAAIb,cAAc,eAAe,CAACT,YAAYU,4BAA4B;QAC1E,GAAGb,KAAK;QACRkB;QACAE;QACAO,UAAU;QACVC,IAAI;IACN,GACA3B;IAGF,OAAO;QACL,GAAGuB,SAAS;QACZK,YAAY;YACV,4DAA4D;YAC5D,GAAGL,UAAUK,UAAU;YACvBC,eAAelC,4CAAAA;QACjB;QACAkC,eAAevC,oBAAAA,CAAKwC,QAAQ,CAAC/B,MAAM8B,aAAa,EAAE;YAChDE,iBAAiBzB;YACjB0B,aAAarC,4CAAAA;QACf;QACAsC,YAAYlC,MAAM2B,QAAQ;QAC1BvB;QACA,mDAAmD;QACnD,oDAAoD;QACpD+B,sBAAsBC;IACxB;AACF,EAAE;AAEF,SAASA;IACP,MAAMnC,MAAMb,OAAMiD,MAAM,CAAC3C,4CAAAA;IAEzB,YAAY;IACZ,oHAAoH;IACpH,4BAA4B;IAC5B,EAAE;IACF,wEAAwE;IACxE,yDAAyD;IACzD,6CAA6C;QAC7CC,4CAAAA,EAA4BU,CAAAA;QAC1BJ,IAAIqC,OAAO,GAAGjC;QACd,OAAO;IACT;IAEA,4CAA4C;IAC5C,OAAOJ,IAAIqC,OAAO;AACpB"}
1
+ {"version":3,"sources":["../../../src/components/DataGridRow/useDataGridRow.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { isInteractiveHTMLElement, useEventCallback, slot } from '@fluentui/react-utilities';\nimport { Space } from '@fluentui/keyboard-keys';\nimport type { DataGridRowProps, DataGridRowState } from './DataGridRow.types';\nimport { useTableRow_unstable } from '../TableRow/useTableRow';\nimport { dataGridContextDefaultValue, useDataGridContext_unstable } from '../../contexts/dataGridContext';\nimport { DataGridSelectionCell } from '../DataGridSelectionCell/DataGridSelectionCell';\nimport { useTableRowIdContext } from '../../contexts/rowIdContext';\nimport { useIsInTableHeader } from '../../contexts/tableHeaderContext';\n\n/**\n * Create the state required to render DataGridRow.\n *\n * The returned state can be modified with hooks such as useDataGridRowStyles_unstable,\n * before being passed to renderDataGridRow_unstable.\n *\n * @param props - props from this instance of DataGridRow\n * @param ref - reference to root HTMLElement of DataGridRow\n */\nexport const useDataGridRow_unstable = (props: DataGridRowProps, ref: React.Ref<HTMLElement>): DataGridRowState => {\n const rowId = useTableRowIdContext();\n const isHeader = useIsInTableHeader();\n const columnDefs = useDataGridContext_unstable(ctx => ctx.columns);\n const selectable = useDataGridContext_unstable(ctx => ctx.selectableRows);\n const selected = useDataGridContext_unstable(ctx => ctx.selection.isRowSelected(rowId));\n const focusMode = useDataGridContext_unstable(ctx => ctx.focusMode);\n const compositeRowTabsterAttribute = useDataGridContext_unstable(ctx => ctx.compositeRowTabsterAttribute);\n\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\n return 'none';\n });\n const toggleRow = useDataGridContext_unstable(ctx => ctx.selection.toggleRow);\n\n const onClick = useEventCallback((e: React.MouseEvent<HTMLTableRowElement>) => {\n if (selectable && !isHeader) {\n toggleRow(e, rowId);\n }\n\n props.onClick?.(e);\n });\n\n const onKeyDown = useEventCallback((e: React.KeyboardEvent<HTMLTableRowElement>) => {\n if (selectable && !isHeader && e.key === Space && !isInteractiveHTMLElement(e.target as HTMLElement)) {\n // stop scrolling\n e.preventDefault();\n toggleRow(e, rowId);\n }\n\n props.onKeyDown?.(e);\n });\n\n const baseState = useTableRow_unstable(\n {\n appearance,\n 'aria-selected': selectable ? selected : undefined,\n tabIndex: tabbable && !isHeader ? 0 : undefined,\n ...(focusMode === 'composite' && !isHeader && compositeRowTabsterAttribute),\n ...props,\n onClick,\n onKeyDown,\n children: null,\n as: 'div',\n },\n ref,\n );\n\n return {\n ...baseState,\n components: {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\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 // This context value should not be used internally\n // It's intended to help power user render functions\n dataGridContextValue: useStableDataGridContextValue(),\n };\n};\n\nfunction useStableDataGridContextValue() {\n const ref = React.useRef(dataGridContextDefaultValue);\n\n // Heads up!\n // We will not re-render when the context value changes, but we will have the latest value of the context when we do\n // render for other reasons.\n //\n // This relies on a context selector that always returns the same value:\n // - we will not re-render when the context value changes\n // - we will store the context value in a ref\n useDataGridContext_unstable(ctx => {\n ref.current = ctx;\n return null;\n });\n\n // eslint-disable-next-line react-hooks/refs\n return ref.current!;\n}\n"],"names":["React","isInteractiveHTMLElement","useEventCallback","slot","Space","useTableRow_unstable","dataGridContextDefaultValue","useDataGridContext_unstable","DataGridSelectionCell","useTableRowIdContext","useIsInTableHeader","useDataGridRow_unstable","props","ref","rowId","isHeader","columnDefs","ctx","columns","selectable","selectableRows","selected","selection","isRowSelected","focusMode","compositeRowTabsterAttribute","tabbable","appearance","selectionAppearance","toggleRow","onClick","e","onKeyDown","key","target","preventDefault","baseState","undefined","tabIndex","children","as","components","selectionCell","optional","renderByDefault","elementType","renderCell","dataGridContextValue","useStableDataGridContextValue","useRef","current"],"mappings":"AAAA;;;;;+BAqBaW;;;;;;;iEAnBU,QAAQ;gCACkC,4BAA4B;8BACvE,0BAA0B;6BAEX,6BAA0B;iCACU,oCAAiC;uCACpE,oDAAiD;8BAClD,iCAA8B;oCAChC,uCAAoC;AAWhE,gCAAgC,CAACC,OAAyBC;IAC/D,MAAMC,YAAQL,kCAAAA;IACd,MAAMM,eAAWL,sCAAAA;IACjB,MAAMM,iBAAaT,4CAAAA,EAA4BU,CAAAA,MAAOA,IAAIC,OAAO;IACjE,MAAMC,iBAAaZ,4CAAAA,EAA4BU,CAAAA,MAAOA,IAAIG,cAAc;IACxE,MAAMC,eAAWd,4CAAAA,EAA4BU,CAAAA,MAAOA,IAAIK,SAAS,CAACC,aAAa,CAACT;IAChF,MAAMU,gBAAYjB,4CAAAA,EAA4BU,CAAAA,MAAOA,IAAIO,SAAS;IAClE,MAAMC,mCAA+BlB,4CAAAA,EAA4BU,CAAAA,MAAOA,IAAIQ,4BAA4B;IAExG,MAAMC,WAAWF,cAAc,kBAAkBA,cAAc;IAC/D,MAAMG,iBAAapB,4CAAAA,EAA4BU,CAAAA;QAC7C,IAAI,CAACF,YAAYI,cAAcF,IAAIK,SAAS,CAACC,aAAa,CAACT,QAAQ;YACjE,OAAOG,IAAIW,mBAAmB;QAChC;QAEA,OAAO;IACT;IACA,MAAMC,gBAAYtB,4CAAAA,EAA4BU,CAAAA,MAAOA,IAAIK,SAAS,CAACO,SAAS;IAE5E,MAAMC,cAAU5B,gCAAAA,EAAiB,CAAC6B;YAKhCnB;QAJA,IAAIO,cAAc,CAACJ,UAAU;YAC3Bc,UAAUE,GAAGjB;QACf;SAEAF,iBAAAA,MAAMkB,OAAAA,AAAO,MAAA,QAAblB,mBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,eAAAA,IAAAA,CAAAA,OAAgBmB;IAClB;IAEA,MAAMC,gBAAY9B,gCAAAA,EAAiB,CAAC6B;YAOlCnB;QANA,IAAIO,cAAc,CAACJ,YAAYgB,EAAEE,GAAG,KAAK7B,mBAAAA,IAAS,KAACH,wCAAAA,EAAyB8B,EAAEG,MAAM,GAAkB;YACpG,iBAAiB;YACjBH,EAAEI,cAAc;YAChBN,UAAUE,GAAGjB;QACf;SAEAF,mBAAAA,MAAMoB,SAAAA,AAAS,MAAA,QAAfpB,qBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,iBAAAA,IAAAA,CAAAA,OAAkBmB;IACpB;IAEA,MAAMK,gBAAY/B,iCAAAA,EAChB;QACEsB;QACA,iBAAiBR,aAAaE,WAAWgB;QACzCC,UAAUZ,YAAY,CAACX,WAAW,IAAIsB;QACtC,GAAIb,cAAc,eAAe,CAACT,YAAYU,4BAA4B;QAC1E,GAAGb,KAAK;QACRkB;QACAE;QACAO,UAAU;QACVC,IAAI;IACN,GACA3B;IAGF,OAAO;QACL,GAAGuB,SAAS;QACZK,YAAY;YACV,4DAA4D;YAC5D,GAAGL,UAAUK,UAAU;YACvBC,eAAelC,4CAAAA;QACjB;QACAkC,eAAevC,oBAAAA,CAAKwC,QAAQ,CAAC/B,MAAM8B,aAAa,EAAE;YAChDE,iBAAiBzB;YACjB0B,aAAarC,4CAAAA;QACf;QACAsC,YAAYlC,MAAM2B,QAAQ;QAC1BvB;QACA,mDAAmD;QACnD,oDAAoD;QACpD+B,sBAAsBC;IACxB;AACF,EAAE;AAEF,SAASA;IACP,MAAMnC,MAAMb,OAAMiD,MAAM,CAAC3C,4CAAAA;IAEzB,YAAY;IACZ,oHAAoH;IACpH,4BAA4B;IAC5B,EAAE;IACF,wEAAwE;IACxE,yDAAyD;IACzD,6CAA6C;QAC7CC,4CAAAA,EAA4BU,CAAAA;QAC1BJ,IAAIqC,OAAO,GAAGjC;QACd,OAAO;IACT;IAEA,4CAA4C;IAC5C,OAAOJ,IAAIqC,OAAO;AACpB"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- dataGridRowClassNames: function() {
13
+ get dataGridRowClassNames () {
14
14
  return dataGridRowClassNames;
15
15
  },
16
- useDataGridRowStyles_unstable: function() {
16
+ get useDataGridRowStyles_unstable () {
17
17
  return useDataGridRowStyles_unstable;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["useDataGridRowStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from \"@griffel/react\";\nimport { createCustomFocusIndicatorStyle } from \"@fluentui/react-tabster\";\nimport { useTableRowStyles_unstable } from \"../TableRow/useTableRowStyles.styles.js\";\nimport { useDataGridContext_unstable } from \"../../contexts/dataGridContext.js\";\nimport { tableSelectionCellClassNames } from \"../TableSelectionCell/useTableSelectionCellStyles.styles.js\";\nexport const dataGridRowClassNames = {\n root: 'fui-DataGridRow',\n selectionCell: 'fui-DataGridRow__selectionCell'\n};\nconst useStyles = makeStyles({\n subtleSelection: {\n ...createCustomFocusIndicatorStyle({\n [`& .${tableSelectionCellClassNames.root}`]: {\n opacity: 1\n }\n }, {\n selector: 'focus-within'\n }),\n ':hover': {\n [`& .${tableSelectionCellClassNames.root}`]: {\n opacity: 1\n }\n }\n }\n});\n/**\n * Apply styling to the DataGridRow slots based on the state\n */ export const useDataGridRowStyles_unstable = (state)=>{\n const isSubtle = useDataGridContext_unstable((ctx)=>ctx.subtleSelection);\n const styles = useStyles();\n useTableRowStyles_unstable(state);\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(dataGridRowClassNames.root, state.root.className, isSubtle && styles.subtleSelection);\n if (state.selectionCell) {\n // eslint-disable-next-line react-hooks/immutability\n state.selectionCell.className = mergeClasses(dataGridRowClassNames.selectionCell, state.selectionCell.className);\n }\n return state;\n};\n"],"names":["__styles","mergeClasses","createCustomFocusIndicatorStyle","useTableRowStyles_unstable","useDataGridContext_unstable","tableSelectionCellClassNames","dataGridRowClassNames","root","selectionCell","useStyles","subtleSelection","Bconypa","ff6mpl","d","h","useDataGridRowStyles_unstable","state","isSubtle","ctx","styles","className"],"mappings":"AAAA,YAAY;;;;;;;;;;;;IAMCM,qBAAqB;;;iCAsBY;eAA7BS;;;uBA3BwB,gBAAgB;yCAEd,yCAAyC;iCACxC,mCAAmC;AAExE,8BAA8B;IACjCR,IAAI,EAAE,iBAAiB;IACvBC,aAAa,EAAE;AACnB,CAAC;AACD,MAAMC,SAAS,GAAA,WAAA,OAAGT,eAAA,EAAA;IAAAU,eAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;IAAA;AAAA,GAAA;IAAAC,CAAA,EAAA;QAAA;KAAA;IAAAC,CAAA,EAAA;QAAA;KAAA;AAAA,CAejB,CAAC;AAGS,uCAAuCE,KAAK,IAAG;IACtD,MAAMC,QAAQ,OAAGb,4CAA2B,GAAEc,GAAG,GAAGA,GAAG,CAACR,eAAe,CAAC;IACxE,MAAMS,MAAM,GAAGV,SAAS,CAAC,CAAC;IAC1BN,uDAA0B,EAACa,KAAK,CAAC;IACjC,oDAAA;IACAA,KAAK,CAACT,IAAI,CAACa,SAAS,OAAGnB,mBAAY,EAACK,qBAAqB,CAACC,IAAI,EAAES,KAAK,CAACT,IAAI,CAACa,SAAS,EAAEH,QAAQ,IAAIE,MAAM,CAACT,eAAe,CAAC;IACzH,IAAIM,KAAK,CAACR,aAAa,EAAE;QACrB,oDAAA;QACAQ,KAAK,CAACR,aAAa,CAACY,SAAS,OAAGnB,mBAAY,EAACK,qBAAqB,CAACE,aAAa,EAAEQ,KAAK,CAACR,aAAa,CAACY,SAAS,CAAC;IACpH;IACA,OAAOJ,KAAK;AAChB,CAAC"}
1
+ {"version":3,"sources":["useDataGridRowStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from \"@griffel/react\";\nimport { createCustomFocusIndicatorStyle } from \"@fluentui/react-tabster\";\nimport { useTableRowStyles_unstable } from \"../TableRow/useTableRowStyles.styles.js\";\nimport { useDataGridContext_unstable } from \"../../contexts/dataGridContext.js\";\nimport { tableSelectionCellClassNames } from \"../TableSelectionCell/useTableSelectionCellStyles.styles.js\";\nexport const dataGridRowClassNames = {\n root: 'fui-DataGridRow',\n selectionCell: 'fui-DataGridRow__selectionCell'\n};\nconst useStyles = makeStyles({\n subtleSelection: {\n ...createCustomFocusIndicatorStyle({\n [`& .${tableSelectionCellClassNames.root}`]: {\n opacity: 1\n }\n }, {\n selector: 'focus-within'\n }),\n ':hover': {\n [`& .${tableSelectionCellClassNames.root}`]: {\n opacity: 1\n }\n }\n }\n});\n/**\n * Apply styling to the DataGridRow slots based on the state\n */ export const useDataGridRowStyles_unstable = (state)=>{\n const isSubtle = useDataGridContext_unstable((ctx)=>ctx.subtleSelection);\n const styles = useStyles();\n useTableRowStyles_unstable(state);\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(dataGridRowClassNames.root, state.root.className, isSubtle && styles.subtleSelection);\n if (state.selectionCell) {\n // eslint-disable-next-line react-hooks/immutability\n state.selectionCell.className = mergeClasses(dataGridRowClassNames.selectionCell, state.selectionCell.className);\n }\n return state;\n};\n"],"names":["__styles","mergeClasses","createCustomFocusIndicatorStyle","useTableRowStyles_unstable","useDataGridContext_unstable","tableSelectionCellClassNames","dataGridRowClassNames","root","selectionCell","useStyles","subtleSelection","Bconypa","ff6mpl","d","h","useDataGridRowStyles_unstable","state","isSubtle","ctx","styles","className"],"mappings":"AAAA,YAAY;;;;;;;;;;;;QAMCM,qBAAqB;;;;eAsBjBS,6BAA6B;;;uBA3BL,gBAAgB;yCAEd,yCAAyC;iCACxC,mCAAmC;AAExE,8BAA8B;IACjCR,IAAI,EAAE,iBAAiB;IACvBC,aAAa,EAAE;AACnB,CAAC;AACD,MAAMC,SAAS,GAAA,WAAA,OAAGT,eAAA,EAAA;IAAAU,eAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;IAAA;AAAA,GAAA;IAAAC,CAAA,EAAA;QAAA;KAAA;IAAAC,CAAA,EAAA;QAAA;KAAA;AAAA,CAejB,CAAC;AAGS,uCAAuCE,KAAK,IAAG;IACtD,MAAMC,QAAQ,OAAGb,4CAA2B,GAAEc,GAAG,GAAGA,GAAG,CAACR,eAAe,CAAC;IACxE,MAAMS,MAAM,GAAGV,SAAS,CAAC,CAAC;IAC1BN,uDAA0B,EAACa,KAAK,CAAC;IACjC,oDAAA;IACAA,KAAK,CAACT,IAAI,CAACa,SAAS,OAAGnB,mBAAY,EAACK,qBAAqB,CAACC,IAAI,EAAES,KAAK,CAACT,IAAI,CAACa,SAAS,EAAEH,QAAQ,IAAIE,MAAM,CAACT,eAAe,CAAC;IACzH,IAAIM,KAAK,CAACR,aAAa,EAAE;QACrB,oDAAA;QACAQ,KAAK,CAACR,aAAa,CAACY,SAAS,OAAGnB,mBAAY,EAACK,qBAAqB,CAACE,aAAa,EAAEQ,KAAK,CAACR,aAAa,CAACY,SAAS,CAAC;IACpH;IACA,OAAOJ,KAAK;AAChB,CAAC"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- dataGridRowClassNames: function() {
13
+ get dataGridRowClassNames () {
14
14
  return dataGridRowClassNames;
15
15
  },
16
- useDataGridRowStyles_unstable: function() {
16
+ get useDataGridRowStyles_unstable () {
17
17
  return useDataGridRowStyles_unstable;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/DataGridRow/useDataGridRowStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';\nimport type { DataGridRowSlots, DataGridRowState } from './DataGridRow.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableRowStyles_unstable } from '../TableRow/useTableRowStyles.styles';\nimport { useDataGridContext_unstable } from '../../contexts/dataGridContext';\nimport { tableSelectionCellClassNames } from '../TableSelectionCell/useTableSelectionCellStyles.styles';\n\nexport const dataGridRowClassNames: SlotClassNames<DataGridRowSlots> = {\n root: 'fui-DataGridRow',\n selectionCell: 'fui-DataGridRow__selectionCell',\n};\n\nconst useStyles = makeStyles({\n subtleSelection: {\n ...createCustomFocusIndicatorStyle(\n {\n [`& .${tableSelectionCellClassNames.root}`]: {\n opacity: 1,\n },\n },\n { selector: 'focus-within' },\n ),\n\n ':hover': {\n [`& .${tableSelectionCellClassNames.root}`]: {\n opacity: 1,\n },\n },\n },\n});\n\n/**\n * Apply styling to the DataGridRow slots based on the state\n */\nexport const useDataGridRowStyles_unstable = (state: DataGridRowState): DataGridRowState => {\n const isSubtle = useDataGridContext_unstable(ctx => ctx.subtleSelection);\n const styles = useStyles();\n\n useTableRowStyles_unstable(state);\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(\n dataGridRowClassNames.root,\n state.root.className,\n isSubtle && styles.subtleSelection,\n );\n if (state.selectionCell) {\n // eslint-disable-next-line react-hooks/immutability\n state.selectionCell.className = mergeClasses(dataGridRowClassNames.selectionCell, state.selectionCell.className);\n }\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","createCustomFocusIndicatorStyle","useTableRowStyles_unstable","useDataGridContext_unstable","tableSelectionCellClassNames","dataGridRowClassNames","root","selectionCell","useStyles","subtleSelection","opacity","selector","useDataGridRowStyles_unstable","state","isSubtle","ctx","styles","className"],"mappings":"AAAA;;;;;;;;;;;;IAUaM,qBAAAA;;;iCA2BAO;eAAAA;;;uBAnC4B,iBAAiB;8BACV,0BAA0B;yCAG/B,0CAAuC;iCACtC,oCAAiC;mDAChC,8DAA2D;AAEjG,8BAAgE;IACrEN,MAAM;IACNC,eAAe;AACjB,EAAE;AAEF,MAAMC,gBAAYT,iBAAAA,EAAW;IAC3BU,iBAAiB;QACf,OAAGR,6CAAAA,EACD;YACE,CAAC,CAAC,GAAG,EAAEG,+DAAAA,CAA6BE,IAAI,EAAE,CAAC,EAAE;gBAC3CI,SAAS;YACX;QACF,GACA;YAAEC,UAAU;QAAe,EAC5B;QAED,UAAU;YACR,CAAC,CAAC,GAAG,EAAEP,+DAAAA,CAA6BE,IAAI,EAAE,CAAC,EAAE;gBAC3CI,SAAS;YACX;QACF;IACF;AACF;AAKO,sCAAsC,CAACG;IAC5C,MAAMC,WAAWX,gDAAAA,EAA4BY,CAAAA,MAAOA,IAAIN,eAAe;IACvE,MAAMO,SAASR;QAEfN,mDAAAA,EAA2BW;IAC3B,oDAAoD;IACpDA,MAAMP,IAAI,CAACW,SAAS,OAAGjB,mBAAAA,EACrBK,sBAAsBC,IAAI,EAC1BO,MAAMP,IAAI,CAACW,SAAS,EACpBH,YAAYE,OAAOP,eAAe;IAEpC,IAAII,MAAMN,aAAa,EAAE;QACvB,oDAAoD;QACpDM,MAAMN,aAAa,CAACU,SAAS,OAAGjB,mBAAAA,EAAaK,sBAAsBE,aAAa,EAAEM,MAAMN,aAAa,CAACU,SAAS;IACjH;IAEA,OAAOJ;AACT,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/DataGridRow/useDataGridRowStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';\nimport type { DataGridRowSlots, DataGridRowState } from './DataGridRow.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableRowStyles_unstable } from '../TableRow/useTableRowStyles.styles';\nimport { useDataGridContext_unstable } from '../../contexts/dataGridContext';\nimport { tableSelectionCellClassNames } from '../TableSelectionCell/useTableSelectionCellStyles.styles';\n\nexport const dataGridRowClassNames: SlotClassNames<DataGridRowSlots> = {\n root: 'fui-DataGridRow',\n selectionCell: 'fui-DataGridRow__selectionCell',\n};\n\nconst useStyles = makeStyles({\n subtleSelection: {\n ...createCustomFocusIndicatorStyle(\n {\n [`& .${tableSelectionCellClassNames.root}`]: {\n opacity: 1,\n },\n },\n { selector: 'focus-within' },\n ),\n\n ':hover': {\n [`& .${tableSelectionCellClassNames.root}`]: {\n opacity: 1,\n },\n },\n },\n});\n\n/**\n * Apply styling to the DataGridRow slots based on the state\n */\nexport const useDataGridRowStyles_unstable = (state: DataGridRowState): DataGridRowState => {\n const isSubtle = useDataGridContext_unstable(ctx => ctx.subtleSelection);\n const styles = useStyles();\n\n useTableRowStyles_unstable(state);\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(\n dataGridRowClassNames.root,\n state.root.className,\n isSubtle && styles.subtleSelection,\n );\n if (state.selectionCell) {\n // eslint-disable-next-line react-hooks/immutability\n state.selectionCell.className = mergeClasses(dataGridRowClassNames.selectionCell, state.selectionCell.className);\n }\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","createCustomFocusIndicatorStyle","useTableRowStyles_unstable","useDataGridContext_unstable","tableSelectionCellClassNames","dataGridRowClassNames","root","selectionCell","useStyles","subtleSelection","opacity","selector","useDataGridRowStyles_unstable","state","isSubtle","ctx","styles","className"],"mappings":"AAAA;;;;;;;;;;;;QAUaM;;;;eA2BAO;;;uBAnC4B,iBAAiB;8BACV,0BAA0B;yCAG/B,0CAAuC;iCACtC,oCAAiC;mDAChC,8DAA2D;AAEjG,8BAAgE;IACrEN,MAAM;IACNC,eAAe;AACjB,EAAE;AAEF,MAAMC,gBAAYT,iBAAAA,EAAW;IAC3BU,iBAAiB;QACf,OAAGR,6CAAAA,EACD;YACE,CAAC,CAAC,GAAG,EAAEG,+DAAAA,CAA6BE,IAAI,EAAE,CAAC,EAAE;gBAC3CI,SAAS;YACX;QACF,GACA;YAAEC,UAAU;QAAe,EAC5B;QAED,UAAU;YACR,CAAC,CAAC,GAAG,EAAEP,+DAAAA,CAA6BE,IAAI,EAAE,CAAC,EAAE;gBAC3CI,SAAS;YACX;QACF;IACF;AACF;AAKO,sCAAsC,CAACG;IAC5C,MAAMC,eAAWX,4CAAAA,EAA4BY,CAAAA,MAAOA,IAAIN,eAAe;IACvE,MAAMO,SAASR;QAEfN,mDAAAA,EAA2BW;IAC3B,oDAAoD;IACpDA,MAAMP,IAAI,CAACW,SAAS,OAAGjB,mBAAAA,EACrBK,sBAAsBC,IAAI,EAC1BO,MAAMP,IAAI,CAACW,SAAS,EACpBH,YAAYE,OAAOP,eAAe;IAEpC,IAAII,MAAMN,aAAa,EAAE;QACvB,oDAAoD;QACpDM,MAAMN,aAAa,CAACU,SAAS,OAAGjB,mBAAAA,EAAaK,sBAAsBE,aAAa,EAAEM,MAAMN,aAAa,CAACU,SAAS;IACjH;IAEA,OAAOJ;AACT,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/DataGridSelectionCell/DataGridSelectionCell.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useDataGridSelectionCell_unstable } from './useDataGridSelectionCell';\nimport { renderDataGridSelectionCell_unstable } from './renderDataGridSelectionCell';\nimport { useDataGridSelectionCellStyles_unstable } from './useDataGridSelectionCellStyles.styles';\nimport type { DataGridSelectionCellProps } from './DataGridSelectionCell.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * DataGridSelectionCell component\n */\nexport const DataGridSelectionCell: ForwardRefComponent<DataGridSelectionCellProps> = React.forwardRef((props, ref) => {\n const state = useDataGridSelectionCell_unstable(props, ref);\n\n useDataGridSelectionCellStyles_unstable(state);\n\n useCustomStyleHook_unstable('useDataGridSelectionCellStyles_unstable')(state);\n\n return renderDataGridSelectionCell_unstable(state);\n});\n\nDataGridSelectionCell.displayName = 'DataGridSelectionCell';\n"],"names":["React","useDataGridSelectionCell_unstable","renderDataGridSelectionCell_unstable","useDataGridSelectionCellStyles_unstable","useCustomStyleHook_unstable","DataGridSelectionCell","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;0CACmB,gCAA6B;6CAC1B,mCAAgC;sDAC7B,6CAA0C;qCAGtD,kCAAkC;AAKvE,MAAMK,wBAAAA,WAAAA,GAAyEL,OAAMM,UAAU,CAAC,CAACC,OAAOC;IAC7G,MAAMC,YAAQR,2DAAAA,EAAkCM,OAAOC;QAEvDL,6EAAAA,EAAwCM;QAExCL,gDAAAA,EAA4B,2CAA2CK;IAEvE,WAAOP,iEAAAA,EAAqCO;AAC9C,GAAG;AAEHJ,sBAAsBK,WAAW,GAAG"}
1
+ {"version":3,"sources":["../../../src/components/DataGridSelectionCell/DataGridSelectionCell.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useDataGridSelectionCell_unstable } from './useDataGridSelectionCell';\nimport { renderDataGridSelectionCell_unstable } from './renderDataGridSelectionCell';\nimport { useDataGridSelectionCellStyles_unstable } from './useDataGridSelectionCellStyles.styles';\nimport type { DataGridSelectionCellProps } from './DataGridSelectionCell.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * DataGridSelectionCell component\n */\nexport const DataGridSelectionCell: ForwardRefComponent<DataGridSelectionCellProps> = React.forwardRef((props, ref) => {\n const state = useDataGridSelectionCell_unstable(props, ref);\n\n useDataGridSelectionCellStyles_unstable(state);\n\n useCustomStyleHook_unstable('useDataGridSelectionCellStyles_unstable')(state);\n\n return renderDataGridSelectionCell_unstable(state);\n});\n\nDataGridSelectionCell.displayName = 'DataGridSelectionCell';\n"],"names":["React","useDataGridSelectionCell_unstable","renderDataGridSelectionCell_unstable","useDataGridSelectionCellStyles_unstable","useCustomStyleHook_unstable","DataGridSelectionCell","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;0CACmB,gCAA6B;6CAC1B,mCAAgC;sDAC7B,6CAA0C;qCAGtD,kCAAkC;AAKvE,MAAMK,wBAAAA,WAAAA,GAAyEL,OAAMM,UAAU,CAAC,CAACC,OAAOC;IAC7G,MAAMC,YAAQR,2DAAAA,EAAkCM,OAAOC;QAEvDL,6EAAAA,EAAwCM;QAExCL,gDAAAA,EAA4B,2CAA2CK;IAEvE,WAAOP,iEAAAA,EAAqCO;AAC9C,GAAG;AAEHJ,sBAAsBK,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/DataGridSelectionCell/DataGridSelectionCell.types.ts"],"sourcesContent":["import type {\n TableSelectionCellProps,\n TableSelectionCellSlots,\n TableSelectionCellState,\n} from '../TableSelectionCell/TableSelectionCell.types';\n\nexport type DataGridSelectionCellSlots = TableSelectionCellSlots;\n\n/**\n * DataGridSelectionCell Props\n */\nexport type DataGridSelectionCellProps = TableSelectionCellProps;\n\n/**\n * State used in rendering DataGridSelectionCell\n */\nexport type DataGridSelectionCellState = TableSelectionCellState;\n"],"names":[],"mappings":"AAaA;;CAEC,GACD,WAAiE"}
1
+ {"version":3,"sources":["../../../src/components/DataGridSelectionCell/DataGridSelectionCell.types.ts"],"sourcesContent":["import type {\n TableSelectionCellProps,\n TableSelectionCellSlots,\n TableSelectionCellState,\n} from '../TableSelectionCell/TableSelectionCell.types';\n\nexport type DataGridSelectionCellSlots = TableSelectionCellSlots;\n\n/**\n * DataGridSelectionCell Props\n */\nexport type DataGridSelectionCellProps = TableSelectionCellProps;\n\n/**\n * State used in rendering DataGridSelectionCell\n */\nexport type DataGridSelectionCellState = TableSelectionCellState;\n"],"names":[],"mappings":"AAaA;;CAEC,GACD,WAAiE"}
@@ -5,23 +5,23 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- DataGridSelectionCell: function() {
12
+ get DataGridSelectionCell () {
13
13
  return _DataGridSelectionCell.DataGridSelectionCell;
14
14
  },
15
- dataGridSelectionCellClassNames: function() {
15
+ get dataGridSelectionCellClassNames () {
16
16
  return _useDataGridSelectionCellStylesstyles.dataGridSelectionCellClassNames;
17
17
  },
18
- renderDataGridSelectionCell_unstable: function() {
18
+ get renderDataGridSelectionCell_unstable () {
19
19
  return _renderDataGridSelectionCell.renderDataGridSelectionCell_unstable;
20
20
  },
21
- useDataGridSelectionCellStyles_unstable: function() {
21
+ get useDataGridSelectionCellStyles_unstable () {
22
22
  return _useDataGridSelectionCellStylesstyles.useDataGridSelectionCellStyles_unstable;
23
23
  },
24
- useDataGridSelectionCell_unstable: function() {
24
+ get useDataGridSelectionCell_unstable () {
25
25
  return _useDataGridSelectionCell.useDataGridSelectionCell_unstable;
26
26
  }
27
27
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/DataGridSelectionCell/index.ts"],"sourcesContent":["export { DataGridSelectionCell } from './DataGridSelectionCell';\nexport type {\n DataGridSelectionCellProps,\n DataGridSelectionCellSlots,\n DataGridSelectionCellState,\n} from './DataGridSelectionCell.types';\nexport { renderDataGridSelectionCell_unstable } from './renderDataGridSelectionCell';\nexport { useDataGridSelectionCell_unstable } from './useDataGridSelectionCell';\nexport {\n dataGridSelectionCellClassNames,\n useDataGridSelectionCellStyles_unstable,\n} from './useDataGridSelectionCellStyles.styles';\n"],"names":["DataGridSelectionCell","renderDataGridSelectionCell_unstable","useDataGridSelectionCell_unstable","dataGridSelectionCellClassNames","useDataGridSelectionCellStyles_unstable"],"mappings":";;;;;;;;;;;;eAASA,4CAAqB;;;eAS5BG,qEAA+B;;;eAHxBF,iEAAoC;;;eAI3CG,6EAAuC;;;eAHhCF,2DAAiC;;;uCAPJ,6BAA0B;6CAMX,mCAAgC;0CACnC,gCAA6B;sDAIxE,6CAA0C"}
1
+ {"version":3,"sources":["../../../src/components/DataGridSelectionCell/index.ts"],"sourcesContent":["export { DataGridSelectionCell } from './DataGridSelectionCell';\nexport type {\n DataGridSelectionCellProps,\n DataGridSelectionCellSlots,\n DataGridSelectionCellState,\n} from './DataGridSelectionCell.types';\nexport { renderDataGridSelectionCell_unstable } from './renderDataGridSelectionCell';\nexport { useDataGridSelectionCell_unstable } from './useDataGridSelectionCell';\nexport {\n dataGridSelectionCellClassNames,\n useDataGridSelectionCellStyles_unstable,\n} from './useDataGridSelectionCellStyles.styles';\n"],"names":["DataGridSelectionCell","renderDataGridSelectionCell_unstable","useDataGridSelectionCell_unstable","dataGridSelectionCellClassNames","useDataGridSelectionCellStyles_unstable"],"mappings":";;;;;;;;;;;;eAASA,4CAAqB;;;eAS5BG,qEAA+B;;;eAHxBF,iEAAoC;;;eAI3CG,6EAAuC;;;eAHhCF,2DAAiC;;;uCAPJ,6BAA0B;6CAMX,mCAAgC;0CACnC,gCAA6B;sDAIxE,6CAA0C"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/DataGridSelectionCell/renderDataGridSelectionCell.tsx"],"sourcesContent":["import type { JSXElement } from '@fluentui/react-utilities';\nimport type { DataGridSelectionCellState } from './DataGridSelectionCell.types';\nimport { renderTableSelectionCell_unstable } from '../TableSelectionCell/renderTableSelectionCell';\n\n/**\n * Render the final JSX of DataGridSelectionCell\n */\nexport const renderDataGridSelectionCell_unstable = (state: DataGridSelectionCellState): JSXElement => {\n return renderTableSelectionCell_unstable(state);\n};\n"],"names":["renderTableSelectionCell_unstable","renderDataGridSelectionCell_unstable","state"],"mappings":";;;;;;;;;;0CAEkD,oDAAiD;AAK5F,MAAMC,uCAAuC,CAACC;IACnD,WAAOF,2DAAAA,EAAkCE;AAC3C,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/DataGridSelectionCell/renderDataGridSelectionCell.tsx"],"sourcesContent":["import type { JSXElement } from '@fluentui/react-utilities';\nimport type { DataGridSelectionCellState } from './DataGridSelectionCell.types';\nimport { renderTableSelectionCell_unstable } from '../TableSelectionCell/renderTableSelectionCell';\n\n/**\n * Render the final JSX of DataGridSelectionCell\n */\nexport const renderDataGridSelectionCell_unstable = (state: DataGridSelectionCellState): JSXElement => {\n return renderTableSelectionCell_unstable(state);\n};\n"],"names":["renderTableSelectionCell_unstable","renderDataGridSelectionCell_unstable","state"],"mappings":";;;;;;;;;;0CAEkD,oDAAiD;AAK5F,MAAMC,uCAAuC,CAACC;IACnD,WAAOF,2DAAAA,EAAkCE;AAC3C,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/DataGridSelectionCell/useDataGridSelectionCell.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { useEventCallback } from '@fluentui/react-utilities';\nimport { useDataGridContext_unstable } from '../../contexts/dataGridContext';\nimport { useTableRowIdContext } from '../../contexts/rowIdContext';\nimport { useIsInTableHeader } from '../../contexts/tableHeaderContext';\nimport { useTableSelectionCell_unstable } from '../TableSelectionCell/useTableSelectionCell';\nimport type { DataGridSelectionCellProps, DataGridSelectionCellState } from './DataGridSelectionCell.types';\n\n/**\n * Create the state required to render DataGridSelectionCell.\n *\n * The returned state can be modified with hooks such as useDataGridSelectionCellStyles_unstable,\n * before being passed to renderDataGridSelectionCell_unstable.\n *\n * @param props - props from this instance of DataGridSelectionCell\n * @param ref - reference to root HTMLElement of DataGridSelectionCell\n */\nexport const useDataGridSelectionCell_unstable = (\n props: DataGridSelectionCellProps,\n ref: React.Ref<HTMLElement>,\n): DataGridSelectionCellState => {\n const isHeader = useIsInTableHeader();\n const rowId = useTableRowIdContext();\n const subtle = useDataGridContext_unstable(ctx => ctx.subtleSelection);\n const checked = useDataGridContext_unstable(ctx => {\n if (isHeader && ctx.selection.selectionMode === 'multiselect') {\n return ctx.selection.allRowsSelected ? true : ctx.selection.someRowsSelected ? 'mixed' : false;\n }\n\n return ctx.selection.isRowSelected(rowId);\n });\n\n const toggleAllRows = useDataGridContext_unstable(ctx => ctx.selection.toggleAllRows);\n const type = useDataGridContext_unstable(ctx =>\n ctx.selection.selectionMode === 'multiselect' ? 'checkbox' : 'radio',\n );\n\n const onClick = useEventCallback((e: React.MouseEvent<HTMLTableCellElement>) => {\n if (isHeader) {\n toggleAllRows(e);\n }\n\n props.onClick?.(e);\n });\n\n return useTableSelectionCell_unstable(\n {\n as: 'div',\n role: 'gridcell',\n checked,\n type,\n invisible: isHeader && type === 'radio',\n 'aria-selected': checked === 'mixed' ? undefined : checked,\n subtle,\n radioIndicator: isHeader ? null : undefined,\n ...props,\n onClick,\n },\n ref,\n );\n};\n"],"names":["useEventCallback","useDataGridContext_unstable","useTableRowIdContext","useIsInTableHeader","useTableSelectionCell_unstable","useDataGridSelectionCell_unstable","props","ref","isHeader","rowId","subtle","ctx","subtleSelection","checked","selection","selectionMode","allRowsSelected","someRowsSelected","isRowSelected","toggleAllRows","type","onClick","e","as","role","invisible","undefined","radioIndicator"],"mappings":"AAAA;;;;;+BAmBaK;;;;;;gCAhBoB,4BAA4B;iCACjB,oCAAiC;8BACxC,iCAA8B;oCAChC,uCAAoC;uCACxB,iDAA8C;AAYtF,0CAA0C,CAC/CC,OACAC;IAEA,MAAMC,eAAWL,sCAAAA;IACjB,MAAMM,YAAQP,kCAAAA;IACd,MAAMQ,SAAST,gDAAAA,EAA4BU,CAAAA,MAAOA,IAAIC,eAAe;IACrE,MAAMC,cAAUZ,4CAAAA,EAA4BU,CAAAA;QAC1C,IAAIH,YAAYG,IAAIG,SAAS,CAACC,aAAa,KAAK,eAAe;YAC7D,OAAOJ,IAAIG,SAAS,CAACE,eAAe,GAAG,OAAOL,IAAIG,SAAS,CAACG,gBAAgB,GAAG,UAAU;QAC3F;QAEA,OAAON,IAAIG,SAAS,CAACI,aAAa,CAACT;IACrC;IAEA,MAAMU,oBAAgBlB,4CAAAA,EAA4BU,CAAAA,MAAOA,IAAIG,SAAS,CAACK,aAAa;IACpF,MAAMC,WAAOnB,4CAAAA,EAA4BU,CAAAA,MACvCA,IAAIG,SAAS,CAACC,aAAa,KAAK,gBAAgB,aAAa;IAG/D,MAAMM,cAAUrB,gCAAAA,EAAiB,CAACsB;YAKhChB;QAJA,IAAIE,UAAU;YACZW,cAAcG;QAChB;SAEAhB,iBAAAA,MAAMe,OAAAA,AAAO,MAAA,QAAbf,mBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,eAAAA,IAAAA,CAAAA,OAAgBgB;IAClB;IAEA,WAAOlB,qDAAAA,EACL;QACEmB,IAAI;QACJC,MAAM;QACNX;QACAO;QACAK,WAAWjB,YAAYY,SAAS;QAChC,iBAAiBP,YAAY,UAAUa,YAAYb;QACnDH;QACAiB,gBAAgBnB,WAAW,OAAOkB;QAClC,GAAGpB,KAAK;QACRe;IACF,GACAd;AAEJ,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/DataGridSelectionCell/useDataGridSelectionCell.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { useEventCallback } from '@fluentui/react-utilities';\nimport { useDataGridContext_unstable } from '../../contexts/dataGridContext';\nimport { useTableRowIdContext } from '../../contexts/rowIdContext';\nimport { useIsInTableHeader } from '../../contexts/tableHeaderContext';\nimport { useTableSelectionCell_unstable } from '../TableSelectionCell/useTableSelectionCell';\nimport type { DataGridSelectionCellProps, DataGridSelectionCellState } from './DataGridSelectionCell.types';\n\n/**\n * Create the state required to render DataGridSelectionCell.\n *\n * The returned state can be modified with hooks such as useDataGridSelectionCellStyles_unstable,\n * before being passed to renderDataGridSelectionCell_unstable.\n *\n * @param props - props from this instance of DataGridSelectionCell\n * @param ref - reference to root HTMLElement of DataGridSelectionCell\n */\nexport const useDataGridSelectionCell_unstable = (\n props: DataGridSelectionCellProps,\n ref: React.Ref<HTMLElement>,\n): DataGridSelectionCellState => {\n const isHeader = useIsInTableHeader();\n const rowId = useTableRowIdContext();\n const subtle = useDataGridContext_unstable(ctx => ctx.subtleSelection);\n const checked = useDataGridContext_unstable(ctx => {\n if (isHeader && ctx.selection.selectionMode === 'multiselect') {\n return ctx.selection.allRowsSelected ? true : ctx.selection.someRowsSelected ? 'mixed' : false;\n }\n\n return ctx.selection.isRowSelected(rowId);\n });\n\n const toggleAllRows = useDataGridContext_unstable(ctx => ctx.selection.toggleAllRows);\n const type = useDataGridContext_unstable(ctx =>\n ctx.selection.selectionMode === 'multiselect' ? 'checkbox' : 'radio',\n );\n\n const onClick = useEventCallback((e: React.MouseEvent<HTMLTableCellElement>) => {\n if (isHeader) {\n toggleAllRows(e);\n }\n\n props.onClick?.(e);\n });\n\n return useTableSelectionCell_unstable(\n {\n as: 'div',\n role: 'gridcell',\n checked,\n type,\n invisible: isHeader && type === 'radio',\n 'aria-selected': checked === 'mixed' ? undefined : checked,\n subtle,\n radioIndicator: isHeader ? null : undefined,\n ...props,\n onClick,\n },\n ref,\n );\n};\n"],"names":["useEventCallback","useDataGridContext_unstable","useTableRowIdContext","useIsInTableHeader","useTableSelectionCell_unstable","useDataGridSelectionCell_unstable","props","ref","isHeader","rowId","subtle","ctx","subtleSelection","checked","selection","selectionMode","allRowsSelected","someRowsSelected","isRowSelected","toggleAllRows","type","onClick","e","as","role","invisible","undefined","radioIndicator"],"mappings":"AAAA;;;;;+BAmBaK;;;;;;gCAhBoB,4BAA4B;iCACjB,oCAAiC;8BACxC,iCAA8B;oCAChC,uCAAoC;uCACxB,iDAA8C;AAYtF,0CAA0C,CAC/CC,OACAC;IAEA,MAAMC,eAAWL,sCAAAA;IACjB,MAAMM,YAAQP,kCAAAA;IACd,MAAMQ,SAAST,gDAAAA,EAA4BU,CAAAA,MAAOA,IAAIC,eAAe;IACrE,MAAMC,cAAUZ,4CAAAA,EAA4BU,CAAAA;QAC1C,IAAIH,YAAYG,IAAIG,SAAS,CAACC,aAAa,KAAK,eAAe;YAC7D,OAAOJ,IAAIG,SAAS,CAACE,eAAe,GAAG,OAAOL,IAAIG,SAAS,CAACG,gBAAgB,GAAG,UAAU;QAC3F;QAEA,OAAON,IAAIG,SAAS,CAACI,aAAa,CAACT;IACrC;IAEA,MAAMU,oBAAgBlB,4CAAAA,EAA4BU,CAAAA,MAAOA,IAAIG,SAAS,CAACK,aAAa;IACpF,MAAMC,WAAOnB,4CAAAA,EAA4BU,CAAAA,MACvCA,IAAIG,SAAS,CAACC,aAAa,KAAK,gBAAgB,aAAa;IAG/D,MAAMM,cAAUrB,gCAAAA,EAAiB,CAACsB;YAKhChB;QAJA,IAAIE,UAAU;YACZW,cAAcG;QAChB;SAEAhB,iBAAAA,MAAMe,OAAAA,AAAO,MAAA,QAAbf,mBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,eAAAA,IAAAA,CAAAA,OAAgBgB;IAClB;IAEA,WAAOlB,qDAAAA,EACL;QACEmB,IAAI;QACJC,MAAM;QACNX;QACAO;QACAK,WAAWjB,YAAYY,SAAS;QAChC,iBAAiBP,YAAY,UAAUa,YAAYb;QACnDH;QACAiB,gBAAgBnB,WAAW,OAAOkB;QAClC,GAAGpB,KAAK;QACRe;IACF,GACAd;AAEJ,EAAE"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- dataGridSelectionCellClassNames: function() {
13
+ get dataGridSelectionCellClassNames () {
14
14
  return dataGridSelectionCellClassNames;
15
15
  },
16
- useDataGridSelectionCellStyles_unstable: function() {
16
+ get useDataGridSelectionCellStyles_unstable () {
17
17
  return useDataGridSelectionCellStyles_unstable;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["useDataGridSelectionCellStyles.styles.js"],"sourcesContent":["'use client';\nimport { mergeClasses } from \"@griffel/react\";\nimport { useTableSelectionCellStyles_unstable } from \"../TableSelectionCell/useTableSelectionCellStyles.styles.js\";\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 */ export const useDataGridSelectionCellStyles_unstable = (state)=>{\n useTableSelectionCellStyles_unstable(state);\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(dataGridSelectionCellClassNames.root, state.root.className);\n if (state.checkboxIndicator) {\n // eslint-disable-next-line react-hooks/immutability\n state.checkboxIndicator.className = mergeClasses(dataGridSelectionCellClassNames.checkboxIndicator, state.checkboxIndicator.className);\n }\n if (state.radioIndicator) {\n // eslint-disable-next-line react-hooks/immutability\n state.radioIndicator.className = mergeClasses(dataGridSelectionCellClassNames.radioIndicator, state.radioIndicator.className);\n }\n return state;\n};\n"],"names":["mergeClasses","useTableSelectionCellStyles_unstable","dataGridSelectionCellClassNames","root","checkboxIndicator","radioIndicator","useDataGridSelectionCellStyles_unstable","state","className"],"mappings":"AAAA,YAAY;;;;;;;;;;;;IAGCE,+BAA+B;;;2CAOY;;;;uBAT3B,gBAAgB;mDACQ,6DAA6D;AAC3G,wCAAwC;IAC3CC,IAAI,EAAE,2BAA2B;IACjCC,iBAAiB,EAAE,8CAA8C;IACjEC,cAAc,EAAE;AACpB,CAAC;AAGU,MAAMC,2CAA2CC,KAAK,IAAG;QAChEN,uEAAoC,EAACM,KAAK,CAAC;IAC3C,oDAAA;IACAA,KAAK,CAACJ,IAAI,CAACK,SAAS,OAAGR,mBAAY,EAACE,+BAA+B,CAACC,IAAI,EAAEI,KAAK,CAACJ,IAAI,CAACK,SAAS,CAAC;IAC/F,IAAID,KAAK,CAACH,iBAAiB,EAAE;QACzB,oDAAA;QACAG,KAAK,CAACH,iBAAiB,CAACI,SAAS,OAAGR,mBAAY,EAACE,+BAA+B,CAACE,iBAAiB,EAAEG,KAAK,CAACH,iBAAiB,CAACI,SAAS,CAAC;IAC1I;IACA,IAAID,KAAK,CAACF,cAAc,EAAE;QACtB,oDAAA;QACAE,KAAK,CAACF,cAAc,CAACG,SAAS,OAAGR,mBAAY,EAACE,+BAA+B,CAACG,cAAc,EAAEE,KAAK,CAACF,cAAc,CAACG,SAAS,CAAC;IACjI;IACA,OAAOD,KAAK;AAChB,CAAC"}
1
+ {"version":3,"sources":["useDataGridSelectionCellStyles.styles.js"],"sourcesContent":["'use client';\nimport { mergeClasses } from \"@griffel/react\";\nimport { useTableSelectionCellStyles_unstable } from \"../TableSelectionCell/useTableSelectionCellStyles.styles.js\";\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 */ export const useDataGridSelectionCellStyles_unstable = (state)=>{\n useTableSelectionCellStyles_unstable(state);\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(dataGridSelectionCellClassNames.root, state.root.className);\n if (state.checkboxIndicator) {\n // eslint-disable-next-line react-hooks/immutability\n state.checkboxIndicator.className = mergeClasses(dataGridSelectionCellClassNames.checkboxIndicator, state.checkboxIndicator.className);\n }\n if (state.radioIndicator) {\n // eslint-disable-next-line react-hooks/immutability\n state.radioIndicator.className = mergeClasses(dataGridSelectionCellClassNames.radioIndicator, state.radioIndicator.className);\n }\n return state;\n};\n"],"names":["mergeClasses","useTableSelectionCellStyles_unstable","dataGridSelectionCellClassNames","root","checkboxIndicator","radioIndicator","useDataGridSelectionCellStyles_unstable","state","className"],"mappings":"AAAA,YAAY;;;;;;;;;;;;QAGCE,+BAA+B;;;;;;;uBAFf,gBAAgB;mDACQ,6DAA6D;AAC3G,wCAAwC;IAC3CC,IAAI,EAAE,2BAA2B;IACjCC,iBAAiB,EAAE,8CAA8C;IACjEC,cAAc,EAAE;AACpB,CAAC;AAGU,MAAMC,uCAAuC,IAAIC,KAAK,IAAG;QAChEN,uEAAoC,EAACM,KAAK,CAAC;IAC3C,oDAAA;IACAA,KAAK,CAACJ,IAAI,CAACK,SAAS,OAAGR,mBAAY,EAACE,+BAA+B,CAACC,IAAI,EAAEI,KAAK,CAACJ,IAAI,CAACK,SAAS,CAAC;IAC/F,IAAID,KAAK,CAACH,iBAAiB,EAAE;QACzB,oDAAA;QACAG,KAAK,CAACH,iBAAiB,CAACI,SAAS,OAAGR,mBAAY,EAACE,+BAA+B,CAACE,iBAAiB,EAAEG,KAAK,CAACH,iBAAiB,CAACI,SAAS,CAAC;IAC1I;IACA,IAAID,KAAK,CAACF,cAAc,EAAE;QACtB,oDAAA;QACAE,KAAK,CAACF,cAAc,CAACG,SAAS,OAAGR,mBAAY,EAACE,+BAA+B,CAACG,cAAc,EAAEE,KAAK,CAACF,cAAc,CAACG,SAAS,CAAC;IACjI;IACA,OAAOD,KAAK;AAChB,CAAC"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- dataGridSelectionCellClassNames: function() {
13
+ get dataGridSelectionCellClassNames () {
14
14
  return dataGridSelectionCellClassNames;
15
15
  },
16
- useDataGridSelectionCellStyles_unstable: function() {
16
+ get useDataGridSelectionCellStyles_unstable () {
17
17
  return useDataGridSelectionCellStyles_unstable;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { mergeClasses } from '@griffel/react';\nimport type { DataGridSelectionCellSlots, DataGridSelectionCellState } from './DataGridSelectionCell.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableSelectionCellStyles_unstable } from '../TableSelectionCell/useTableSelectionCellStyles.styles';\n\nexport const dataGridSelectionCellClassNames: SlotClassNames<DataGridSelectionCellSlots> = {\n root: 'fui-DataGridSelectionCell',\n checkboxIndicator: 'fui-DataGridSelectionCell__checkboxIndicator',\n radioIndicator: 'fui-DataGridSelectionCell__radioIndicator',\n};\n\n/**\n * Apply styling to the DataGridSelectionCell slots based on the state\n */\nexport const useDataGridSelectionCellStyles_unstable = (\n state: DataGridSelectionCellState,\n): DataGridSelectionCellState => {\n useTableSelectionCellStyles_unstable(state);\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(dataGridSelectionCellClassNames.root, state.root.className);\n\n if (state.checkboxIndicator) {\n // eslint-disable-next-line react-hooks/immutability\n state.checkboxIndicator.className = mergeClasses(\n dataGridSelectionCellClassNames.checkboxIndicator,\n state.checkboxIndicator.className,\n );\n }\n\n if (state.radioIndicator) {\n // eslint-disable-next-line react-hooks/immutability\n state.radioIndicator.className = mergeClasses(\n dataGridSelectionCellClassNames.radioIndicator,\n state.radioIndicator.className,\n );\n }\n\n return state;\n};\n"],"names":["mergeClasses","useTableSelectionCellStyles_unstable","dataGridSelectionCellClassNames","root","checkboxIndicator","radioIndicator","useDataGridSelectionCellStyles_unstable","state","className"],"mappings":"AAAA;;;;;;;;;;;;IAOaE,+BAAAA;;;2CASAI;;;;uBAdgB,iBAAiB;mDAGO,8DAA2D;AAEzG,wCAAoF;IACzFH,MAAM;IACNC,mBAAmB;IACnBC,gBAAgB;AAClB,EAAE;AAKK,MAAMC,0CAA0C,CACrDC;QAEAN,uEAAAA,EAAqCM;IACrC,oDAAoD;IACpDA,MAAMJ,IAAI,CAACK,SAAS,OAAGR,mBAAAA,EAAaE,gCAAgCC,IAAI,EAAEI,MAAMJ,IAAI,CAACK,SAAS;IAE9F,IAAID,MAAMH,iBAAiB,EAAE;QAC3B,oDAAoD;QACpDG,MAAMH,iBAAiB,CAACI,SAAS,OAAGR,mBAAAA,EAClCE,gCAAgCE,iBAAiB,EACjDG,MAAMH,iBAAiB,CAACI,SAAS;IAErC;IAEA,IAAID,MAAMF,cAAc,EAAE;QACxB,oDAAoD;QACpDE,MAAMF,cAAc,CAACG,SAAS,OAAGR,mBAAAA,EAC/BE,gCAAgCG,cAAc,EAC9CE,MAAMF,cAAc,CAACG,SAAS;IAElC;IAEA,OAAOD;AACT,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { mergeClasses } from '@griffel/react';\nimport type { DataGridSelectionCellSlots, DataGridSelectionCellState } from './DataGridSelectionCell.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableSelectionCellStyles_unstable } from '../TableSelectionCell/useTableSelectionCellStyles.styles';\n\nexport const dataGridSelectionCellClassNames: SlotClassNames<DataGridSelectionCellSlots> = {\n root: 'fui-DataGridSelectionCell',\n checkboxIndicator: 'fui-DataGridSelectionCell__checkboxIndicator',\n radioIndicator: 'fui-DataGridSelectionCell__radioIndicator',\n};\n\n/**\n * Apply styling to the DataGridSelectionCell slots based on the state\n */\nexport const useDataGridSelectionCellStyles_unstable = (\n state: DataGridSelectionCellState,\n): DataGridSelectionCellState => {\n useTableSelectionCellStyles_unstable(state);\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(dataGridSelectionCellClassNames.root, state.root.className);\n\n if (state.checkboxIndicator) {\n // eslint-disable-next-line react-hooks/immutability\n state.checkboxIndicator.className = mergeClasses(\n dataGridSelectionCellClassNames.checkboxIndicator,\n state.checkboxIndicator.className,\n );\n }\n\n if (state.radioIndicator) {\n // eslint-disable-next-line react-hooks/immutability\n state.radioIndicator.className = mergeClasses(\n dataGridSelectionCellClassNames.radioIndicator,\n state.radioIndicator.className,\n );\n }\n\n return state;\n};\n"],"names":["mergeClasses","useTableSelectionCellStyles_unstable","dataGridSelectionCellClassNames","root","checkboxIndicator","radioIndicator","useDataGridSelectionCellStyles_unstable","state","className"],"mappings":"AAAA;;;;;;;;;;;;QAOaE;;;;;;;uBALgB,iBAAiB;mDAGO,8DAA2D;AAEzG,wCAAoF;IACzFC,MAAM;IACNC,mBAAmB;IACnBC,gBAAgB;AAClB,EAAE;AAKK,MAAMC,0CAA0C,CACrDC;QAEAN,uEAAAA,EAAqCM;IACrC,oDAAoD;IACpDA,MAAMJ,IAAI,CAACK,SAAS,OAAGR,mBAAAA,EAAaE,gCAAgCC,IAAI,EAAEI,MAAMJ,IAAI,CAACK,SAAS;IAE9F,IAAID,MAAMH,iBAAiB,EAAE;QAC3B,oDAAoD;QACpDG,MAAMH,iBAAiB,CAACI,SAAS,OAAGR,mBAAAA,EAClCE,gCAAgCE,iBAAiB,EACjDG,MAAMH,iBAAiB,CAACI,SAAS;IAErC;IAEA,IAAID,MAAMF,cAAc,EAAE;QACxB,oDAAoD;QACpDE,MAAMF,cAAc,CAACG,SAAS,OAAGR,mBAAAA,EAC/BE,gCAAgCG,cAAc,EAC9CE,MAAMF,cAAc,CAACG,SAAS;IAElC;IAEA,OAAOD;AACT,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Table/Table.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useTable_unstable } from './useTable';\nimport { renderTable_unstable } from './renderTable';\nimport { useTableStyles_unstable } from './useTableStyles.styles';\nimport type { TableProps } from './Table.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useTableContextValues_unstable } from './useTableContextValues';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * Table component\n */\nexport const Table: ForwardRefComponent<TableProps> = React.forwardRef((props, ref) => {\n const state = useTable_unstable(props, ref);\n\n useTableStyles_unstable(state);\n\n useCustomStyleHook_unstable('useTableStyles_unstable')(state);\n\n return renderTable_unstable(state, useTableContextValues_unstable(state));\n});\n\nTable.displayName = 'Table';\n"],"names":["React","useTable_unstable","renderTable_unstable","useTableStyles_unstable","useTableContextValues_unstable","useCustomStyleHook_unstable","Table","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;0BACG,gBAAa;6BACV,mBAAgB;sCACb,6BAA0B;uCAGnB,6BAA0B;qCAC7B,kCAAkC;AAKvE,MAAMM,QAAAA,WAAAA,GAAyCN,OAAMO,UAAU,CAAC,CAACC,OAAOC;IAC7E,MAAMC,YAAQT,2BAAAA,EAAkBO,OAAOC;QAEvCN,6CAAAA,EAAwBO;QAExBL,gDAAAA,EAA4B,2BAA2BK;IAEvD,WAAOR,iCAAAA,EAAqBQ,WAAON,qDAAAA,EAA+BM;AACpE,GAAG;AAEHJ,MAAMK,WAAW,GAAG"}
1
+ {"version":3,"sources":["../../../src/components/Table/Table.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useTable_unstable } from './useTable';\nimport { renderTable_unstable } from './renderTable';\nimport { useTableStyles_unstable } from './useTableStyles.styles';\nimport type { TableProps } from './Table.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useTableContextValues_unstable } from './useTableContextValues';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * Table component\n */\nexport const Table: ForwardRefComponent<TableProps> = React.forwardRef((props, ref) => {\n const state = useTable_unstable(props, ref);\n\n useTableStyles_unstable(state);\n\n useCustomStyleHook_unstable('useTableStyles_unstable')(state);\n\n return renderTable_unstable(state, useTableContextValues_unstable(state));\n});\n\nTable.displayName = 'Table';\n"],"names":["React","useTable_unstable","renderTable_unstable","useTableStyles_unstable","useTableContextValues_unstable","useCustomStyleHook_unstable","Table","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;0BACG,gBAAa;6BACV,mBAAgB;sCACb,6BAA0B;uCAGnB,6BAA0B;qCAC7B,kCAAkC;AAKvE,MAAMM,QAAAA,WAAAA,GAAyCN,OAAMO,UAAU,CAAC,CAACC,OAAOC;IAC7E,MAAMC,YAAQT,2BAAAA,EAAkBO,OAAOC;QAEvCN,6CAAAA,EAAwBO;QAExBL,gDAAAA,EAA4B,2BAA2BK;IAEvD,WAAOR,iCAAAA,EAAqBQ,WAAON,qDAAAA,EAA+BM;AACpE,GAAG;AAEHJ,MAAMK,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Table/Table.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type TableSlots = {\n root: Slot<'table', 'div'>;\n};\n\nexport type TableContextValue = {\n /**\n * Affects the sizes of all table subcomponents\n * @default medium\n */\n size: 'extra-small' | 'small' | 'medium';\n\n /**\n * Render all table elements as divs instead of semantic table elements\n * Using divs no longer uses `display: table` layout but `display: flex`\n * @default false\n */\n noNativeElements: boolean;\n\n /**\n * Whether the table is sortable\n * @default false\n */\n sortable: boolean;\n};\n\nexport type SortDirection = 'ascending' | 'descending';\n\nexport type TableContextValues = {\n table: TableContextValue;\n};\n\n/**\n * Table Props\n */\nexport type TableProps = ComponentProps<TableSlots> & Partial<TableContextValue>;\n\n/**\n * State used in rendering Table\n */\nexport type TableState = ComponentState<TableSlots> &\n Pick<Required<TableProps>, 'size' | 'noNativeElements'> &\n TableContextValue;\n"],"names":[],"mappings":"AAsCA;;CAEC,GACD,WAEoB"}
1
+ {"version":3,"sources":["../../../src/components/Table/Table.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type TableSlots = {\n root: Slot<'table', 'div'>;\n};\n\nexport type TableContextValue = {\n /**\n * Affects the sizes of all table subcomponents\n * @default medium\n */\n size: 'extra-small' | 'small' | 'medium';\n\n /**\n * Render all table elements as divs instead of semantic table elements\n * Using divs no longer uses `display: table` layout but `display: flex`\n * @default false\n */\n noNativeElements: boolean;\n\n /**\n * Whether the table is sortable\n * @default false\n */\n sortable: boolean;\n};\n\nexport type SortDirection = 'ascending' | 'descending';\n\nexport type TableContextValues = {\n table: TableContextValue;\n};\n\n/**\n * Table Props\n */\nexport type TableProps = ComponentProps<TableSlots> & Partial<TableContextValue>;\n\n/**\n * State used in rendering Table\n */\nexport type TableState = ComponentState<TableSlots> &\n Pick<Required<TableProps>, 'size' | 'noNativeElements'> &\n TableContextValue;\n"],"names":[],"mappings":"AAsCA;;CAEC,GACD,WAEoB"}