@fluentui/react-table 9.2.1 → 9.2.3
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.
- package/.swcrc +30 -0
- package/CHANGELOG.json +145 -1
- package/CHANGELOG.md +39 -2
- package/lib/DataGrid.js.map +1 -1
- package/lib/DataGridBody.js.map +1 -1
- package/lib/DataGridCell.js.map +1 -1
- package/lib/DataGridHeader.js.map +1 -1
- package/lib/DataGridHeaderCell.js.map +1 -1
- package/lib/DataGridRow.js.map +1 -1
- package/lib/DataGridSelectionCell.js.map +1 -1
- package/lib/Table.js.map +1 -1
- package/lib/TableBody.js.map +1 -1
- package/lib/TableCell.js.map +1 -1
- package/lib/TableCellActions.js.map +1 -1
- package/lib/TableCellLayout.js.map +1 -1
- package/lib/TableCellPrimaryLayout.js.map +1 -1
- package/lib/TableHeader.js.map +1 -1
- package/lib/TableHeaderCell.js.map +1 -1
- package/lib/TableResizeHandle.js.map +1 -1
- package/lib/TableRow.js.map +1 -1
- package/lib/TableSelectionCell.js.map +1 -1
- package/lib/components/DataGrid/DataGrid.js.map +1 -1
- package/lib/components/DataGrid/DataGrid.types.js +1 -1
- package/lib/components/DataGrid/DataGrid.types.js.map +1 -1
- package/lib/components/DataGrid/index.js.map +1 -1
- package/lib/components/DataGrid/renderDataGrid.js.map +1 -1
- package/lib/components/DataGrid/useDataGrid.js +6 -4
- package/lib/components/DataGrid/useDataGrid.js.map +1 -1
- package/lib/components/DataGrid/useDataGridContextValues.js.map +1 -1
- package/lib/components/DataGrid/useDataGridStyles.js.map +1 -1
- package/lib/components/DataGridBody/DataGridBody.js.map +1 -1
- package/lib/components/DataGridBody/DataGridBody.types.js +1 -1
- package/lib/components/DataGridBody/DataGridBody.types.js.map +1 -1
- package/lib/components/DataGridBody/index.js.map +1 -1
- package/lib/components/DataGridBody/renderDataGridBody.js +1 -3
- package/lib/components/DataGridBody/renderDataGridBody.js.map +1 -1
- package/lib/components/DataGridBody/useDataGridBody.js +1 -0
- package/lib/components/DataGridBody/useDataGridBody.js.map +1 -1
- package/lib/components/DataGridBody/useDataGridBodyStyles.js.map +1 -1
- package/lib/components/DataGridCell/DataGridCell.js.map +1 -1
- package/lib/components/DataGridCell/DataGridCell.types.js.map +1 -1
- package/lib/components/DataGridCell/index.js.map +1 -1
- package/lib/components/DataGridCell/renderDataGridCell.js.map +1 -1
- package/lib/components/DataGridCell/useDataGridCell.js +1 -0
- package/lib/components/DataGridCell/useDataGridCell.js.map +1 -1
- package/lib/components/DataGridCell/useDataGridCellStyles.js.map +1 -1
- package/lib/components/DataGridHeader/DataGridHeader.js.map +1 -1
- package/lib/components/DataGridHeader/DataGridHeader.types.js.map +1 -1
- package/lib/components/DataGridHeader/index.js.map +1 -1
- package/lib/components/DataGridHeader/renderDataGridHeader.js.map +1 -1
- package/lib/components/DataGridHeader/useDataGridHeader.js +1 -0
- package/lib/components/DataGridHeader/useDataGridHeader.js.map +1 -1
- package/lib/components/DataGridHeader/useDataGridHeaderStyles.js.map +1 -1
- package/lib/components/DataGridHeaderCell/DataGridHeaderCell.js.map +1 -1
- package/lib/components/DataGridHeaderCell/DataGridHeaderCell.types.js.map +1 -1
- package/lib/components/DataGridHeaderCell/index.js.map +1 -1
- package/lib/components/DataGridHeaderCell/renderDataGridHeaderCell.js.map +1 -1
- package/lib/components/DataGridHeaderCell/useDataGridHeaderCell.js +3 -2
- package/lib/components/DataGridHeaderCell/useDataGridHeaderCell.js.map +1 -1
- package/lib/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js.map +1 -1
- package/lib/components/DataGridRow/DataGridRow.js.map +1 -1
- package/lib/components/DataGridRow/DataGridRow.types.js +1 -1
- package/lib/components/DataGridRow/DataGridRow.types.js.map +1 -1
- package/lib/components/DataGridRow/index.js.map +1 -1
- package/lib/components/DataGridRow/renderDataGridRow.js +1 -5
- package/lib/components/DataGridRow/renderDataGridRow.js.map +1 -1
- package/lib/components/DataGridRow/useDataGridRow.js +5 -4
- package/lib/components/DataGridRow/useDataGridRow.js.map +1 -1
- package/lib/components/DataGridRow/useDataGridRowStyles.js.map +1 -1
- package/lib/components/DataGridSelectionCell/DataGridSelectionCell.js.map +1 -1
- package/lib/components/DataGridSelectionCell/DataGridSelectionCell.types.js.map +1 -1
- package/lib/components/DataGridSelectionCell/index.js.map +1 -1
- package/lib/components/DataGridSelectionCell/renderDataGridSelectionCell.js.map +1 -1
- package/lib/components/DataGridSelectionCell/useDataGridSelectionCell.js +3 -2
- package/lib/components/DataGridSelectionCell/useDataGridSelectionCell.js.map +1 -1
- package/lib/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js.map +1 -1
- package/lib/components/Table/Table.js.map +1 -1
- package/lib/components/Table/Table.types.js.map +1 -1
- package/lib/components/Table/index.js.map +1 -1
- package/lib/components/Table/renderTable.js +1 -3
- package/lib/components/Table/renderTable.js.map +1 -1
- package/lib/components/Table/useTable.js +7 -5
- package/lib/components/Table/useTable.js.map +1 -1
- package/lib/components/Table/useTableContextValues.js.map +1 -1
- package/lib/components/Table/useTableStyles.js.map +1 -1
- package/lib/components/TableBody/TableBody.js.map +1 -1
- package/lib/components/TableBody/TableBody.types.js.map +1 -1
- package/lib/components/TableBody/index.js.map +1 -1
- package/lib/components/TableBody/renderTableBody.js +1 -3
- package/lib/components/TableBody/renderTableBody.js.map +1 -1
- package/lib/components/TableBody/useTableBody.js +3 -2
- package/lib/components/TableBody/useTableBody.js.map +1 -1
- package/lib/components/TableBody/useTableBodyStyles.js.map +1 -1
- package/lib/components/TableCell/TableCell.js.map +1 -1
- package/lib/components/TableCell/TableCell.types.js.map +1 -1
- package/lib/components/TableCell/index.js.map +1 -1
- package/lib/components/TableCell/renderTableCell.js +1 -3
- package/lib/components/TableCell/renderTableCell.js.map +1 -1
- package/lib/components/TableCell/useTableCell.js +3 -2
- package/lib/components/TableCell/useTableCell.js.map +1 -1
- package/lib/components/TableCell/useTableCellStyles.js.map +1 -1
- package/lib/components/TableCellActions/TableCellActions.js.map +1 -1
- package/lib/components/TableCellActions/TableCellActions.types.js.map +1 -1
- package/lib/components/TableCellActions/index.js.map +1 -1
- package/lib/components/TableCellActions/renderTableCellActions.js +1 -3
- package/lib/components/TableCellActions/renderTableCellActions.js.map +1 -1
- package/lib/components/TableCellActions/useTableCellActions.js +3 -2
- package/lib/components/TableCellActions/useTableCellActions.js.map +1 -1
- package/lib/components/TableCellActions/useTableCellActionsStyles.js.map +1 -1
- package/lib/components/TableCellLayout/TableCellLayout.js.map +1 -1
- package/lib/components/TableCellLayout/TableCellLayout.types.js.map +1 -1
- package/lib/components/TableCellLayout/index.js.map +1 -1
- package/lib/components/TableCellLayout/renderTableCellLayout.js +2 -12
- package/lib/components/TableCellLayout/renderTableCellLayout.js.map +1 -1
- package/lib/components/TableCellLayout/useTableCellLayout.js +1 -0
- package/lib/components/TableCellLayout/useTableCellLayout.js.map +1 -1
- package/lib/components/TableCellLayout/useTableCellLayoutContextValues.js.map +1 -1
- package/lib/components/TableCellLayout/useTableCellLayoutStyles.js.map +1 -1
- package/lib/components/TableHeader/TableHeader.js.map +1 -1
- package/lib/components/TableHeader/TableHeader.types.js.map +1 -1
- package/lib/components/TableHeader/index.js.map +1 -1
- package/lib/components/TableHeader/renderTableHeader.js +1 -3
- package/lib/components/TableHeader/renderTableHeader.js.map +1 -1
- package/lib/components/TableHeader/useTableHeader.js +3 -2
- package/lib/components/TableHeader/useTableHeader.js.map +1 -1
- package/lib/components/TableHeader/useTableHeaderStyles.js.map +1 -1
- package/lib/components/TableHeaderCell/TableHeaderCell.js.map +1 -1
- package/lib/components/TableHeaderCell/TableHeaderCell.types.js.map +1 -1
- package/lib/components/TableHeaderCell/index.js.map +1 -1
- package/lib/components/TableHeaderCell/renderTableHeaderCell.js +1 -9
- package/lib/components/TableHeaderCell/renderTableHeaderCell.js.map +1 -1
- package/lib/components/TableHeaderCell/useTableHeaderCell.js +4 -3
- package/lib/components/TableHeaderCell/useTableHeaderCell.js.map +1 -1
- package/lib/components/TableHeaderCell/useTableHeaderCellStyles.js.map +1 -1
- package/lib/components/TableResizeHandle/TableResizeHandle.js.map +1 -1
- package/lib/components/TableResizeHandle/TableResizeHandle.types.js.map +1 -1
- package/lib/components/TableResizeHandle/index.js.map +1 -1
- package/lib/components/TableResizeHandle/renderTableResizeHandle.js +1 -3
- package/lib/components/TableResizeHandle/renderTableResizeHandle.js.map +1 -1
- package/lib/components/TableResizeHandle/useTableResizeHandle.js +3 -2
- package/lib/components/TableResizeHandle/useTableResizeHandle.js.map +1 -1
- package/lib/components/TableResizeHandle/useTableResizeHandleStyles.js +0 -2
- package/lib/components/TableResizeHandle/useTableResizeHandleStyles.js.map +1 -1
- package/lib/components/TableRow/TableRow.js.map +1 -1
- package/lib/components/TableRow/TableRow.types.js.map +1 -1
- package/lib/components/TableRow/index.js.map +1 -1
- package/lib/components/TableRow/renderTableRow.js +1 -3
- package/lib/components/TableRow/renderTableRow.js.map +1 -1
- package/lib/components/TableRow/useTableRow.js +5 -3
- package/lib/components/TableRow/useTableRow.js.map +1 -1
- package/lib/components/TableRow/useTableRowStyles.js.map +1 -1
- package/lib/components/TableSelectionCell/TableSelectionCell.js.map +1 -1
- package/lib/components/TableSelectionCell/TableSelectionCell.types.js.map +1 -1
- package/lib/components/TableSelectionCell/index.js.map +1 -1
- package/lib/components/TableSelectionCell/renderTableSelectionCell.js +1 -7
- package/lib/components/TableSelectionCell/renderTableSelectionCell.js.map +1 -1
- package/lib/components/TableSelectionCell/useTableSelectionCell.js +1 -0
- package/lib/components/TableSelectionCell/useTableSelectionCell.js.map +1 -1
- package/lib/components/TableSelectionCell/useTableSelectionCellStyles.js.map +1 -1
- package/lib/contexts/columnIdContext.js +2 -4
- package/lib/contexts/columnIdContext.js.map +1 -1
- package/lib/contexts/dataGridContext.js.map +1 -1
- package/lib/contexts/rowIdContext.js +2 -4
- package/lib/contexts/rowIdContext.js.map +1 -1
- package/lib/contexts/tableContext.js +2 -4
- package/lib/contexts/tableContext.js.map +1 -1
- package/lib/contexts/tableHeaderContext.js.map +1 -1
- package/lib/hooks/createColumn.js.map +1 -1
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/selectionManager.js +1 -0
- package/lib/hooks/selectionManager.js.map +1 -1
- package/lib/hooks/types.js +1 -1
- package/lib/hooks/types.js.map +1 -1
- package/lib/hooks/useKeyboardResizing.js +15 -12
- package/lib/hooks/useKeyboardResizing.js.map +1 -1
- package/lib/hooks/useMeasureElement.js +5 -3
- package/lib/hooks/useMeasureElement.js.map +1 -1
- package/lib/hooks/useTableColumnResizeMouseHandler.js +19 -17
- package/lib/hooks/useTableColumnResizeMouseHandler.js.map +1 -1
- package/lib/hooks/useTableColumnResizeState.js.map +1 -1
- package/lib/hooks/useTableColumnSizing.js.map +1 -1
- package/lib/hooks/useTableFeatures.js +8 -6
- package/lib/hooks/useTableFeatures.js.map +1 -1
- package/lib/hooks/useTableSelection.js +2 -2
- package/lib/hooks/useTableSelection.js.map +1 -1
- package/lib/hooks/useTableSort.js +1 -0
- package/lib/hooks/useTableSort.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/utils/columnResizeUtils.js +7 -8
- package/lib/utils/columnResizeUtils.js.map +1 -1
- package/lib-commonjs/DataGrid.js +5 -4
- package/lib-commonjs/DataGrid.js.map +1 -1
- package/lib-commonjs/DataGridBody.js +5 -4
- package/lib-commonjs/DataGridBody.js.map +1 -1
- package/lib-commonjs/DataGridCell.js +5 -4
- package/lib-commonjs/DataGridCell.js.map +1 -1
- package/lib-commonjs/DataGridHeader.js +5 -4
- package/lib-commonjs/DataGridHeader.js.map +1 -1
- package/lib-commonjs/DataGridHeaderCell.js +5 -4
- package/lib-commonjs/DataGridHeaderCell.js.map +1 -1
- package/lib-commonjs/DataGridRow.js +5 -4
- package/lib-commonjs/DataGridRow.js.map +1 -1
- package/lib-commonjs/DataGridSelectionCell.js +5 -4
- package/lib-commonjs/DataGridSelectionCell.js.map +1 -1
- package/lib-commonjs/Table.js +5 -4
- package/lib-commonjs/Table.js.map +1 -1
- package/lib-commonjs/TableBody.js +5 -4
- package/lib-commonjs/TableBody.js.map +1 -1
- package/lib-commonjs/TableCell.js +5 -4
- package/lib-commonjs/TableCell.js.map +1 -1
- package/lib-commonjs/TableCellActions.js +5 -4
- package/lib-commonjs/TableCellActions.js.map +1 -1
- package/lib-commonjs/TableCellLayout.js +5 -4
- package/lib-commonjs/TableCellLayout.js.map +1 -1
- package/lib-commonjs/TableCellPrimaryLayout.js +5 -4
- package/lib-commonjs/TableCellPrimaryLayout.js.map +1 -1
- package/lib-commonjs/TableHeader.js +5 -4
- package/lib-commonjs/TableHeader.js.map +1 -1
- package/lib-commonjs/TableHeaderCell.js +5 -4
- package/lib-commonjs/TableHeaderCell.js.map +1 -1
- package/lib-commonjs/TableResizeHandle.js +5 -4
- package/lib-commonjs/TableResizeHandle.js.map +1 -1
- package/lib-commonjs/TableRow.js +5 -4
- package/lib-commonjs/TableRow.js.map +1 -1
- package/lib-commonjs/TableSelectionCell.js +5 -4
- package/lib-commonjs/TableSelectionCell.js.map +1 -1
- package/lib-commonjs/components/DataGrid/DataGrid.js +20 -21
- package/lib-commonjs/components/DataGrid/DataGrid.js.map +1 -1
- package/lib-commonjs/components/DataGrid/DataGrid.types.js +5 -2
- package/lib-commonjs/components/DataGrid/DataGrid.types.js.map +1 -1
- package/lib-commonjs/components/DataGrid/index.js +10 -9
- package/lib-commonjs/components/DataGrid/index.js.map +1 -1
- package/lib-commonjs/components/DataGrid/renderDataGrid.js +15 -15
- package/lib-commonjs/components/DataGrid/renderDataGrid.js.map +1 -1
- package/lib-commonjs/components/DataGrid/useDataGrid.js +86 -106
- package/lib-commonjs/components/DataGrid/useDataGrid.js.map +1 -1
- package/lib-commonjs/components/DataGrid/useDataGridContextValues.js +20 -18
- package/lib-commonjs/components/DataGrid/useDataGridContextValues.js.map +1 -1
- package/lib-commonjs/components/DataGrid/useDataGridStyles.js +21 -16
- package/lib-commonjs/components/DataGrid/useDataGridStyles.js.map +1 -1
- package/lib-commonjs/components/DataGridBody/DataGridBody.js +19 -20
- package/lib-commonjs/components/DataGridBody/DataGridBody.js.map +1 -1
- package/lib-commonjs/components/DataGridBody/DataGridBody.types.js +5 -2
- package/lib-commonjs/components/DataGridBody/DataGridBody.types.js.map +1 -1
- package/lib-commonjs/components/DataGridBody/index.js +9 -8
- package/lib-commonjs/components/DataGridBody/index.js.map +1 -1
- package/lib-commonjs/components/DataGridBody/renderDataGridBody.js +17 -22
- package/lib-commonjs/components/DataGridBody/renderDataGridBody.js.map +1 -1
- package/lib-commonjs/components/DataGridBody/useDataGridBody.js +27 -34
- package/lib-commonjs/components/DataGridBody/useDataGridBody.js.map +1 -1
- package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.js +21 -16
- package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.js.map +1 -1
- package/lib-commonjs/components/DataGridCell/DataGridCell.js +19 -20
- package/lib-commonjs/components/DataGridCell/DataGridCell.js.map +1 -1
- package/lib-commonjs/components/DataGridCell/DataGridCell.types.js +3 -2
- package/lib-commonjs/components/DataGridCell/DataGridCell.types.js.map +1 -1
- package/lib-commonjs/components/DataGridCell/index.js +9 -8
- package/lib-commonjs/components/DataGridCell/index.js.map +1 -1
- package/lib-commonjs/components/DataGridCell/renderDataGridCell.js +10 -11
- package/lib-commonjs/components/DataGridCell/renderDataGridCell.js.map +1 -1
- package/lib-commonjs/components/DataGridCell/useDataGridCell.js +24 -29
- package/lib-commonjs/components/DataGridCell/useDataGridCell.js.map +1 -1
- package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.js +21 -16
- package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.js.map +1 -1
- package/lib-commonjs/components/DataGridHeader/DataGridHeader.js +19 -20
- package/lib-commonjs/components/DataGridHeader/DataGridHeader.js.map +1 -1
- package/lib-commonjs/components/DataGridHeader/DataGridHeader.types.js +3 -2
- package/lib-commonjs/components/DataGridHeader/DataGridHeader.types.js.map +1 -1
- package/lib-commonjs/components/DataGridHeader/index.js +9 -8
- package/lib-commonjs/components/DataGridHeader/index.js.map +1 -1
- package/lib-commonjs/components/DataGridHeader/renderDataGridHeader.js +10 -11
- package/lib-commonjs/components/DataGridHeader/renderDataGridHeader.js.map +1 -1
- package/lib-commonjs/components/DataGridHeader/useDataGridHeader.js +15 -20
- package/lib-commonjs/components/DataGridHeader/useDataGridHeader.js.map +1 -1
- package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.js +21 -16
- package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.js.map +1 -1
- package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.js +19 -20
- package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.js.map +1 -1
- package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.types.js +3 -2
- package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.types.js.map +1 -1
- package/lib-commonjs/components/DataGridHeaderCell/index.js +9 -8
- package/lib-commonjs/components/DataGridHeaderCell/index.js.map +1 -1
- package/lib-commonjs/components/DataGridHeaderCell/renderDataGridHeaderCell.js +10 -11
- package/lib-commonjs/components/DataGridHeaderCell/renderDataGridHeaderCell.js.map +1 -1
- package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCell.js +36 -43
- package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCell.js.map +1 -1
- package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js +33 -28
- package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js.map +1 -1
- package/lib-commonjs/components/DataGridRow/DataGridRow.js +19 -20
- package/lib-commonjs/components/DataGridRow/DataGridRow.js.map +1 -1
- package/lib-commonjs/components/DataGridRow/DataGridRow.types.js +5 -2
- package/lib-commonjs/components/DataGridRow/DataGridRow.types.js.map +1 -1
- package/lib-commonjs/components/DataGridRow/index.js +9 -8
- package/lib-commonjs/components/DataGridRow/index.js.map +1 -1
- package/lib-commonjs/components/DataGridRow/renderDataGridRow.js +17 -24
- package/lib-commonjs/components/DataGridRow/renderDataGridRow.js.map +1 -1
- package/lib-commonjs/components/DataGridRow/useDataGridRow.js +70 -75
- package/lib-commonjs/components/DataGridRow/useDataGridRow.js.map +1 -1
- package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.js +25 -20
- package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.js.map +1 -1
- package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.js +19 -20
- package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.js.map +1 -1
- package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.types.js +3 -2
- package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.types.js.map +1 -1
- package/lib-commonjs/components/DataGridSelectionCell/index.js +9 -8
- package/lib-commonjs/components/DataGridSelectionCell/index.js.map +1 -1
- package/lib-commonjs/components/DataGridSelectionCell/renderDataGridSelectionCell.js +10 -11
- package/lib-commonjs/components/DataGridSelectionCell/renderDataGridSelectionCell.js.map +1 -1
- package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCell.js +45 -50
- package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCell.js.map +1 -1
- package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js +29 -24
- package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js.map +1 -1
- package/lib-commonjs/components/Table/Table.js +20 -21
- package/lib-commonjs/components/Table/Table.js.map +1 -1
- package/lib-commonjs/components/Table/Table.types.js +3 -2
- package/lib-commonjs/components/Table/Table.types.js.map +1 -1
- package/lib-commonjs/components/Table/index.js +9 -8
- package/lib-commonjs/components/Table/index.js.map +1 -1
- package/lib-commonjs/components/Table/renderTable.js +16 -21
- package/lib-commonjs/components/Table/renderTable.js.map +1 -1
- package/lib-commonjs/components/Table/useTable.js +27 -31
- package/lib-commonjs/components/Table/useTable.js.map +1 -1
- package/lib-commonjs/components/Table/useTableContextValues.js +22 -19
- package/lib-commonjs/components/Table/useTableContextValues.js.map +1 -1
- package/lib-commonjs/components/Table/useTableStyles.js +55 -41
- package/lib-commonjs/components/Table/useTableStyles.js.map +1 -1
- package/lib-commonjs/components/TableBody/TableBody.js +19 -20
- package/lib-commonjs/components/TableBody/TableBody.js.map +1 -1
- package/lib-commonjs/components/TableBody/TableBody.types.js +3 -2
- package/lib-commonjs/components/TableBody/TableBody.types.js.map +1 -1
- package/lib-commonjs/components/TableBody/index.js +9 -8
- package/lib-commonjs/components/TableBody/index.js.map +1 -1
- package/lib-commonjs/components/TableBody/renderTableBody.js +13 -18
- package/lib-commonjs/components/TableBody/renderTableBody.js.map +1 -1
- package/lib-commonjs/components/TableBody/useTableBody.js +26 -33
- package/lib-commonjs/components/TableBody/useTableBody.js.map +1 -1
- package/lib-commonjs/components/TableBody/useTableBodyStyles.js +39 -29
- package/lib-commonjs/components/TableBody/useTableBodyStyles.js.map +1 -1
- package/lib-commonjs/components/TableCell/TableCell.js +19 -20
- package/lib-commonjs/components/TableCell/TableCell.js.map +1 -1
- package/lib-commonjs/components/TableCell/TableCell.types.js +3 -2
- package/lib-commonjs/components/TableCell/TableCell.types.js.map +1 -1
- package/lib-commonjs/components/TableCell/index.js +9 -8
- package/lib-commonjs/components/TableCell/index.js.map +1 -1
- package/lib-commonjs/components/TableCell/renderTableCell.js +13 -18
- package/lib-commonjs/components/TableCell/renderTableCell.js.map +1 -1
- package/lib-commonjs/components/TableCell/useTableCell.js +27 -35
- package/lib-commonjs/components/TableCell/useTableCell.js.map +1 -1
- package/lib-commonjs/components/TableCell/useTableCellStyles.js +125 -74
- package/lib-commonjs/components/TableCell/useTableCellStyles.js.map +1 -1
- package/lib-commonjs/components/TableCellActions/TableCellActions.js +19 -20
- package/lib-commonjs/components/TableCellActions/TableCellActions.js.map +1 -1
- package/lib-commonjs/components/TableCellActions/TableCellActions.types.js +3 -2
- package/lib-commonjs/components/TableCellActions/TableCellActions.types.js.map +1 -1
- package/lib-commonjs/components/TableCellActions/index.js +9 -8
- package/lib-commonjs/components/TableCellActions/index.js.map +1 -1
- package/lib-commonjs/components/TableCellActions/renderTableCellActions.js +13 -18
- package/lib-commonjs/components/TableCellActions/renderTableCellActions.js.map +1 -1
- package/lib-commonjs/components/TableCellActions/useTableCellActions.js +22 -27
- package/lib-commonjs/components/TableCellActions/useTableCellActions.js.map +1 -1
- package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.js +51 -30
- package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.js.map +1 -1
- package/lib-commonjs/components/TableCellLayout/TableCellLayout.js +20 -21
- package/lib-commonjs/components/TableCellLayout/TableCellLayout.js.map +1 -1
- package/lib-commonjs/components/TableCellLayout/TableCellLayout.types.js +3 -2
- package/lib-commonjs/components/TableCellLayout/TableCellLayout.types.js.map +1 -1
- package/lib-commonjs/components/TableCellLayout/index.js +9 -8
- package/lib-commonjs/components/TableCellLayout/index.js.map +1 -1
- package/lib-commonjs/components/TableCellLayout/renderTableCellLayout.js +16 -29
- package/lib-commonjs/components/TableCellLayout/renderTableCellLayout.js.map +1 -1
- package/lib-commonjs/components/TableCellLayout/useTableCellLayout.js +41 -48
- package/lib-commonjs/components/TableCellLayout/useTableCellLayout.js.map +1 -1
- package/lib-commonjs/components/TableCellLayout/useTableCellLayoutContextValues.js +18 -15
- package/lib-commonjs/components/TableCellLayout/useTableCellLayoutContextValues.js.map +1 -1
- package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.js +113 -92
- package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.js.map +1 -1
- package/lib-commonjs/components/TableHeader/TableHeader.js +19 -20
- package/lib-commonjs/components/TableHeader/TableHeader.js.map +1 -1
- package/lib-commonjs/components/TableHeader/TableHeader.types.js +3 -2
- package/lib-commonjs/components/TableHeader/TableHeader.types.js.map +1 -1
- package/lib-commonjs/components/TableHeader/index.js +9 -8
- package/lib-commonjs/components/TableHeader/index.js.map +1 -1
- package/lib-commonjs/components/TableHeader/renderTableHeader.js +16 -21
- package/lib-commonjs/components/TableHeader/renderTableHeader.js.map +1 -1
- package/lib-commonjs/components/TableHeader/useTableHeader.js +26 -33
- package/lib-commonjs/components/TableHeader/useTableHeader.js.map +1 -1
- package/lib-commonjs/components/TableHeader/useTableHeaderStyles.js +39 -29
- package/lib-commonjs/components/TableHeader/useTableHeaderStyles.js.map +1 -1
- package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.js +19 -20
- package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.js.map +1 -1
- package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.types.js +3 -2
- package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.types.js.map +1 -1
- package/lib-commonjs/components/TableHeaderCell/index.js +9 -8
- package/lib-commonjs/components/TableHeaderCell/index.js.map +1 -1
- package/lib-commonjs/components/TableHeaderCell/renderTableHeaderCell.js +13 -24
- package/lib-commonjs/components/TableHeaderCell/renderTableHeaderCell.js.map +1 -1
- package/lib-commonjs/components/TableHeaderCell/useTableHeaderCell.js +59 -67
- package/lib-commonjs/components/TableHeaderCell/useTableHeaderCell.js.map +1 -1
- package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.js +205 -114
- package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.js.map +1 -1
- package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.js +19 -20
- package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.js.map +1 -1
- package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.types.js +3 -2
- package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.types.js.map +1 -1
- package/lib-commonjs/components/TableResizeHandle/index.js +9 -8
- package/lib-commonjs/components/TableResizeHandle/index.js.map +1 -1
- package/lib-commonjs/components/TableResizeHandle/renderTableResizeHandle.js +13 -18
- package/lib-commonjs/components/TableResizeHandle/renderTableResizeHandle.js.map +1 -1
- package/lib-commonjs/components/TableResizeHandle/useTableResizeHandle.js +26 -31
- package/lib-commonjs/components/TableResizeHandle/useTableResizeHandle.js.map +1 -1
- package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.js +87 -47
- package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.js.map +1 -1
- package/lib-commonjs/components/TableRow/TableRow.js +19 -20
- package/lib-commonjs/components/TableRow/TableRow.js.map +1 -1
- package/lib-commonjs/components/TableRow/TableRow.types.js +3 -2
- package/lib-commonjs/components/TableRow/TableRow.types.js.map +1 -1
- package/lib-commonjs/components/TableRow/index.js +9 -8
- package/lib-commonjs/components/TableRow/index.js.map +1 -1
- package/lib-commonjs/components/TableRow/renderTableRow.js +13 -18
- package/lib-commonjs/components/TableRow/renderTableRow.js.map +1 -1
- package/lib-commonjs/components/TableRow/useTableRow.js +35 -42
- package/lib-commonjs/components/TableRow/useTableRow.js.map +1 -1
- package/lib-commonjs/components/TableRow/useTableRowStyles.js +482 -209
- package/lib-commonjs/components/TableRow/useTableRowStyles.js.map +1 -1
- package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.js +19 -20
- package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.js.map +1 -1
- package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.types.js +3 -2
- package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.types.js.map +1 -1
- package/lib-commonjs/components/TableSelectionCell/index.js +9 -8
- package/lib-commonjs/components/TableSelectionCell/index.js.map +1 -1
- package/lib-commonjs/components/TableSelectionCell/renderTableSelectionCell.js +13 -22
- package/lib-commonjs/components/TableSelectionCell/renderTableSelectionCell.js.map +1 -1
- package/lib-commonjs/components/TableSelectionCell/useTableSelectionCell.js +46 -58
- package/lib-commonjs/components/TableSelectionCell/useTableSelectionCell.js.map +1 -1
- package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.js +139 -82
- package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.js.map +1 -1
- package/lib-commonjs/contexts/columnIdContext.js +20 -12
- package/lib-commonjs/contexts/columnIdContext.js.map +1 -1
- package/lib-commonjs/contexts/dataGridContext.js +22 -14
- package/lib-commonjs/contexts/dataGridContext.js.map +1 -1
- package/lib-commonjs/contexts/rowIdContext.js +20 -12
- package/lib-commonjs/contexts/rowIdContext.js.map +1 -1
- package/lib-commonjs/contexts/tableContext.js +23 -15
- package/lib-commonjs/contexts/tableContext.js.map +1 -1
- package/lib-commonjs/contexts/tableHeaderContext.js +17 -8
- package/lib-commonjs/contexts/tableHeaderContext.js.map +1 -1
- package/lib-commonjs/hooks/createColumn.js +27 -35
- package/lib-commonjs/hooks/createColumn.js.map +1 -1
- package/lib-commonjs/hooks/index.js +10 -9
- package/lib-commonjs/hooks/index.js.map +1 -1
- package/lib-commonjs/hooks/selectionManager.js +80 -72
- package/lib-commonjs/hooks/selectionManager.js.map +1 -1
- package/lib-commonjs/hooks/types.js +5 -2
- package/lib-commonjs/hooks/types.js.map +1 -1
- package/lib-commonjs/hooks/useKeyboardResizing.js +109 -94
- package/lib-commonjs/hooks/useKeyboardResizing.js.map +1 -1
- package/lib-commonjs/hooks/useMeasureElement.js +53 -50
- package/lib-commonjs/hooks/useMeasureElement.js.map +1 -1
- package/lib-commonjs/hooks/useTableColumnResizeMouseHandler.js +77 -68
- package/lib-commonjs/hooks/useTableColumnResizeMouseHandler.js.map +1 -1
- package/lib-commonjs/hooks/useTableColumnResizeState.js +111 -112
- package/lib-commonjs/hooks/useTableColumnResizeState.js.map +1 -1
- package/lib-commonjs/hooks/useTableColumnSizing.js +91 -85
- package/lib-commonjs/hooks/useTableColumnSizing.js.map +1 -1
- package/lib-commonjs/hooks/useTableFeatures.js +51 -44
- package/lib-commonjs/hooks/useTableFeatures.js.map +1 -1
- package/lib-commonjs/hooks/useTableSelection.js +83 -75
- package/lib-commonjs/hooks/useTableSelection.js.map +1 -1
- package/lib-commonjs/hooks/useTableSort.js +86 -83
- package/lib-commonjs/hooks/useTableSort.js.map +1 -1
- package/lib-commonjs/index.js +133 -632
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/utils/columnResizeUtils.js +120 -145
- package/lib-commonjs/utils/columnResizeUtils.js.map +1 -1
- package/package.json +16 -15
- package/lib-amd/DataGrid.js +0 -6
- package/lib-amd/DataGrid.js.map +0 -1
- package/lib-amd/DataGridBody.js +0 -6
- package/lib-amd/DataGridBody.js.map +0 -1
- package/lib-amd/DataGridCell.js +0 -6
- package/lib-amd/DataGridCell.js.map +0 -1
- package/lib-amd/DataGridHeader.js +0 -6
- package/lib-amd/DataGridHeader.js.map +0 -1
- package/lib-amd/DataGridHeaderCell.js +0 -6
- package/lib-amd/DataGridHeaderCell.js.map +0 -1
- package/lib-amd/DataGridRow.js +0 -6
- package/lib-amd/DataGridRow.js.map +0 -1
- package/lib-amd/DataGridSelectionCell.js +0 -6
- package/lib-amd/DataGridSelectionCell.js.map +0 -1
- package/lib-amd/Table.js +0 -6
- package/lib-amd/Table.js.map +0 -1
- package/lib-amd/TableBody.js +0 -6
- package/lib-amd/TableBody.js.map +0 -1
- package/lib-amd/TableCell.js +0 -6
- package/lib-amd/TableCell.js.map +0 -1
- package/lib-amd/TableCellActions.js +0 -6
- package/lib-amd/TableCellActions.js.map +0 -1
- package/lib-amd/TableCellLayout.js +0 -6
- package/lib-amd/TableCellLayout.js.map +0 -1
- package/lib-amd/TableHeader.js +0 -6
- package/lib-amd/TableHeader.js.map +0 -1
- package/lib-amd/TableHeaderCell.js +0 -6
- package/lib-amd/TableHeaderCell.js.map +0 -1
- package/lib-amd/TableResizeHandle.js +0 -6
- package/lib-amd/TableResizeHandle.js.map +0 -1
- package/lib-amd/TableRow.js +0 -6
- package/lib-amd/TableRow.js.map +0 -1
- package/lib-amd/TableSelectionCell.js +0 -6
- package/lib-amd/TableSelectionCell.js.map +0 -1
- package/lib-amd/components/DataGrid/DataGrid.js +0 -17
- package/lib-amd/components/DataGrid/DataGrid.js.map +0 -1
- package/lib-amd/components/DataGrid/DataGrid.types.js +0 -5
- package/lib-amd/components/DataGrid/DataGrid.types.js.map +0 -1
- package/lib-amd/components/DataGrid/index.js +0 -11
- package/lib-amd/components/DataGrid/index.js.map +0 -1
- package/lib-amd/components/DataGrid/renderDataGrid.js +0 -13
- package/lib-amd/components/DataGrid/renderDataGrid.js.map +0 -1
- package/lib-amd/components/DataGrid/useDataGrid.js +0 -67
- package/lib-amd/components/DataGrid/useDataGrid.js.map +0 -1
- package/lib-amd/components/DataGrid/useDataGridContextValues.js +0 -11
- package/lib-amd/components/DataGrid/useDataGridContextValues.js.map +0 -1
- package/lib-amd/components/DataGrid/useDataGridStyles.js +0 -18
- package/lib-amd/components/DataGrid/useDataGridStyles.js.map +0 -1
- package/lib-amd/components/DataGridBody/DataGridBody.js +0 -17
- package/lib-amd/components/DataGridBody/DataGridBody.js.map +0 -1
- package/lib-amd/components/DataGridBody/DataGridBody.types.js +0 -5
- package/lib-amd/components/DataGridBody/DataGridBody.types.js.map +0 -1
- package/lib-amd/components/DataGridBody/index.js +0 -10
- package/lib-amd/components/DataGridBody/index.js.map +0 -1
- package/lib-amd/components/DataGridBody/renderDataGridBody.js +0 -14
- package/lib-amd/components/DataGridBody/renderDataGridBody.js.map +0 -1
- package/lib-amd/components/DataGridBody/useDataGridBody.js +0 -24
- package/lib-amd/components/DataGridBody/useDataGridBody.js.map +0 -1
- package/lib-amd/components/DataGridBody/useDataGridBodyStyles.js +0 -18
- package/lib-amd/components/DataGridBody/useDataGridBodyStyles.js.map +0 -1
- package/lib-amd/components/DataGridCell/DataGridCell.js +0 -17
- package/lib-amd/components/DataGridCell/DataGridCell.js.map +0 -1
- package/lib-amd/components/DataGridCell/DataGridCell.types.js +0 -5
- package/lib-amd/components/DataGridCell/DataGridCell.types.js.map +0 -1
- package/lib-amd/components/DataGridCell/index.js +0 -10
- package/lib-amd/components/DataGridCell/index.js.map +0 -1
- package/lib-amd/components/DataGridCell/renderDataGridCell.js +0 -13
- package/lib-amd/components/DataGridCell/renderDataGridCell.js.map +0 -1
- package/lib-amd/components/DataGridCell/useDataGridCell.js +0 -23
- package/lib-amd/components/DataGridCell/useDataGridCell.js.map +0 -1
- package/lib-amd/components/DataGridCell/useDataGridCellStyles.js +0 -18
- package/lib-amd/components/DataGridCell/useDataGridCellStyles.js.map +0 -1
- package/lib-amd/components/DataGridHeader/DataGridHeader.js +0 -17
- package/lib-amd/components/DataGridHeader/DataGridHeader.js.map +0 -1
- package/lib-amd/components/DataGridHeader/DataGridHeader.types.js +0 -5
- package/lib-amd/components/DataGridHeader/DataGridHeader.types.js.map +0 -1
- package/lib-amd/components/DataGridHeader/index.js +0 -10
- package/lib-amd/components/DataGridHeader/index.js.map +0 -1
- package/lib-amd/components/DataGridHeader/renderDataGridHeader.js +0 -13
- package/lib-amd/components/DataGridHeader/renderDataGridHeader.js.map +0 -1
- package/lib-amd/components/DataGridHeader/useDataGridHeader.js +0 -19
- package/lib-amd/components/DataGridHeader/useDataGridHeader.js.map +0 -1
- package/lib-amd/components/DataGridHeader/useDataGridHeaderStyles.js +0 -18
- package/lib-amd/components/DataGridHeader/useDataGridHeaderStyles.js.map +0 -1
- package/lib-amd/components/DataGridHeaderCell/DataGridHeaderCell.js +0 -17
- package/lib-amd/components/DataGridHeaderCell/DataGridHeaderCell.js.map +0 -1
- package/lib-amd/components/DataGridHeaderCell/DataGridHeaderCell.types.js +0 -5
- package/lib-amd/components/DataGridHeaderCell/DataGridHeaderCell.types.js.map +0 -1
- package/lib-amd/components/DataGridHeaderCell/index.js +0 -10
- package/lib-amd/components/DataGridHeaderCell/index.js.map +0 -1
- package/lib-amd/components/DataGridHeaderCell/renderDataGridHeaderCell.js +0 -13
- package/lib-amd/components/DataGridHeaderCell/renderDataGridHeaderCell.js.map +0 -1
- package/lib-amd/components/DataGridHeaderCell/useDataGridHeaderCell.js +0 -34
- package/lib-amd/components/DataGridHeaderCell/useDataGridHeaderCell.js.map +0 -1
- package/lib-amd/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js +0 -30
- package/lib-amd/components/DataGridHeaderCell/useDataGridHeaderCellStyles.js.map +0 -1
- package/lib-amd/components/DataGridRow/DataGridRow.js +0 -17
- package/lib-amd/components/DataGridRow/DataGridRow.js.map +0 -1
- package/lib-amd/components/DataGridRow/DataGridRow.types.js +0 -5
- package/lib-amd/components/DataGridRow/DataGridRow.types.js.map +0 -1
- package/lib-amd/components/DataGridRow/index.js +0 -10
- package/lib-amd/components/DataGridRow/index.js.map +0 -1
- package/lib-amd/components/DataGridRow/renderDataGridRow.js +0 -16
- package/lib-amd/components/DataGridRow/renderDataGridRow.js.map +0 -1
- package/lib-amd/components/DataGridRow/useDataGridRow.js +0 -50
- package/lib-amd/components/DataGridRow/useDataGridRow.js.map +0 -1
- package/lib-amd/components/DataGridRow/useDataGridRowStyles.js +0 -22
- package/lib-amd/components/DataGridRow/useDataGridRowStyles.js.map +0 -1
- package/lib-amd/components/DataGridSelectionCell/DataGridSelectionCell.js +0 -17
- package/lib-amd/components/DataGridSelectionCell/DataGridSelectionCell.js.map +0 -1
- package/lib-amd/components/DataGridSelectionCell/DataGridSelectionCell.types.js +0 -5
- package/lib-amd/components/DataGridSelectionCell/DataGridSelectionCell.types.js.map +0 -1
- package/lib-amd/components/DataGridSelectionCell/index.js +0 -10
- package/lib-amd/components/DataGridSelectionCell/index.js.map +0 -1
- package/lib-amd/components/DataGridSelectionCell/renderDataGridSelectionCell.js +0 -13
- package/lib-amd/components/DataGridSelectionCell/renderDataGridSelectionCell.js.map +0 -1
- package/lib-amd/components/DataGridSelectionCell/useDataGridSelectionCell.js +0 -39
- package/lib-amd/components/DataGridSelectionCell/useDataGridSelectionCell.js.map +0 -1
- package/lib-amd/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js +0 -26
- package/lib-amd/components/DataGridSelectionCell/useDataGridSelectionCellStyles.js.map +0 -1
- package/lib-amd/components/Table/Table.js +0 -17
- package/lib-amd/components/Table/Table.js.map +0 -1
- package/lib-amd/components/Table/Table.types.js +0 -5
- package/lib-amd/components/Table/Table.types.js.map +0 -1
- package/lib-amd/components/Table/index.js +0 -10
- package/lib-amd/components/Table/index.js.map +0 -1
- package/lib-amd/components/Table/renderTable.js +0 -15
- package/lib-amd/components/Table/renderTable.js.map +0 -1
- package/lib-amd/components/Table/useTable.js +0 -29
- package/lib-amd/components/Table/useTable.js.map +0 -1
- package/lib-amd/components/Table/useTableContextValues.js +0 -18
- package/lib-amd/components/Table/useTableContextValues.js.map +0 -1
- package/lib-amd/components/Table/useTableStyles.js +0 -45
- package/lib-amd/components/Table/useTableStyles.js.map +0 -1
- package/lib-amd/components/TableBody/TableBody.js +0 -17
- package/lib-amd/components/TableBody/TableBody.js.map +0 -1
- package/lib-amd/components/TableBody/TableBody.types.js +0 -5
- package/lib-amd/components/TableBody/TableBody.types.js.map +0 -1
- package/lib-amd/components/TableBody/index.js +0 -10
- package/lib-amd/components/TableBody/index.js.map +0 -1
- package/lib-amd/components/TableBody/renderTableBody.js +0 -14
- package/lib-amd/components/TableBody/renderTableBody.js.map +0 -1
- package/lib-amd/components/TableBody/useTableBody.js +0 -28
- package/lib-amd/components/TableBody/useTableBody.js.map +0 -1
- package/lib-amd/components/TableBody/useTableBodyStyles.js +0 -32
- package/lib-amd/components/TableBody/useTableBodyStyles.js.map +0 -1
- package/lib-amd/components/TableCell/TableCell.js +0 -17
- package/lib-amd/components/TableCell/TableCell.js.map +0 -1
- package/lib-amd/components/TableCell/TableCell.types.js +0 -5
- package/lib-amd/components/TableCell/TableCell.types.js.map +0 -1
- package/lib-amd/components/TableCell/index.js +0 -10
- package/lib-amd/components/TableCell/index.js.map +0 -1
- package/lib-amd/components/TableCell/renderTableCell.js +0 -14
- package/lib-amd/components/TableCell/renderTableCell.js.map +0 -1
- package/lib-amd/components/TableCell/useTableCell.js +0 -29
- package/lib-amd/components/TableCell/useTableCell.js.map +0 -1
- package/lib-amd/components/TableCell/useTableCellStyles.js +0 -56
- package/lib-amd/components/TableCell/useTableCellStyles.js.map +0 -1
- package/lib-amd/components/TableCellActions/TableCellActions.js +0 -17
- package/lib-amd/components/TableCellActions/TableCellActions.js.map +0 -1
- package/lib-amd/components/TableCellActions/TableCellActions.types.js +0 -5
- package/lib-amd/components/TableCellActions/TableCellActions.types.js.map +0 -1
- package/lib-amd/components/TableCellActions/index.js +0 -10
- package/lib-amd/components/TableCellActions/index.js.map +0 -1
- package/lib-amd/components/TableCellActions/renderTableCellActions.js +0 -14
- package/lib-amd/components/TableCellActions/renderTableCellActions.js.map +0 -1
- package/lib-amd/components/TableCellActions/useTableCellActions.js +0 -26
- package/lib-amd/components/TableCellActions/useTableCellActions.js.map +0 -1
- package/lib-amd/components/TableCellActions/useTableCellActionsStyles.js +0 -35
- package/lib-amd/components/TableCellActions/useTableCellActionsStyles.js.map +0 -1
- package/lib-amd/components/TableCellLayout/TableCellLayout.js +0 -17
- package/lib-amd/components/TableCellLayout/TableCellLayout.js.map +0 -1
- package/lib-amd/components/TableCellLayout/TableCellLayout.types.js +0 -5
- package/lib-amd/components/TableCellLayout/TableCellLayout.types.js.map +0 -1
- package/lib-amd/components/TableCellLayout/index.js +0 -10
- package/lib-amd/components/TableCellLayout/index.js.map +0 -1
- package/lib-amd/components/TableCellLayout/renderTableCellLayout.js +0 -19
- package/lib-amd/components/TableCellLayout/renderTableCellLayout.js.map +0 -1
- package/lib-amd/components/TableCellLayout/useTableCellLayout.js +0 -42
- package/lib-amd/components/TableCellLayout/useTableCellLayout.js.map +0 -1
- package/lib-amd/components/TableCellLayout/useTableCellLayoutContextValues.js +0 -16
- package/lib-amd/components/TableCellLayout/useTableCellLayoutContextValues.js.map +0 -1
- package/lib-amd/components/TableCellLayout/useTableCellLayoutStyles.js +0 -79
- package/lib-amd/components/TableCellLayout/useTableCellLayoutStyles.js.map +0 -1
- package/lib-amd/components/TableHeader/TableHeader.js +0 -17
- package/lib-amd/components/TableHeader/TableHeader.js.map +0 -1
- package/lib-amd/components/TableHeader/TableHeader.types.js +0 -5
- package/lib-amd/components/TableHeader/TableHeader.types.js.map +0 -1
- package/lib-amd/components/TableHeader/index.js +0 -10
- package/lib-amd/components/TableHeader/index.js.map +0 -1
- package/lib-amd/components/TableHeader/renderTableHeader.js +0 -15
- package/lib-amd/components/TableHeader/renderTableHeader.js.map +0 -1
- package/lib-amd/components/TableHeader/useTableHeader.js +0 -28
- package/lib-amd/components/TableHeader/useTableHeader.js.map +0 -1
- package/lib-amd/components/TableHeader/useTableHeaderStyles.js +0 -32
- package/lib-amd/components/TableHeader/useTableHeaderStyles.js.map +0 -1
- package/lib-amd/components/TableHeaderCell/TableHeaderCell.js +0 -17
- package/lib-amd/components/TableHeaderCell/TableHeaderCell.js.map +0 -1
- package/lib-amd/components/TableHeaderCell/TableHeaderCell.types.js +0 -5
- package/lib-amd/components/TableHeaderCell/TableHeaderCell.types.js.map +0 -1
- package/lib-amd/components/TableHeaderCell/index.js +0 -10
- package/lib-amd/components/TableHeaderCell/index.js.map +0 -1
- package/lib-amd/components/TableHeaderCell/renderTableHeaderCell.js +0 -18
- package/lib-amd/components/TableHeaderCell/renderTableHeaderCell.js.map +0 -1
- package/lib-amd/components/TableHeaderCell/useTableHeaderCell.js +0 -48
- package/lib-amd/components/TableHeaderCell/useTableHeaderCell.js.map +0 -1
- package/lib-amd/components/TableHeaderCell/useTableHeaderCellStyles.js +0 -67
- package/lib-amd/components/TableHeaderCell/useTableHeaderCellStyles.js.map +0 -1
- package/lib-amd/components/TableResizeHandle/TableResizeHandle.js +0 -17
- package/lib-amd/components/TableResizeHandle/TableResizeHandle.js.map +0 -1
- package/lib-amd/components/TableResizeHandle/TableResizeHandle.types.js +0 -5
- package/lib-amd/components/TableResizeHandle/TableResizeHandle.types.js.map +0 -1
- package/lib-amd/components/TableResizeHandle/index.js +0 -10
- package/lib-amd/components/TableResizeHandle/index.js.map +0 -1
- package/lib-amd/components/TableResizeHandle/renderTableResizeHandle.js +0 -14
- package/lib-amd/components/TableResizeHandle/renderTableResizeHandle.js.map +0 -1
- package/lib-amd/components/TableResizeHandle/useTableResizeHandle.js +0 -29
- package/lib-amd/components/TableResizeHandle/useTableResizeHandle.js.map +0 -1
- package/lib-amd/components/TableResizeHandle/useTableResizeHandleStyles.js +0 -37
- package/lib-amd/components/TableResizeHandle/useTableResizeHandleStyles.js.map +0 -1
- package/lib-amd/components/TableRow/TableRow.js +0 -17
- package/lib-amd/components/TableRow/TableRow.js.map +0 -1
- package/lib-amd/components/TableRow/TableRow.types.js +0 -5
- package/lib-amd/components/TableRow/TableRow.types.js.map +0 -1
- package/lib-amd/components/TableRow/index.js +0 -10
- package/lib-amd/components/TableRow/index.js.map +0 -1
- package/lib-amd/components/TableRow/renderTableRow.js +0 -14
- package/lib-amd/components/TableRow/renderTableRow.js.map +0 -1
- package/lib-amd/components/TableRow/useTableRow.js +0 -34
- package/lib-amd/components/TableRow/useTableRow.js.map +0 -1
- package/lib-amd/components/TableRow/useTableRowStyles.js +0 -98
- package/lib-amd/components/TableRow/useTableRowStyles.js.map +0 -1
- package/lib-amd/components/TableSelectionCell/TableSelectionCell.js +0 -17
- package/lib-amd/components/TableSelectionCell/TableSelectionCell.js.map +0 -1
- package/lib-amd/components/TableSelectionCell/TableSelectionCell.types.js +0 -5
- package/lib-amd/components/TableSelectionCell/TableSelectionCell.types.js.map +0 -1
- package/lib-amd/components/TableSelectionCell/index.js +0 -10
- package/lib-amd/components/TableSelectionCell/index.js.map +0 -1
- package/lib-amd/components/TableSelectionCell/renderTableSelectionCell.js +0 -16
- package/lib-amd/components/TableSelectionCell/renderTableSelectionCell.js.map +0 -1
- package/lib-amd/components/TableSelectionCell/useTableSelectionCell.js +0 -28
- package/lib-amd/components/TableSelectionCell/useTableSelectionCell.js.map +0 -1
- package/lib-amd/components/TableSelectionCell/useTableSelectionCellStyles.js +0 -58
- package/lib-amd/components/TableSelectionCell/useTableSelectionCellStyles.js.map +0 -1
- package/lib-amd/contexts/columnIdContext.js +0 -11
- package/lib-amd/contexts/columnIdContext.js.map +0 -1
- package/lib-amd/contexts/dataGridContext.js +0 -16
- package/lib-amd/contexts/dataGridContext.js.map +0 -1
- package/lib-amd/contexts/rowIdContext.js +0 -11
- package/lib-amd/contexts/rowIdContext.js.map +0 -1
- package/lib-amd/contexts/tableContext.js +0 -15
- package/lib-amd/contexts/tableContext.js.map +0 -1
- package/lib-amd/contexts/tableHeaderContext.js +0 -11
- package/lib-amd/contexts/tableHeaderContext.js.map +0 -1
- package/lib-amd/hooks/createColumn.js +0 -36
- package/lib-amd/hooks/createColumn.js.map +0 -1
- package/lib-amd/hooks/index.js +0 -11
- package/lib-amd/hooks/index.js.map +0 -1
- package/lib-amd/hooks/selectionManager.js +0 -82
- package/lib-amd/hooks/selectionManager.js.map +0 -1
- package/lib-amd/hooks/types.js +0 -5
- package/lib-amd/hooks/types.js.map +0 -1
- package/lib-amd/hooks/useKeyboardResizing.js +0 -97
- package/lib-amd/hooks/useKeyboardResizing.js.map +0 -1
- package/lib-amd/hooks/useMeasureElement.js +0 -46
- package/lib-amd/hooks/useMeasureElement.js.map +0 -1
- package/lib-amd/hooks/useTableColumnResizeMouseHandler.js +0 -63
- package/lib-amd/hooks/useTableColumnResizeMouseHandler.js.map +0 -1
- package/lib-amd/hooks/useTableColumnResizeState.js +0 -75
- package/lib-amd/hooks/useTableColumnResizeState.js.map +0 -1
- package/lib-amd/hooks/useTableColumnSizing.js +0 -67
- package/lib-amd/hooks/useTableColumnSizing.js.map +0 -1
- package/lib-amd/hooks/useTableFeatures.js +0 -39
- package/lib-amd/hooks/useTableFeatures.js.map +0 -1
- package/lib-amd/hooks/useTableSelection.js +0 -76
- package/lib-amd/hooks/useTableSelection.js.map +0 -1
- package/lib-amd/hooks/useTableSort.js +0 -74
- package/lib-amd/hooks/useTableSort.js.map +0 -1
- package/lib-amd/index.js +0 -107
- package/lib-amd/index.js.map +0 -1
- package/lib-amd/utils/columnResizeUtils.js +0 -158
- package/lib-amd/utils/columnResizeUtils.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableCellActions.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-table/src/TableCellActions.ts"],"names":[],"mappings":";;;IAAA,uCAAoD","sourcesContent":["export * from './components/TableCellActions/index';\n"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "tslib", "./components/TableCellLayout/index"], function (require, exports, tslib_1, index_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
tslib_1.__exportStar(index_1, exports);
|
|
5
|
-
});
|
|
6
|
-
//# sourceMappingURL=TableCellLayout.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableCellLayout.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-table/src/TableCellLayout.ts"],"names":[],"mappings":";;;IAAA,uCAAmD","sourcesContent":["export * from './components/TableCellLayout/index';\n"]}
|
package/lib-amd/TableHeader.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "tslib", "./components/TableHeader/index"], function (require, exports, tslib_1, index_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
tslib_1.__exportStar(index_1, exports);
|
|
5
|
-
});
|
|
6
|
-
//# sourceMappingURL=TableHeader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableHeader.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-table/src/TableHeader.ts"],"names":[],"mappings":";;;IAAA,uCAA+C","sourcesContent":["export * from './components/TableHeader/index';\n"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "tslib", "./components/TableHeaderCell/index"], function (require, exports, tslib_1, index_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
tslib_1.__exportStar(index_1, exports);
|
|
5
|
-
});
|
|
6
|
-
//# sourceMappingURL=TableHeaderCell.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableHeaderCell.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-table/src/TableHeaderCell.ts"],"names":[],"mappings":";;;IAAA,uCAAmD","sourcesContent":["export * from './components/TableHeaderCell/index';\n"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "tslib", "./components/TableResizeHandle/index"], function (require, exports, tslib_1, index_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
tslib_1.__exportStar(index_1, exports);
|
|
5
|
-
});
|
|
6
|
-
//# sourceMappingURL=TableResizeHandle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableResizeHandle.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-table/src/TableResizeHandle.ts"],"names":[],"mappings":";;;IAAA,uCAAqD","sourcesContent":["export * from './components/TableResizeHandle/index';\n"]}
|
package/lib-amd/TableRow.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "tslib", "./components/TableRow/index"], function (require, exports, tslib_1, index_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
tslib_1.__exportStar(index_1, exports);
|
|
5
|
-
});
|
|
6
|
-
//# sourceMappingURL=TableRow.js.map
|
package/lib-amd/TableRow.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableRow.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-table/src/TableRow.ts"],"names":[],"mappings":";;;IAAA,uCAA4C","sourcesContent":["export * from './components/TableRow/index';\n"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "tslib", "./components/TableSelectionCell/index"], function (require, exports, tslib_1, index_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
tslib_1.__exportStar(index_1, exports);
|
|
5
|
-
});
|
|
6
|
-
//# sourceMappingURL=TableSelectionCell.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableSelectionCell.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-table/src/TableSelectionCell.ts"],"names":[],"mappings":";;;IAAA,uCAAsD","sourcesContent":["export * from './components/TableSelectionCell/index';\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "react", "./useDataGrid", "./renderDataGrid", "./useDataGridStyles", "./useDataGridContextValues", "@fluentui/react-shared-contexts"], function (require, exports, React, useDataGrid_1, renderDataGrid_1, useDataGridStyles_1, useDataGridContextValues_1, react_shared_contexts_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.DataGrid = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* DataGrid component
|
|
7
|
-
*/
|
|
8
|
-
exports.DataGrid = React.forwardRef(function (props, ref) {
|
|
9
|
-
var state = useDataGrid_1.useDataGrid_unstable(props, ref);
|
|
10
|
-
useDataGridStyles_1.useDataGridStyles_unstable(state);
|
|
11
|
-
var useCustomStyles = react_shared_contexts_1.useCustomStyleHooks_unstable().useDataGridStyles_unstable;
|
|
12
|
-
useCustomStyles(state);
|
|
13
|
-
return renderDataGrid_1.renderDataGrid_unstable(state, useDataGridContextValues_1.useDataGridContextValues_unstable(state));
|
|
14
|
-
});
|
|
15
|
-
exports.DataGrid.displayName = 'DataGrid';
|
|
16
|
-
});
|
|
17
|
-
//# sourceMappingURL=DataGrid.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DataGrid.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-table/src/components/DataGrid/DataGrid.tsx"],"names":[],"mappings":";;;;IASA;;OAEG;IACU,QAAA,QAAQ,GAAuC,KAAK,CAAC,UAAU,CAAC,UAAC,KAAK,EAAE,GAAG;QACtF,IAAM,KAAK,GAAG,kCAAoB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAE/C,8CAA0B,CAAC,KAAK,CAAC,CAAC;QAE1B,IAA4B,eAAe,GAAK,oDAA4B,EAAE,2BAAnC,CAAoC;QACvF,eAAe,CAAC,KAAK,CAAC,CAAC;QAEvB,OAAO,wCAAuB,CAAC,KAAK,EAAE,4DAAiC,CAAC,KAAK,CAAC,CAAC,CAAC;IAClF,CAAC,CAAC,CAAC;IAEH,gBAAQ,CAAC,WAAW,GAAG,UAAU,CAAC","sourcesContent":["import * as React from 'react';\nimport { useDataGrid_unstable } from './useDataGrid';\nimport { renderDataGrid_unstable } from './renderDataGrid';\nimport { useDataGridStyles_unstable } from './useDataGridStyles';\nimport type { DataGridProps } from './DataGrid.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useDataGridContextValues_unstable } from './useDataGridContextValues';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * DataGrid component\n */\nexport const DataGrid: ForwardRefComponent<DataGridProps> = React.forwardRef((props, ref) => {\n const state = useDataGrid_unstable(props, ref);\n\n useDataGridStyles_unstable(state);\n\n const { useDataGridStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderDataGrid_unstable(state, useDataGridContextValues_unstable(state));\n});\n\nDataGrid.displayName = 'DataGrid';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DataGrid.types.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-table/src/components/DataGrid/DataGrid.types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\nimport type { TableContextValues, TableProps, TableSlots, TableState } from '../Table/Table.types';\nimport type {\n SortState,\n TableFeaturesState,\n UseTableSortOptions,\n SelectionMode,\n UseTableSelectionOptions,\n OnSelectionChangeData,\n TableColumnSizingOptions,\n TableColumnId,\n} from '../../hooks';\nimport { TableRowProps } from '../TableRow/TableRow.types';\n\nexport type DataGridSlots = TableSlots;\n\nexport type DataGridFocusMode = 'none' | 'cell' | 'row_unstable';\n\nexport type DataGridContextValues = TableContextValues & {\n dataGrid: DataGridContextValue;\n};\n\n// Use any here since we can't know the user types\n// The user is responsible for narrowing the type downstream\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type DataGridContextValue = TableFeaturesState<any> & {\n /**\n * How focus navigation will work in the datagrid\n * @default cell\n */\n focusMode: DataGridFocusMode;\n\n /**\n * Lets child components know if rows selection is enabled\n * @see selectionMode prop enables row selection on the component\n */\n selectableRows: boolean;\n\n /**\n * Enables subtle selection style\n * @default false\n */\n subtleSelection: boolean;\n\n /**\n * Row appearance when selected\n * @default brand\n */\n selectionAppearance: TableRowProps['appearance'];\n\n /**\n * Enables column resizing\n */\n resizableColumns?: boolean;\n};\n\n/**\n * DataGrid Props\n */\nexport type DataGridProps = TableProps &\n Pick<DataGridContextValue, 'items' | 'columns' | 'getRowId'> &\n Pick<Partial<DataGridContextValue>, 'focusMode' | 'subtleSelection' | 'selectionAppearance' | 'resizableColumns'> &\n Pick<UseTableSortOptions, 'sortState' | 'defaultSortState'> &\n Pick<UseTableSelectionOptions, 'defaultSelectedItems' | 'selectedItems'> & {\n onSortChange?: (e: React.MouseEvent, sortState: SortState) => void;\n onSelectionChange?: (e: React.MouseEvent | React.KeyboardEvent, data: OnSelectionChangeData) => void;\n /**\n * Enables row selection and sets the selection mode\n * @default false\n */\n selectionMode?: SelectionMode;\n /**\n * Options for column resizing\n */\n columnSizingOptions?: TableColumnSizingOptions;\n /**\n * A callback triggered when a column is resized.\n */\n onColumnResize?: (\n e: KeyboardEvent | TouchEvent | MouseEvent | undefined,\n data: { columnId: TableColumnId; width: number },\n ) => void;\n };\n\n/**\n * State used in rendering DataGrid\n */\nexport type DataGridState = TableState & { tableState: TableFeaturesState<unknown> } & Pick<\n DataGridContextValue,\n 'focusMode' | 'selectableRows' | 'subtleSelection' | 'selectionAppearance' | 'getRowId' | 'resizableColumns'\n >;\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "tslib", "./DataGrid", "./DataGrid.types", "./renderDataGrid", "./useDataGrid", "./useDataGridStyles", "./useDataGridContextValues"], function (require, exports, tslib_1, DataGrid_1, DataGrid_types_1, renderDataGrid_1, useDataGrid_1, useDataGridStyles_1, useDataGridContextValues_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
tslib_1.__exportStar(DataGrid_1, exports);
|
|
5
|
-
tslib_1.__exportStar(DataGrid_types_1, exports);
|
|
6
|
-
tslib_1.__exportStar(renderDataGrid_1, exports);
|
|
7
|
-
tslib_1.__exportStar(useDataGrid_1, exports);
|
|
8
|
-
tslib_1.__exportStar(useDataGridStyles_1, exports);
|
|
9
|
-
tslib_1.__exportStar(useDataGridContextValues_1, exports);
|
|
10
|
-
});
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-table/src/components/DataGrid/index.ts"],"names":[],"mappings":";;;IAAA,0CAA2B;IAC3B,gDAAiC;IACjC,gDAAiC;IACjC,6CAA8B;IAC9B,mDAAoC;IACpC,0DAA2C","sourcesContent":["export * from './DataGrid';\nexport * from './DataGrid.types';\nexport * from './renderDataGrid';\nexport * from './useDataGrid';\nexport * from './useDataGridStyles';\nexport * from './useDataGridContextValues';\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "react", "../Table/renderTable", "../../contexts/dataGridContext"], function (require, exports, React, renderTable_1, dataGridContext_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.renderDataGrid_unstable = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* Render the final JSX of DataGrid
|
|
7
|
-
*/
|
|
8
|
-
var renderDataGrid_unstable = function (state, contextValues) {
|
|
9
|
-
return (React.createElement(dataGridContext_1.DataGridContextProvider, { value: contextValues.dataGrid }, renderTable_1.renderTable_unstable(state, contextValues)));
|
|
10
|
-
};
|
|
11
|
-
exports.renderDataGrid_unstable = renderDataGrid_unstable;
|
|
12
|
-
});
|
|
13
|
-
//# sourceMappingURL=renderDataGrid.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderDataGrid.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-table/src/components/DataGrid/renderDataGrid.tsx"],"names":[],"mappings":";;;;IAKA;;OAEG;IACI,IAAM,uBAAuB,GAAG,UAAC,KAAoB,EAAE,aAAoC;QAChG,OAAO,CACL,oBAAC,yCAAuB,IAAC,KAAK,EAAE,aAAa,CAAC,QAAQ,IACnD,kCAAoB,CAAC,KAAK,EAAE,aAAa,CAAC,CACnB,CAC3B,CAAC;IACJ,CAAC,CAAC;IANW,QAAA,uBAAuB,2BAMlC","sourcesContent":["import * as React from 'react';\nimport type { DataGridContextValues, DataGridState } from './DataGrid.types';\nimport { renderTable_unstable } from '../Table/renderTable';\nimport { DataGridContextProvider } from '../../contexts/dataGridContext';\n\n/**\n * Render the final JSX of DataGrid\n */\nexport const renderDataGrid_unstable = (state: DataGridState, contextValues: DataGridContextValues) => {\n return (\n <DataGridContextProvider value={contextValues.dataGrid}>\n {renderTable_unstable(state, contextValues)}\n </DataGridContextProvider>\n );\n};\n"]}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "tslib", "react", "@fluentui/react-tabster", "../Table/useTable", "../../hooks", "../TableSelectionCell", "@fluentui/react-utilities", "@fluentui/keyboard-keys"], function (require, exports, tslib_1, React, react_tabster_1, useTable_1, hooks_1, TableSelectionCell_1, react_utilities_1, keyboard_keys_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.useDataGrid_unstable = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* Create the state required to render DataGrid.
|
|
7
|
-
*
|
|
8
|
-
* The returned state can be modified with hooks such as useDataGridStyles_unstable,
|
|
9
|
-
* before being passed to renderDataGrid_unstable.
|
|
10
|
-
*
|
|
11
|
-
* @param props - props from this instance of DataGrid
|
|
12
|
-
* @param ref - reference to root HTMLElement of DataGrid
|
|
13
|
-
*/
|
|
14
|
-
var useDataGrid_unstable = function (props, ref) {
|
|
15
|
-
var items = props.items, columns = props.columns, _a = props.focusMode, focusMode = _a === void 0 ? 'cell' : _a, selectionMode = props.selectionMode, onSortChange = props.onSortChange, onSelectionChange = props.onSelectionChange, defaultSortState = props.defaultSortState, sortState = props.sortState, selectedItems = props.selectedItems, defaultSelectedItems = props.defaultSelectedItems, _b = props.subtleSelection, subtleSelection = _b === void 0 ? false : _b, _c = props.selectionAppearance, selectionAppearance = _c === void 0 ? 'brand' : _c, getRowId = props.getRowId, resizableColumns = props.resizableColumns, columnSizingOptions = props.columnSizingOptions, onColumnResize = props.onColumnResize;
|
|
16
|
-
var navigable = focusMode !== 'none';
|
|
17
|
-
var keyboardNavAttr = react_tabster_1.useArrowNavigationGroup({
|
|
18
|
-
axis: 'grid',
|
|
19
|
-
});
|
|
20
|
-
var tableState = hooks_1.useTableFeatures({ items: items, columns: columns, getRowId: getRowId }, [
|
|
21
|
-
hooks_1.useTableSort({
|
|
22
|
-
defaultSortState: defaultSortState,
|
|
23
|
-
sortState: sortState,
|
|
24
|
-
onSortChange: onSortChange,
|
|
25
|
-
}),
|
|
26
|
-
hooks_1.useTableSelection({
|
|
27
|
-
defaultSelectedItems: defaultSelectedItems,
|
|
28
|
-
selectedItems: selectedItems,
|
|
29
|
-
onSelectionChange: onSelectionChange,
|
|
30
|
-
selectionMode: selectionMode !== null && selectionMode !== void 0 ? selectionMode : 'multiselect',
|
|
31
|
-
}),
|
|
32
|
-
hooks_1.useTableColumnSizing_unstable({
|
|
33
|
-
onColumnResize: onColumnResize,
|
|
34
|
-
columnSizingOptions: columnSizingOptions,
|
|
35
|
-
// The selection cell is not part of the columns, therefore its width needs to be subtracted
|
|
36
|
-
// from the container to make sure the columns don't overflow the table.
|
|
37
|
-
containerWidthOffset: selectionMode ? -TableSelectionCell_1.CELL_WIDTH : 0,
|
|
38
|
-
}),
|
|
39
|
-
]);
|
|
40
|
-
var innerRef = React.useRef(null);
|
|
41
|
-
var _d = react_tabster_1.useFocusFinders(), findFirstFocusable = _d.findFirstFocusable, findLastFocusable = _d.findLastFocusable;
|
|
42
|
-
var onKeyDown = react_utilities_1.useEventCallback(function (e) {
|
|
43
|
-
var _a, _b, _c;
|
|
44
|
-
(_a = props.onKeyDown) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
45
|
-
if (!innerRef.current || !e.ctrlKey || e.defaultPrevented) {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
if (e.key === keyboard_keys_1.Home) {
|
|
49
|
-
var firstRow = innerRef.current.querySelector('[role="row"]');
|
|
50
|
-
if (firstRow) {
|
|
51
|
-
(_b = findFirstFocusable(firstRow)) === null || _b === void 0 ? void 0 : _b.focus();
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
if (e.key === keyboard_keys_1.End) {
|
|
55
|
-
var rows = innerRef.current.querySelectorAll('[role="row"]');
|
|
56
|
-
if (rows.length) {
|
|
57
|
-
var lastRow = rows.item(rows.length - 1);
|
|
58
|
-
(_c = findLastFocusable(lastRow)) === null || _c === void 0 ? void 0 : _c.focus();
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
var baseTableState = useTable_1.useTable_unstable(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({ role: 'grid', as: 'div', noNativeElements: true }, (navigable && keyboardNavAttr)), props), { onKeyDown: onKeyDown }), react_utilities_1.useMergedRefs(ref, tableState.tableRef, innerRef));
|
|
63
|
-
return tslib_1.__assign(tslib_1.__assign({}, baseTableState), { focusMode: focusMode, tableState: tableState, selectableRows: !!selectionMode, subtleSelection: subtleSelection, selectionAppearance: selectionAppearance, resizableColumns: resizableColumns });
|
|
64
|
-
};
|
|
65
|
-
exports.useDataGrid_unstable = useDataGrid_unstable;
|
|
66
|
-
});
|
|
67
|
-
//# sourceMappingURL=useDataGrid.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDataGrid.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-table/src/components/DataGrid/useDataGrid.ts"],"names":[],"mappings":";;;;IASA;;;;;;;;OAQG;IACI,IAAM,oBAAoB,GAAG,UAAC,KAAoB,EAAE,GAA2B;QAElF,IAAA,KAAK,GAgBH,KAAK,MAhBF,EACL,OAAO,GAeL,KAAK,QAfA,EACP,KAcE,KAAK,UAdW,EAAlB,SAAS,mBAAG,MAAM,KAAA,EAClB,aAAa,GAaX,KAAK,cAbM,EACb,YAAY,GAYV,KAAK,aAZK,EACZ,iBAAiB,GAWf,KAAK,kBAXU,EACjB,gBAAgB,GAUd,KAAK,iBAVS,EAChB,SAAS,GASP,KAAK,UATE,EACT,aAAa,GAQX,KAAK,cARM,EACb,oBAAoB,GAOlB,KAAK,qBAPa,EACpB,KAME,KAAK,gBANgB,EAAvB,eAAe,mBAAG,KAAK,KAAA,EACvB,KAKE,KAAK,oBALsB,EAA7B,mBAAmB,mBAAG,OAAO,KAAA,EAC7B,QAAQ,GAIN,KAAK,SAJC,EACR,gBAAgB,GAGd,KAAK,iBAHS,EAChB,mBAAmB,GAEjB,KAAK,oBAFY,EACnB,cAAc,GACZ,KAAK,eADO,CACN;QAEV,IAAM,SAAS,GAAG,SAAS,KAAK,MAAM,CAAC;QACvC,IAAM,eAAe,GAAG,uCAAuB,CAAC;YAC9C,IAAI,EAAE,MAAM;SACb,CAAC,CAAC;QAEH,IAAM,UAAU,GAAG,wBAAgB,CAAC,EAAE,KAAK,OAAA,EAAE,OAAO,SAAA,EAAE,QAAQ,UAAA,EAAE,EAAE;YAChE,oBAAY,CAAC;gBACX,gBAAgB,kBAAA;gBAChB,SAAS,WAAA;gBACT,YAAY,cAAA;aACb,CAAC;YACF,yBAAiB,CAAC;gBAChB,oBAAoB,sBAAA;gBACpB,aAAa,eAAA;gBACb,iBAAiB,mBAAA;gBACjB,aAAa,EAAE,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,aAAa;aAC9C,CAAC;YACF,qCAA6B,CAAC;gBAC5B,cAAc,gBAAA;gBACd,mBAAmB,qBAAA;gBACnB,4FAA4F;gBAC5F,wEAAwE;gBACxE,oBAAoB,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,+BAAU,CAAC,CAAC,CAAC,CAAC;aACtD,CAAC;SACH,CAAC,CAAC;QAEH,IAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAiB,IAAI,CAAC,CAAC;QAC9C,IAAA,KAA4C,+BAAe,EAAE,EAA3D,kBAAkB,wBAAA,EAAE,iBAAiB,uBAAsB,CAAC;QACpE,IAAM,SAAS,GAAG,kCAAgB,CAAC,UAAC,CAAwC;;YAC1E,MAAA,KAAK,CAAC,SAAS,+CAAf,KAAK,EAAa,CAAC,CAAC,CAAC;YACrB,IAAI,CAAC,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,gBAAgB,EAAE;gBACzD,OAAO;aACR;YAED,IAAI,CAAC,CAAC,GAAG,KAAK,oBAAI,EAAE;gBAClB,IAAM,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,aAAa,CAAC,cAAc,CAAuB,CAAC;gBACtF,IAAI,QAAQ,EAAE;oBACZ,MAAA,kBAAkB,CAAC,QAAQ,CAAC,0CAAE,KAAK,EAAE,CAAC;iBACvC;aACF;YAED,IAAI,CAAC,CAAC,GAAG,KAAK,mBAAG,EAAE;gBACjB,IAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;gBAC/D,IAAI,IAAI,CAAC,MAAM,EAAE;oBACf,IAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;oBAC3C,MAAA,iBAAiB,CAAC,OAAsB,CAAC,0CAAE,KAAK,EAAE,CAAC;iBACpD;aACF;QACH,CAAC,CAAC,CAAC;QAEH,IAAM,cAAc,GAAG,4BAAiB,sDAEpC,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,KAAK,EACT,gBAAgB,EAAE,IAAI,IACnB,CAAC,SAAS,IAAI,eAAe,CAAC,GAC9B,KAAK,KACR,SAAS,WAAA,KAEX,+BAAa,CAAC,GAAG,EAAE,UAAU,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAClD,CAAC;QAEF,6CACK,cAAc,KACjB,SAAS,WAAA,EACT,UAAU,YAAA,EACV,cAAc,EAAE,CAAC,CAAC,aAAa,EAC/B,eAAe,iBAAA,EACf,mBAAmB,qBAAA,EACnB,gBAAgB,kBAAA,IAChB;IACJ,CAAC,CAAC;IA3FW,QAAA,oBAAoB,wBA2F/B","sourcesContent":["import * as React from 'react';\nimport { useArrowNavigationGroup, useFocusFinders } from '@fluentui/react-tabster';\nimport type { DataGridProps, DataGridState } from './DataGrid.types';\nimport { useTable_unstable } from '../Table/useTable';\nimport { useTableFeatures, useTableSort, useTableSelection, useTableColumnSizing_unstable } from '../../hooks';\nimport { CELL_WIDTH } from '../TableSelectionCell';\nimport { useEventCallback, useMergedRefs } from '@fluentui/react-utilities';\nimport { End, Home } from '@fluentui/keyboard-keys';\n\n/**\n * Create the state required to render DataGrid.\n *\n * The returned state can be modified with hooks such as useDataGridStyles_unstable,\n * before being passed to renderDataGrid_unstable.\n *\n * @param props - props from this instance of DataGrid\n * @param ref - reference to root HTMLElement of DataGrid\n */\nexport const useDataGrid_unstable = (props: DataGridProps, ref: React.Ref<HTMLElement>): DataGridState => {\n const {\n items,\n columns,\n focusMode = 'cell',\n selectionMode,\n onSortChange,\n onSelectionChange,\n defaultSortState,\n sortState,\n selectedItems,\n defaultSelectedItems,\n subtleSelection = false,\n selectionAppearance = 'brand',\n getRowId,\n resizableColumns,\n columnSizingOptions,\n onColumnResize,\n } = props;\n\n const navigable = focusMode !== 'none';\n const keyboardNavAttr = useArrowNavigationGroup({\n axis: 'grid',\n });\n\n const tableState = useTableFeatures({ items, columns, getRowId }, [\n useTableSort({\n defaultSortState,\n sortState,\n onSortChange,\n }),\n useTableSelection({\n defaultSelectedItems,\n selectedItems,\n onSelectionChange,\n selectionMode: selectionMode ?? 'multiselect',\n }),\n useTableColumnSizing_unstable({\n onColumnResize,\n columnSizingOptions,\n // The selection cell is not part of the columns, therefore its width needs to be subtracted\n // from the container to make sure the columns don't overflow the table.\n containerWidthOffset: selectionMode ? -CELL_WIDTH : 0,\n }),\n ]);\n\n const innerRef = React.useRef<HTMLDivElement>(null);\n const { findFirstFocusable, findLastFocusable } = useFocusFinders();\n const onKeyDown = useEventCallback((e: React.KeyboardEvent<HTMLTableElement>) => {\n props.onKeyDown?.(e);\n if (!innerRef.current || !e.ctrlKey || e.defaultPrevented) {\n return;\n }\n\n if (e.key === Home) {\n const firstRow = innerRef.current.querySelector('[role=\"row\"]') as HTMLElement | null;\n if (firstRow) {\n findFirstFocusable(firstRow)?.focus();\n }\n }\n\n if (e.key === End) {\n const rows = innerRef.current.querySelectorAll('[role=\"row\"]');\n if (rows.length) {\n const lastRow = rows.item(rows.length - 1);\n findLastFocusable(lastRow as HTMLElement)?.focus();\n }\n }\n });\n\n const baseTableState = useTable_unstable(\n {\n role: 'grid',\n as: 'div',\n noNativeElements: true,\n ...(navigable && keyboardNavAttr),\n ...props,\n onKeyDown,\n },\n useMergedRefs(ref, tableState.tableRef, innerRef),\n );\n\n return {\n ...baseTableState,\n focusMode,\n tableState,\n selectableRows: !!selectionMode,\n subtleSelection,\n selectionAppearance,\n resizableColumns,\n };\n};\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "tslib", "../Table/useTableContextValues"], function (require, exports, tslib_1, useTableContextValues_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.useDataGridContextValues_unstable = void 0;
|
|
5
|
-
function useDataGridContextValues_unstable(state) {
|
|
6
|
-
var tableContextValues = useTableContextValues_1.useTableContextValues_unstable(state);
|
|
7
|
-
return tslib_1.__assign(tslib_1.__assign({}, tableContextValues), { dataGrid: tslib_1.__assign(tslib_1.__assign({}, state.tableState), { focusMode: state.focusMode, selectableRows: state.selectableRows, subtleSelection: state.subtleSelection, selectionAppearance: state.selectionAppearance, resizableColumns: state.resizableColumns }) });
|
|
8
|
-
}
|
|
9
|
-
exports.useDataGridContextValues_unstable = useDataGridContextValues_unstable;
|
|
10
|
-
});
|
|
11
|
-
//# sourceMappingURL=useDataGridContextValues.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDataGridContextValues.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-table/src/components/DataGrid/useDataGridContextValues.ts"],"names":[],"mappings":";;;;IAGA,SAAgB,iCAAiC,CAAC,KAAoB;QACpE,IAAM,kBAAkB,GAAG,sDAA8B,CAAC,KAAK,CAAC,CAAC;QACjE,6CACK,kBAAkB,KACrB,QAAQ,wCACH,KAAK,CAAC,UAAU,KACnB,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,cAAc,EAAE,KAAK,CAAC,cAAc,EACpC,eAAe,EAAE,KAAK,CAAC,eAAe,EACtC,mBAAmB,EAAE,KAAK,CAAC,mBAAmB,EAC9C,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,OAE1C;IACJ,CAAC;IAbD,8EAaC","sourcesContent":["import { useTableContextValues_unstable } from '../Table/useTableContextValues';\nimport { DataGridContextValues, DataGridState } from './DataGrid.types';\n\nexport function useDataGridContextValues_unstable(state: DataGridState): DataGridContextValues {\n const tableContextValues = useTableContextValues_unstable(state);\n return {\n ...tableContextValues,\n dataGrid: {\n ...state.tableState,\n focusMode: state.focusMode,\n selectableRows: state.selectableRows,\n subtleSelection: state.subtleSelection,\n selectionAppearance: state.selectionAppearance,\n resizableColumns: state.resizableColumns,\n },\n };\n}\n"]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "@griffel/react", "../Table/useTableStyles"], function (require, exports, react_1, useTableStyles_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.useDataGridStyles_unstable = exports.dataGridClassNames = void 0;
|
|
5
|
-
exports.dataGridClassNames = {
|
|
6
|
-
root: 'fui-DataGrid',
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Apply styling to the DataGrid slots based on the state
|
|
10
|
-
*/
|
|
11
|
-
var useDataGridStyles_unstable = function (state) {
|
|
12
|
-
useTableStyles_1.useTableStyles_unstable(state);
|
|
13
|
-
state.root.className = react_1.mergeClasses(exports.dataGridClassNames.root, state.root.className);
|
|
14
|
-
return state;
|
|
15
|
-
};
|
|
16
|
-
exports.useDataGridStyles_unstable = useDataGridStyles_unstable;
|
|
17
|
-
});
|
|
18
|
-
//# sourceMappingURL=useDataGridStyles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDataGridStyles.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-table/src/components/DataGrid/useDataGridStyles.ts"],"names":[],"mappings":";;;;IAKa,QAAA,kBAAkB,GAAkC;QAC/D,IAAI,EAAE,cAAc;KACrB,CAAC;IAEF;;OAEG;IACI,IAAM,0BAA0B,GAAG,UAAC,KAAoB;QAC7D,wCAAuB,CAAC,KAAK,CAAC,CAAC;QAC/B,KAAK,CAAC,IAAI,CAAC,SAAS,GAAG,oBAAY,CAAC,0BAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAEnF,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;IALW,QAAA,0BAA0B,8BAKrC","sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport type { DataGridSlots, DataGridState } from './DataGrid.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableStyles_unstable } from '../Table/useTableStyles';\n\nexport const dataGridClassNames: SlotClassNames<DataGridSlots> = {\n root: 'fui-DataGrid',\n};\n\n/**\n * Apply styling to the DataGrid slots based on the state\n */\nexport const useDataGridStyles_unstable = (state: DataGridState): DataGridState => {\n useTableStyles_unstable(state);\n state.root.className = mergeClasses(dataGridClassNames.root, state.root.className);\n\n return state;\n};\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "react", "./useDataGridBody", "./renderDataGridBody", "./useDataGridBodyStyles", "@fluentui/react-shared-contexts"], function (require, exports, React, useDataGridBody_1, renderDataGridBody_1, useDataGridBodyStyles_1, react_shared_contexts_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.DataGridBody = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* DataGridBody component
|
|
7
|
-
*/
|
|
8
|
-
exports.DataGridBody = React.forwardRef(function (props, ref) {
|
|
9
|
-
var state = useDataGridBody_1.useDataGridBody_unstable(props, ref);
|
|
10
|
-
useDataGridBodyStyles_1.useDataGridBodyStyles_unstable(state);
|
|
11
|
-
var useCustomStyles = react_shared_contexts_1.useCustomStyleHooks_unstable().useDataGridBodyStyles_unstable;
|
|
12
|
-
useCustomStyles(state);
|
|
13
|
-
return renderDataGridBody_1.renderDataGridBody_unstable(state);
|
|
14
|
-
});
|
|
15
|
-
exports.DataGridBody.displayName = 'DataGridBody';
|
|
16
|
-
});
|
|
17
|
-
//# sourceMappingURL=DataGridBody.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DataGridBody.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-table/src/components/DataGridBody/DataGridBody.tsx"],"names":[],"mappings":";;;;IAQA;;OAEG;IACU,QAAA,YAAY,GACqC,KAAK,CAAC,UAAU,CAAC,UAAC,KAAK,EAAE,GAAG;QACxF,IAAM,KAAK,GAAG,0CAAwB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAEnD,sDAA8B,CAAC,KAAK,CAAC,CAAC;QAE9B,IAAgC,eAAe,GAAK,oDAA4B,EAAE,+BAAnC,CAAoC;QAC3F,eAAe,CAAC,KAAK,CAAC,CAAC;QAEvB,OAAO,gDAA2B,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC,CAAuG,CAAC;IAEzG,oBAAY,CAAC,WAAW,GAAG,cAAc,CAAC","sourcesContent":["import * as React from 'react';\nimport { useDataGridBody_unstable } from './useDataGridBody';\nimport { renderDataGridBody_unstable } from './renderDataGridBody';\nimport { useDataGridBodyStyles_unstable } from './useDataGridBodyStyles';\nimport type { DataGridBodyProps } from './DataGridBody.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * DataGridBody component\n */\nexport const DataGridBody: ForwardRefComponent<DataGridBodyProps> &\n (<TItem>(props: DataGridBodyProps<TItem>) => JSX.Element) = React.forwardRef((props, ref) => {\n const state = useDataGridBody_unstable(props, ref);\n\n useDataGridBodyStyles_unstable(state);\n\n const { useDataGridBodyStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderDataGridBody_unstable(state);\n}) as ForwardRefComponent<DataGridBodyProps> & (<TItem>(props: DataGridBodyProps<TItem>) => JSX.Element);\n\nDataGridBody.displayName = 'DataGridBody';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DataGridBody.types.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-table/src/components/DataGridBody/DataGridBody.types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\nimport type { TableRowData } from '../../hooks';\nimport type { TableBodySlots, TableBodyProps, TableBodyState } from '../TableBody/TableBody.types';\n\nexport type DataGridBodySlots = TableBodySlots;\n\nexport type RowRenderFunction<TItem = unknown> = (row: TableRowData<TItem>, ...rest: unknown[]) => React.ReactNode;\n\n/**\n * DataGridBody Props\n */\nexport type DataGridBodyProps<TItem = unknown> = Omit<TableBodyProps, 'children'> & {\n /**\n * Render function for rows\n */\n children: RowRenderFunction<TItem>;\n};\n\n/**\n * State used in rendering DataGridBody\n */\nexport type DataGridBodyState = TableBodyState & {\n rows: TableRowData<unknown>[];\n\n renderRow: RowRenderFunction;\n};\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "tslib", "./DataGridBody", "./DataGridBody.types", "./renderDataGridBody", "./useDataGridBody", "./useDataGridBodyStyles"], function (require, exports, tslib_1, DataGridBody_1, DataGridBody_types_1, renderDataGridBody_1, useDataGridBody_1, useDataGridBodyStyles_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
tslib_1.__exportStar(DataGridBody_1, exports);
|
|
5
|
-
tslib_1.__exportStar(DataGridBody_types_1, exports);
|
|
6
|
-
tslib_1.__exportStar(renderDataGridBody_1, exports);
|
|
7
|
-
tslib_1.__exportStar(useDataGridBody_1, exports);
|
|
8
|
-
tslib_1.__exportStar(useDataGridBodyStyles_1, exports);
|
|
9
|
-
});
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-table/src/components/DataGridBody/index.ts"],"names":[],"mappings":";;;IAAA,8CAA+B;IAC/B,oDAAqC;IACrC,oDAAqC;IACrC,iDAAkC;IAClC,uDAAwC","sourcesContent":["export * from './DataGridBody';\nexport * from './DataGridBody.types';\nexport * from './renderDataGridBody';\nexport * from './useDataGridBody';\nexport * from './useDataGridBodyStyles';\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "tslib", "react", "@fluentui/react-utilities", "../../contexts/rowIdContext"], function (require, exports, tslib_1, React, react_utilities_1, rowIdContext_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.renderDataGridBody_unstable = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* Render the final JSX of DataGridBody
|
|
7
|
-
*/
|
|
8
|
-
var renderDataGridBody_unstable = function (state) {
|
|
9
|
-
var _a = react_utilities_1.getSlots(state), slots = _a.slots, slotProps = _a.slotProps;
|
|
10
|
-
return (React.createElement(slots.root, tslib_1.__assign({}, slotProps.root), state.rows.map(function (row) { return (React.createElement(rowIdContext_1.TableRowIdContextProvider, { key: row.rowId, value: row.rowId }, state.renderRow(row))); })));
|
|
11
|
-
};
|
|
12
|
-
exports.renderDataGridBody_unstable = renderDataGridBody_unstable;
|
|
13
|
-
});
|
|
14
|
-
//# sourceMappingURL=renderDataGridBody.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderDataGridBody.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-table/src/components/DataGridBody/renderDataGridBody.tsx"],"names":[],"mappings":";;;;IAKA;;OAEG;IACI,IAAM,2BAA2B,GAAG,UAAC,KAAwB;QAC5D,IAAA,KAAuB,0BAAQ,CAAoB,KAAK,CAAC,EAAvD,KAAK,WAAA,EAAE,SAAS,eAAuC,CAAC;QAEhE,OAAO,CACL,oBAAC,KAAK,CAAC,IAAI,uBAAK,SAAS,CAAC,IAAI,GAC3B,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,UAAA,GAAG,IAAI,OAAA,CACrB,oBAAC,wCAAyB,IAAC,GAAG,EAAE,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,IACxD,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CACK,CAC7B,EAJsB,CAItB,CAAC,CACS,CACd,CAAC;IACJ,CAAC,CAAC;IAZW,QAAA,2BAA2B,+BAYtC","sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { DataGridBodyState, DataGridBodySlots } from './DataGridBody.types';\nimport { TableRowIdContextProvider } from '../../contexts/rowIdContext';\n\n/**\n * Render the final JSX of DataGridBody\n */\nexport const renderDataGridBody_unstable = (state: DataGridBodyState) => {\n const { slots, slotProps } = getSlots<DataGridBodySlots>(state);\n\n return (\n <slots.root {...slotProps.root}>\n {state.rows.map(row => (\n <TableRowIdContextProvider key={row.rowId} value={row.rowId}>\n {state.renderRow(row)}\n </TableRowIdContextProvider>\n ))}\n </slots.root>\n );\n};\n"]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "tslib", "../TableBody/useTableBody", "../../contexts/dataGridContext", "../../contexts/tableContext"], function (require, exports, tslib_1, useTableBody_1, dataGridContext_1, tableContext_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.useDataGridBody_unstable = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* Create the state required to render DataGridBody.
|
|
7
|
-
*
|
|
8
|
-
* The returned state can be modified with hooks such as useDataGridBodyStyles_unstable,
|
|
9
|
-
* before being passed to renderDataGridBody_unstable.
|
|
10
|
-
*
|
|
11
|
-
* @param props - props from this instance of DataGridBody
|
|
12
|
-
* @param ref - reference to root HTMLElement of DataGridBody
|
|
13
|
-
*/
|
|
14
|
-
var useDataGridBody_unstable = function (props, ref) {
|
|
15
|
-
var sortable = tableContext_1.useTableContext().sortable;
|
|
16
|
-
var getRows = dataGridContext_1.useDataGridContext_unstable(function (ctx) { return ctx.getRows; });
|
|
17
|
-
var sort = dataGridContext_1.useDataGridContext_unstable(function (ctx) { return ctx.sort.sort; });
|
|
18
|
-
var rows = sortable ? sort(getRows()) : getRows();
|
|
19
|
-
var baseState = useTableBody_1.useTableBody_unstable(tslib_1.__assign(tslib_1.__assign({}, props), { children: null, as: 'div' }), ref);
|
|
20
|
-
return tslib_1.__assign(tslib_1.__assign({}, baseState), { rows: rows, renderRow: props.children });
|
|
21
|
-
};
|
|
22
|
-
exports.useDataGridBody_unstable = useDataGridBody_unstable;
|
|
23
|
-
});
|
|
24
|
-
//# sourceMappingURL=useDataGridBody.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDataGridBody.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-table/src/components/DataGridBody/useDataGridBody.tsx"],"names":[],"mappings":";;;;IAMA;;;;;;;;OAQG;IACI,IAAM,wBAAwB,GAAG,UAAC,KAAwB,EAAE,GAA2B;QACpF,IAAA,QAAQ,GAAK,8BAAe,EAAE,SAAtB,CAAuB;QACvC,IAAM,OAAO,GAAG,6CAA2B,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,OAAO,EAAX,CAAW,CAAC,CAAC;QAChE,IAAM,IAAI,GAAG,6CAA2B,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,IAAI,CAAC,IAAI,EAAb,CAAa,CAAC,CAAC;QAC/D,IAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;QAEpD,IAAM,SAAS,GAAG,oCAAqB,uCAAM,KAAK,KAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,KAAI,GAAG,CAAC,CAAC;QACtF,6CACK,SAAS,KACZ,IAAI,MAAA,EACJ,SAAS,EAAE,KAAK,CAAC,QAAQ,IACzB;IACJ,CAAC,CAAC;IAZW,QAAA,wBAAwB,4BAYnC","sourcesContent":["import * as React from 'react';\nimport type { DataGridBodyProps, DataGridBodyState } from './DataGridBody.types';\nimport { useTableBody_unstable } from '../TableBody/useTableBody';\nimport { useDataGridContext_unstable } from '../../contexts/dataGridContext';\nimport { useTableContext } from '../../contexts/tableContext';\n\n/**\n * Create the state required to render DataGridBody.\n *\n * The returned state can be modified with hooks such as useDataGridBodyStyles_unstable,\n * before being passed to renderDataGridBody_unstable.\n *\n * @param props - props from this instance of DataGridBody\n * @param ref - reference to root HTMLElement of DataGridBody\n */\nexport const useDataGridBody_unstable = (props: DataGridBodyProps, ref: React.Ref<HTMLElement>): DataGridBodyState => {\n const { sortable } = useTableContext();\n const getRows = useDataGridContext_unstable(ctx => ctx.getRows);\n const sort = useDataGridContext_unstable(ctx => ctx.sort.sort);\n const rows = sortable ? sort(getRows()) : getRows();\n\n const baseState = useTableBody_unstable({ ...props, children: null, as: 'div' }, ref);\n return {\n ...baseState,\n rows,\n renderRow: props.children,\n };\n};\n"]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "@griffel/react", "../TableBody/useTableBodyStyles"], function (require, exports, react_1, useTableBodyStyles_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.useDataGridBodyStyles_unstable = exports.dataGridBodyClassNames = void 0;
|
|
5
|
-
exports.dataGridBodyClassNames = {
|
|
6
|
-
root: 'fui-DataGridBody',
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Apply styling to the DataGridBody slots based on the state
|
|
10
|
-
*/
|
|
11
|
-
var useDataGridBodyStyles_unstable = function (state) {
|
|
12
|
-
useTableBodyStyles_1.useTableBodyStyles_unstable(state);
|
|
13
|
-
state.root.className = react_1.mergeClasses(exports.dataGridBodyClassNames.root, state.root.className);
|
|
14
|
-
return state;
|
|
15
|
-
};
|
|
16
|
-
exports.useDataGridBodyStyles_unstable = useDataGridBodyStyles_unstable;
|
|
17
|
-
});
|
|
18
|
-
//# sourceMappingURL=useDataGridBodyStyles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDataGridBodyStyles.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-table/src/components/DataGridBody/useDataGridBodyStyles.ts"],"names":[],"mappings":";;;;IAKa,QAAA,sBAAsB,GAAsC;QACvE,IAAI,EAAE,kBAAkB;KACzB,CAAC;IAEF;;OAEG;IACI,IAAM,8BAA8B,GAAG,UAAC,KAAwB;QACrE,gDAA2B,CAAC,KAAK,CAAC,CAAC;QACnC,KAAK,CAAC,IAAI,CAAC,SAAS,GAAG,oBAAY,CAAC,8BAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAEvF,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;IALW,QAAA,8BAA8B,kCAKzC","sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport type { DataGridBodySlots, DataGridBodyState } from './DataGridBody.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableBodyStyles_unstable } from '../TableBody/useTableBodyStyles';\n\nexport const dataGridBodyClassNames: SlotClassNames<DataGridBodySlots> = {\n root: 'fui-DataGridBody',\n};\n\n/**\n * Apply styling to the DataGridBody slots based on the state\n */\nexport const useDataGridBodyStyles_unstable = (state: DataGridBodyState): DataGridBodyState => {\n useTableBodyStyles_unstable(state);\n state.root.className = mergeClasses(dataGridBodyClassNames.root, state.root.className);\n\n return state;\n};\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "react", "./useDataGridCell", "./renderDataGridCell", "./useDataGridCellStyles", "@fluentui/react-shared-contexts"], function (require, exports, React, useDataGridCell_1, renderDataGridCell_1, useDataGridCellStyles_1, react_shared_contexts_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.DataGridCell = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* DataGridCell component
|
|
7
|
-
*/
|
|
8
|
-
exports.DataGridCell = React.forwardRef(function (props, ref) {
|
|
9
|
-
var state = useDataGridCell_1.useDataGridCell_unstable(props, ref);
|
|
10
|
-
useDataGridCellStyles_1.useDataGridCellStyles_unstable(state);
|
|
11
|
-
var useCustomStyles = react_shared_contexts_1.useCustomStyleHooks_unstable().useDataGridCellStyles_unstable;
|
|
12
|
-
useCustomStyles(state);
|
|
13
|
-
return renderDataGridCell_1.renderDataGridCell_unstable(state);
|
|
14
|
-
});
|
|
15
|
-
exports.DataGridCell.displayName = 'DataGridCell';
|
|
16
|
-
});
|
|
17
|
-
//# sourceMappingURL=DataGridCell.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DataGridCell.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-table/src/components/DataGridCell/DataGridCell.tsx"],"names":[],"mappings":";;;;IAQA;;OAEG;IACU,QAAA,YAAY,GAA2C,KAAK,CAAC,UAAU,CAAC,UAAC,KAAK,EAAE,GAAG;QAC9F,IAAM,KAAK,GAAG,0CAAwB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAEnD,sDAA8B,CAAC,KAAK,CAAC,CAAC;QAE9B,IAAgC,eAAe,GAAK,oDAA4B,EAAE,+BAAnC,CAAoC;QAC3F,eAAe,CAAC,KAAK,CAAC,CAAC;QAEvB,OAAO,gDAA2B,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;IAEH,oBAAY,CAAC,WAAW,GAAG,cAAc,CAAC","sourcesContent":["import * as React from 'react';\nimport { useDataGridCell_unstable } from './useDataGridCell';\nimport { renderDataGridCell_unstable } from './renderDataGridCell';\nimport { useDataGridCellStyles_unstable } from './useDataGridCellStyles';\nimport type { DataGridCellProps } from './DataGridCell.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * DataGridCell component\n */\nexport const DataGridCell: ForwardRefComponent<DataGridCellProps> = React.forwardRef((props, ref) => {\n const state = useDataGridCell_unstable(props, ref);\n\n useDataGridCellStyles_unstable(state);\n\n const { useDataGridCellStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderDataGridCell_unstable(state);\n});\n\nDataGridCell.displayName = 'DataGridCell';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DataGridCell.types.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-table/src/components/DataGridCell/DataGridCell.types.ts"],"names":[],"mappings":"","sourcesContent":["import { TableCellProps, TableCellSlots, TableCellState } from '../TableCell/TableCell.types';\n\nexport type DataGridCellSlots = TableCellSlots;\n\n/**\n * DataGridCell Props\n */\nexport type DataGridCellProps = TableCellProps;\n\n/**\n * State used in rendering DataGridCell\n */\nexport type DataGridCellState = TableCellState;\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "tslib", "./DataGridCell", "./DataGridCell.types", "./renderDataGridCell", "./useDataGridCell", "./useDataGridCellStyles"], function (require, exports, tslib_1, DataGridCell_1, DataGridCell_types_1, renderDataGridCell_1, useDataGridCell_1, useDataGridCellStyles_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
tslib_1.__exportStar(DataGridCell_1, exports);
|
|
5
|
-
tslib_1.__exportStar(DataGridCell_types_1, exports);
|
|
6
|
-
tslib_1.__exportStar(renderDataGridCell_1, exports);
|
|
7
|
-
tslib_1.__exportStar(useDataGridCell_1, exports);
|
|
8
|
-
tslib_1.__exportStar(useDataGridCellStyles_1, exports);
|
|
9
|
-
});
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-table/src/components/DataGridCell/index.ts"],"names":[],"mappings":";;;IAAA,8CAA+B;IAC/B,oDAAqC;IACrC,oDAAqC;IACrC,iDAAkC;IAClC,uDAAwC","sourcesContent":["export * from './DataGridCell';\nexport * from './DataGridCell.types';\nexport * from './renderDataGridCell';\nexport * from './useDataGridCell';\nexport * from './useDataGridCellStyles';\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "../TableCell/renderTableCell"], function (require, exports, renderTableCell_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.renderDataGridCell_unstable = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* Render the final JSX of DataGridCell
|
|
7
|
-
*/
|
|
8
|
-
var renderDataGridCell_unstable = function (state) {
|
|
9
|
-
return renderTableCell_1.renderTableCell_unstable(state);
|
|
10
|
-
};
|
|
11
|
-
exports.renderDataGridCell_unstable = renderDataGridCell_unstable;
|
|
12
|
-
});
|
|
13
|
-
//# sourceMappingURL=renderDataGridCell.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderDataGridCell.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-table/src/components/DataGridCell/renderDataGridCell.tsx"],"names":[],"mappings":";;;;IAGA;;OAEG;IACI,IAAM,2BAA2B,GAAG,UAAC,KAAwB;QAClE,OAAO,0CAAwB,CAAC,KAAK,CAAC,CAAC;IACzC,CAAC,CAAC;IAFW,QAAA,2BAA2B,+BAEtC","sourcesContent":["import type { DataGridCellState } from './DataGridCell.types';\nimport { renderTableCell_unstable } from '../TableCell/renderTableCell';\n\n/**\n * Render the final JSX of DataGridCell\n */\nexport const renderDataGridCell_unstable = (state: DataGridCellState) => {\n return renderTableCell_unstable(state);\n};\n"]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "tslib", "../TableCell/useTableCell", "../../contexts/dataGridContext", "../../contexts/columnIdContext"], function (require, exports, tslib_1, useTableCell_1, dataGridContext_1, columnIdContext_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.useDataGridCell_unstable = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* Create the state required to render DataGridCell.
|
|
7
|
-
*
|
|
8
|
-
* The returned state can be modified with hooks such as useDataGridCellStyles_unstable,
|
|
9
|
-
* before being passed to renderDataGridCell_unstable.
|
|
10
|
-
*
|
|
11
|
-
* @param props - props from this instance of DataGridCell
|
|
12
|
-
* @param ref - reference to root HTMLElement of DataGridCell
|
|
13
|
-
*/
|
|
14
|
-
var useDataGridCell_unstable = function (props, ref) {
|
|
15
|
-
var columnId = columnIdContext_1.useColumnIdContext();
|
|
16
|
-
var tabbable = dataGridContext_1.useDataGridContext_unstable(function (ctx) { return ctx.focusMode === 'cell'; });
|
|
17
|
-
var resizableColumns = dataGridContext_1.useDataGridContext_unstable(function (ctx) { return ctx.resizableColumns; });
|
|
18
|
-
var columnSizing = dataGridContext_1.useDataGridContext_unstable(function (ctx) { return ctx.columnSizing_unstable; });
|
|
19
|
-
return useTableCell_1.useTableCell_unstable(tslib_1.__assign(tslib_1.__assign({ as: 'div', role: 'gridcell', tabIndex: tabbable ? 0 : undefined }, (resizableColumns ? columnSizing.getTableCellProps(columnId) : {})), props), ref);
|
|
20
|
-
};
|
|
21
|
-
exports.useDataGridCell_unstable = useDataGridCell_unstable;
|
|
22
|
-
});
|
|
23
|
-
//# sourceMappingURL=useDataGridCell.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDataGridCell.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-table/src/components/DataGridCell/useDataGridCell.ts"],"names":[],"mappings":";;;;IAMA;;;;;;;;OAQG;IACI,IAAM,wBAAwB,GAAG,UAAC,KAAwB,EAAE,GAA2B;QAC5F,IAAM,QAAQ,GAAG,oCAAkB,EAAE,CAAC;QACtC,IAAM,QAAQ,GAAG,6CAA2B,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,SAAS,KAAK,MAAM,EAAxB,CAAwB,CAAC,CAAC;QAC9E,IAAM,gBAAgB,GAAG,6CAA2B,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,gBAAgB,EAApB,CAAoB,CAAC,CAAC;QAClF,IAAM,YAAY,GAAG,6CAA2B,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,qBAAqB,EAAzB,CAAyB,CAAC,CAAC;QACnF,OAAO,oCAAqB,qCAExB,EAAE,EAAE,KAAK,EACT,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,IAC/B,CAAC,gBAAgB,CAAC,CAAC,CAAC,YAAY,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAClE,KAAK,GAEV,GAAG,CACJ,CAAC;IACJ,CAAC,CAAC;IAfW,QAAA,wBAAwB,4BAenC","sourcesContent":["import * as React from 'react';\nimport type { DataGridCellProps, DataGridCellState } from './DataGridCell.types';\nimport { useTableCell_unstable } from '../TableCell/useTableCell';\nimport { useDataGridContext_unstable } from '../../contexts/dataGridContext';\nimport { useColumnIdContext } from '../../contexts/columnIdContext';\n\n/**\n * Create the state required to render DataGridCell.\n *\n * The returned state can be modified with hooks such as useDataGridCellStyles_unstable,\n * before being passed to renderDataGridCell_unstable.\n *\n * @param props - props from this instance of DataGridCell\n * @param ref - reference to root HTMLElement of DataGridCell\n */\nexport const useDataGridCell_unstable = (props: DataGridCellProps, ref: React.Ref<HTMLElement>): DataGridCellState => {\n const columnId = useColumnIdContext();\n const tabbable = useDataGridContext_unstable(ctx => ctx.focusMode === 'cell');\n const resizableColumns = useDataGridContext_unstable(ctx => ctx.resizableColumns);\n const columnSizing = useDataGridContext_unstable(ctx => ctx.columnSizing_unstable);\n return useTableCell_unstable(\n {\n as: 'div',\n role: 'gridcell',\n tabIndex: tabbable ? 0 : undefined,\n ...(resizableColumns ? columnSizing.getTableCellProps(columnId) : {}),\n ...props,\n },\n ref,\n );\n};\n"]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "@griffel/react", "../TableCell/useTableCellStyles"], function (require, exports, react_1, useTableCellStyles_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.useDataGridCellStyles_unstable = exports.dataGridCellClassNames = void 0;
|
|
5
|
-
exports.dataGridCellClassNames = {
|
|
6
|
-
root: 'fui-DataGridCell',
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Apply styling to the DataGridCell slots based on the state
|
|
10
|
-
*/
|
|
11
|
-
var useDataGridCellStyles_unstable = function (state) {
|
|
12
|
-
useTableCellStyles_1.useTableCellStyles_unstable(state);
|
|
13
|
-
state.root.className = react_1.mergeClasses(exports.dataGridCellClassNames.root, state.root.className);
|
|
14
|
-
return state;
|
|
15
|
-
};
|
|
16
|
-
exports.useDataGridCellStyles_unstable = useDataGridCellStyles_unstable;
|
|
17
|
-
});
|
|
18
|
-
//# sourceMappingURL=useDataGridCellStyles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDataGridCellStyles.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-table/src/components/DataGridCell/useDataGridCellStyles.ts"],"names":[],"mappings":";;;;IAKa,QAAA,sBAAsB,GAAsC;QACvE,IAAI,EAAE,kBAAkB;KACzB,CAAC;IAEF;;OAEG;IACI,IAAM,8BAA8B,GAAG,UAAC,KAAwB;QACrE,gDAA2B,CAAC,KAAK,CAAC,CAAC;QACnC,KAAK,CAAC,IAAI,CAAC,SAAS,GAAG,oBAAY,CAAC,8BAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAEvF,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;IALW,QAAA,8BAA8B,kCAKzC","sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport type { DataGridCellSlots, DataGridCellState } from './DataGridCell.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTableCellStyles_unstable } from '../TableCell/useTableCellStyles';\n\nexport const dataGridCellClassNames: SlotClassNames<DataGridCellSlots> = {\n root: 'fui-DataGridCell',\n};\n\n/**\n * Apply styling to the DataGridCell slots based on the state\n */\nexport const useDataGridCellStyles_unstable = (state: DataGridCellState): DataGridCellState => {\n useTableCellStyles_unstable(state);\n state.root.className = mergeClasses(dataGridCellClassNames.root, state.root.className);\n\n return state;\n};\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "react", "./useDataGridHeader", "./renderDataGridHeader", "./useDataGridHeaderStyles", "@fluentui/react-shared-contexts"], function (require, exports, React, useDataGridHeader_1, renderDataGridHeader_1, useDataGridHeaderStyles_1, react_shared_contexts_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.DataGridHeader = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* DataGridHeader component
|
|
7
|
-
*/
|
|
8
|
-
exports.DataGridHeader = React.forwardRef(function (props, ref) {
|
|
9
|
-
var state = useDataGridHeader_1.useDataGridHeader_unstable(props, ref);
|
|
10
|
-
useDataGridHeaderStyles_1.useDataGridHeaderStyles_unstable(state);
|
|
11
|
-
var useCustomStyles = react_shared_contexts_1.useCustomStyleHooks_unstable().useDataGridHeaderStyles_unstable;
|
|
12
|
-
useCustomStyles(state);
|
|
13
|
-
return renderDataGridHeader_1.renderDataGridHeader_unstable(state);
|
|
14
|
-
});
|
|
15
|
-
exports.DataGridHeader.displayName = 'DataGridHeader';
|
|
16
|
-
});
|
|
17
|
-
//# sourceMappingURL=DataGridHeader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DataGridHeader.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-table/src/components/DataGridHeader/DataGridHeader.tsx"],"names":[],"mappings":";;;;IAQA;;OAEG;IACU,QAAA,cAAc,GAA6C,KAAK,CAAC,UAAU,CAAC,UAAC,KAAK,EAAE,GAAG;QAClG,IAAM,KAAK,GAAG,8CAA0B,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAErD,0DAAgC,CAAC,KAAK,CAAC,CAAC;QAEhC,IAAkC,eAAe,GAAK,oDAA4B,EAAE,iCAAnC,CAAoC;QAC7F,eAAe,CAAC,KAAK,CAAC,CAAC;QAEvB,OAAO,oDAA6B,CAAC,KAAK,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;IAEH,sBAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC","sourcesContent":["import * as React from 'react';\nimport { useDataGridHeader_unstable } from './useDataGridHeader';\nimport { renderDataGridHeader_unstable } from './renderDataGridHeader';\nimport { useDataGridHeaderStyles_unstable } from './useDataGridHeaderStyles';\nimport type { DataGridHeaderProps } from './DataGridHeader.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * DataGridHeader component\n */\nexport const DataGridHeader: ForwardRefComponent<DataGridHeaderProps> = React.forwardRef((props, ref) => {\n const state = useDataGridHeader_unstable(props, ref);\n\n useDataGridHeaderStyles_unstable(state);\n\n const { useDataGridHeaderStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderDataGridHeader_unstable(state);\n});\n\nDataGridHeader.displayName = 'DataGridHeader';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DataGridHeader.types.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-table/src/components/DataGridHeader/DataGridHeader.types.ts"],"names":[],"mappings":"","sourcesContent":["import { TableHeaderProps, TableHeaderSlots, TableHeaderState } from '../TableHeader/TableHeader.types';\n\nexport type DataGridHeaderSlots = TableHeaderSlots;\n\n/**\n * DataGridHeader Props\n */\nexport type DataGridHeaderProps = TableHeaderProps;\n\n/**\n * State used in rendering DataGridHeader\n */\nexport type DataGridHeaderState = TableHeaderState;\n"]}
|