Files
ETB/ETB-FrontEnd/node_modules/.cache/babel-loader/e77a69de36ea8cee032ece2891fd53331c566adc9e77a9727b741bb966bbebaa.json
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

1 line
50 KiB
JSON

{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"selected\", \"rowId\", \"row\", \"index\", \"style\", \"position\", \"rowHeight\", \"className\", \"visibleColumns\", \"renderedColumns\", \"containerWidth\", \"firstColumnToRender\", \"lastColumnToRender\", \"cellFocus\", \"cellTabIndex\", \"editRowsState\", \"isLastVisible\", \"onClick\", \"onDoubleClick\", \"onMouseEnter\", \"onMouseLeave\"],\n _excluded2 = [\"changeReason\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { unstable_composeClasses as composeClasses, useForkRef } from '@mui/material';\nimport { GridEditModes, GridRowModes, GridCellModes } from '../models/gridEditRowModel';\nimport { useGridApiContext } from '../hooks/utils/useGridApiContext';\nimport { getDataGridUtilityClass, gridClasses } from '../constants/gridClasses';\nimport { useGridRootProps } from '../hooks/utils/useGridRootProps';\nimport { gridColumnsTotalWidthSelector } from '../hooks/features/columns/gridColumnsSelector';\nimport { useGridSelector } from '../hooks/utils/useGridSelector';\nimport { useGridVisibleRows } from '../hooks/utils/useGridVisibleRows';\nimport { findParentElementFromClassName } from '../utils/domUtils';\nimport { GRID_CHECKBOX_SELECTION_COL_DEF } from '../colDef/gridCheckboxSelectionColDef';\nimport { GRID_ACTIONS_COLUMN_TYPE } from '../colDef/gridActionsColDef';\nimport { GRID_DETAIL_PANEL_TOGGLE_FIELD } from '../constants/gridDetailPanelToggleField';\nimport { gridSortModelSelector } from '../hooks/features/sorting/gridSortingSelector';\nimport { gridRowTreeDepthSelector } from '../hooks/features/rows/gridRowsSelector';\nimport { gridDensityHeaderGroupingMaxDepthSelector } from '../hooks/features/density/densitySelector';\nimport { randomNumberBetween } from '../utils/utils';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n editable,\n editing,\n selected,\n isLastVisible,\n rowHeight,\n classes\n } = ownerState;\n const slots = {\n root: ['row', selected && 'selected', editable && 'row--editable', editing && 'row--editing', isLastVisible && 'row--lastVisible', rowHeight === 'auto' && 'row--dynamicHeight']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst EmptyCell = ({\n width\n}) => {\n if (!width) {\n return null;\n }\n const style = {\n width\n };\n return /*#__PURE__*/_jsx(\"div\", {\n className: \"MuiDataGrid-cell\",\n style: style\n }); // TODO change to .MuiDataGrid-emptyCell or .MuiDataGrid-rowFiller\n};\nconst GridRow = /*#__PURE__*/React.forwardRef(function GridRow(props, refProp) {\n var _apiRef$current$getRo;\n const {\n selected,\n rowId,\n row,\n index,\n style: styleProp,\n position,\n rowHeight,\n className,\n visibleColumns,\n renderedColumns,\n containerWidth,\n firstColumnToRender,\n cellFocus,\n cellTabIndex,\n editRowsState,\n isLastVisible = false,\n onClick,\n onDoubleClick,\n onMouseEnter,\n onMouseLeave\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const apiRef = useGridApiContext();\n const ref = React.useRef(null);\n const rootProps = useGridRootProps();\n const currentPage = useGridVisibleRows(apiRef, rootProps);\n const columnsTotalWidth = useGridSelector(apiRef, gridColumnsTotalWidthSelector);\n const sortModel = useGridSelector(apiRef, gridSortModelSelector);\n const treeDepth = useGridSelector(apiRef, gridRowTreeDepthSelector);\n const headerGroupingMaxDepth = useGridSelector(apiRef, gridDensityHeaderGroupingMaxDepthSelector);\n const handleRef = useForkRef(ref, refProp);\n const ariaRowIndex = index + headerGroupingMaxDepth + 2; // 1 for the header row and 1 as it's 1-based\n\n const {\n hasScrollX,\n hasScrollY\n } = (_apiRef$current$getRo = apiRef.current.getRootDimensions()) != null ? _apiRef$current$getRo : {\n hasScrollX: false,\n hasScrollY: false\n };\n const ownerState = {\n selected,\n isLastVisible,\n classes: rootProps.classes,\n editing: apiRef.current.getRowMode(rowId) === GridRowModes.Edit,\n editable: rootProps.editMode === GridEditModes.Row,\n rowHeight\n };\n const classes = useUtilityClasses(ownerState);\n React.useLayoutEffect(() => {\n if (rowHeight === 'auto' && ref.current && typeof ResizeObserver === 'undefined') {\n // Fallback for IE\n apiRef.current.unstable_storeRowHeightMeasurement(rowId, ref.current.clientHeight, position);\n }\n }, [apiRef, rowHeight, rowId, position]);\n React.useLayoutEffect(() => {\n if (currentPage.range) {\n // The index prop is relative to the rows from all pages. As example, the index prop of the\n // first row is 5 if pageSize=5 and page=1. However, the index used by the virtualization\n // doesn't care about pagination and considers the rows from the current page only, so the\n // first row always has index=0. We need to subtract the index of the first row to make it\n // compatible with the index used by the virtualization.\n const rowIndex = apiRef.current.getRowIndexRelativeToVisibleRows(rowId); // pinned rows are not part of the visible rows\n\n if (rowIndex != null) {\n apiRef.current.unstable_setLastMeasuredRowIndex(rowIndex);\n }\n }\n const rootElement = ref.current;\n const hasFixedHeight = rowHeight !== 'auto';\n if (!rootElement || hasFixedHeight || typeof ResizeObserver === 'undefined') {\n return undefined;\n }\n const resizeObserver = new ResizeObserver(entries => {\n const [entry] = entries;\n const height = entry.borderBoxSize && entry.borderBoxSize.length > 0 ? entry.borderBoxSize[0].blockSize : entry.contentRect.height;\n apiRef.current.unstable_storeRowHeightMeasurement(rowId, height, position);\n });\n resizeObserver.observe(rootElement);\n return () => resizeObserver.disconnect();\n }, [apiRef, currentPage.range, index, rowHeight, rowId, position]);\n const publish = React.useCallback((eventName, propHandler) => event => {\n // Ignore portal\n // The target is not an element when triggered by a Select inside the cell\n // See https://github.com/mui/material-ui/issues/10534\n if (event.target.nodeType === 1 && !event.currentTarget.contains(event.target)) {\n return;\n } // The row might have been deleted\n\n if (!apiRef.current.getRow(rowId)) {\n return;\n }\n apiRef.current.publishEvent(eventName, apiRef.current.getRowParams(rowId), event);\n if (propHandler) {\n propHandler(event);\n }\n }, [apiRef, rowId]);\n const publishClick = React.useCallback(event => {\n const cell = findParentElementFromClassName(event.target, gridClasses.cell);\n const field = cell == null ? void 0 : cell.getAttribute('data-field'); // Check if the field is available because the cell that fills the empty\n // space of the row has no field.\n\n if (field) {\n // User clicked in the checkbox added by checkboxSelection\n if (field === GRID_CHECKBOX_SELECTION_COL_DEF.field) {\n return;\n } // User opened a detail panel\n\n if (field === GRID_DETAIL_PANEL_TOGGLE_FIELD) {\n return;\n } // User reorders a row\n\n if (field === '__reorder__') {\n return;\n } // User is editing a cell\n\n if (apiRef.current.getCellMode(rowId, field) === GridCellModes.Edit) {\n return;\n } // User clicked a button from the \"actions\" column type\n\n const column = apiRef.current.getColumn(field);\n if (column.type === GRID_ACTIONS_COLUMN_TYPE) {\n return;\n }\n }\n publish('rowClick', onClick)(event);\n }, [apiRef, onClick, publish, rowId]);\n const getCell = React.useCallback((column, cellProps) => {\n var _rootProps$components;\n const cellParams = apiRef.current.getCellParams(rowId, column.field);\n const classNames = [];\n const disableDragEvents = rootProps.disableColumnReorder && column.disableReorder || !rootProps.rowReordering && !!sortModel.length && treeDepth > 1 && Object.keys(editRowsState).length > 0;\n if (column.cellClassName) {\n classNames.push(clsx(typeof column.cellClassName === 'function' ? column.cellClassName(cellParams) : column.cellClassName));\n }\n const editCellState = editRowsState[rowId] ? editRowsState[rowId][column.field] : null;\n let content = null;\n if (editCellState == null && column.renderCell) {\n var _rootProps$classes;\n content = column.renderCell(_extends({}, cellParams, {\n api: apiRef.current\n })); // TODO move to GridCell\n\n classNames.push(clsx(gridClasses['cell--withRenderer'], (_rootProps$classes = rootProps.classes) == null ? void 0 : _rootProps$classes['cell--withRenderer']));\n }\n if (editCellState != null && column.renderEditCell) {\n var _rootProps$classes2;\n let updatedRow = row;\n if (apiRef.current.unstable_getRowWithUpdatedValues) {\n // Only the new editing API has this method\n updatedRow = apiRef.current.unstable_getRowWithUpdatedValues(rowId, column.field);\n }\n const editCellStateRest = _objectWithoutPropertiesLoose(editCellState, _excluded2);\n const params = _extends({}, cellParams, {\n row: updatedRow\n }, editCellStateRest, {\n api: apiRef.current\n });\n content = column.renderEditCell(params); // TODO move to GridCell\n\n classNames.push(clsx(gridClasses['cell--editing'], (_rootProps$classes2 = rootProps.classes) == null ? void 0 : _rootProps$classes2['cell--editing']));\n }\n if (rootProps.getCellClassName) {\n // TODO move to GridCell\n classNames.push(rootProps.getCellClassName(cellParams));\n }\n const hasFocus = cellFocus !== null && cellFocus.id === rowId && cellFocus.field === column.field;\n const tabIndex = cellTabIndex !== null && cellTabIndex.id === rowId && cellTabIndex.field === column.field && cellParams.cellMode === 'view' ? 0 : -1;\n return /*#__PURE__*/_jsx(rootProps.components.Cell, _extends({\n value: cellParams.value,\n field: column.field,\n width: cellProps.width,\n rowId: rowId,\n height: rowHeight,\n showRightBorder: cellProps.showRightBorder,\n formattedValue: cellParams.formattedValue,\n align: column.align || 'left',\n cellMode: cellParams.cellMode,\n colIndex: cellProps.indexRelativeToAllColumns,\n isEditable: cellParams.isEditable,\n hasFocus: hasFocus,\n tabIndex: tabIndex,\n className: clsx(classNames),\n colSpan: cellProps.colSpan,\n disableDragEvents: disableDragEvents\n }, (_rootProps$components = rootProps.componentsProps) == null ? void 0 : _rootProps$components.cell, {\n children: content\n }), column.field);\n }, [apiRef, cellTabIndex, editRowsState, cellFocus, rootProps, row, rowHeight, rowId, treeDepth, sortModel.length]);\n const sizes = apiRef.current.unstable_getRowInternalSizes(rowId);\n let minHeight = rowHeight;\n if (minHeight === 'auto' && sizes) {\n let numberOfBaseSizes = 0;\n const maximumSize = Object.entries(sizes).reduce((acc, [key, size]) => {\n const isBaseHeight = /^base[A-Z]/.test(key);\n if (!isBaseHeight) {\n return acc;\n }\n numberOfBaseSizes += 1;\n if (size > acc) {\n return size;\n }\n return acc;\n }, 0);\n if (maximumSize > 0 && numberOfBaseSizes > 1) {\n minHeight = maximumSize;\n }\n }\n const style = _extends({}, styleProp, {\n maxHeight: rowHeight === 'auto' ? 'none' : rowHeight,\n // max-height doesn't support \"auto\"\n minHeight\n });\n if (sizes != null && sizes.spacingTop) {\n const property = rootProps.rowSpacingType === 'border' ? 'borderTopWidth' : 'marginTop';\n style[property] = sizes.spacingTop;\n }\n if (sizes != null && sizes.spacingBottom) {\n const property = rootProps.rowSpacingType === 'border' ? 'borderBottomWidth' : 'marginBottom';\n let propertyValue = style[property]; // avoid overriding existing value\n\n if (typeof propertyValue !== 'number') {\n propertyValue = parseInt(propertyValue || '0', 10);\n }\n propertyValue += sizes.spacingBottom;\n style[property] = propertyValue;\n }\n const rowClassNames = apiRef.current.unstable_applyPipeProcessors('rowClassName', [], rowId);\n if (typeof rootProps.getRowClassName === 'function') {\n var _currentPage$range;\n const indexRelativeToCurrentPage = index - (((_currentPage$range = currentPage.range) == null ? void 0 : _currentPage$range.firstRowIndex) || 0);\n const rowParams = _extends({}, apiRef.current.getRowParams(rowId), {\n isFirstVisible: indexRelativeToCurrentPage === 0,\n isLastVisible: indexRelativeToCurrentPage === currentPage.rows.length - 1,\n indexRelativeToCurrentPage\n });\n rowClassNames.push(rootProps.getRowClassName(rowParams));\n }\n const randomNumber = randomNumberBetween(10000, 20, 80);\n const cells = [];\n for (let i = 0; i < renderedColumns.length; i += 1) {\n const column = renderedColumns[i];\n const indexRelativeToAllColumns = firstColumnToRender + i;\n const isLastColumn = indexRelativeToAllColumns === visibleColumns.length - 1;\n const removeLastBorderRight = isLastColumn && hasScrollX && !hasScrollY;\n const showRightBorder = !isLastColumn ? rootProps.showCellRightBorder : !removeLastBorderRight && rootProps.disableExtendRowFullWidth;\n const cellColSpanInfo = apiRef.current.unstable_getCellColSpanInfo(rowId, indexRelativeToAllColumns);\n if (cellColSpanInfo && !cellColSpanInfo.spannedByColSpan) {\n if (row) {\n const {\n colSpan,\n width\n } = cellColSpanInfo.cellProps;\n const cellProps = {\n width,\n colSpan,\n showRightBorder,\n indexRelativeToAllColumns\n };\n cells.push(getCell(column, cellProps));\n } else {\n const {\n width\n } = cellColSpanInfo.cellProps;\n const contentWidth = Math.round(randomNumber());\n cells.push(/*#__PURE__*/_jsx(rootProps.components.SkeletonCell, {\n width: width,\n contentWidth: contentWidth,\n field: column.field,\n align: column.align\n }, column.field));\n }\n }\n }\n const emptyCellWidth = containerWidth - columnsTotalWidth;\n const eventHandlers = row ? {\n onClick: publishClick,\n onDoubleClick: publish('rowDoubleClick', onDoubleClick),\n onMouseEnter: publish('rowMouseEnter', onMouseEnter),\n onMouseLeave: publish('rowMouseLeave', onMouseLeave)\n } : null;\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: handleRef,\n \"data-id\": rowId,\n \"data-rowindex\": index,\n role: \"row\",\n className: clsx(...rowClassNames, classes.root, className),\n \"aria-rowindex\": ariaRowIndex,\n \"aria-selected\": selected,\n style: style\n }, eventHandlers, other, {\n children: [cells, emptyCellWidth > 0 && /*#__PURE__*/_jsx(EmptyCell, {\n width: emptyCellWidth\n })]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridRow.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n cellFocus: PropTypes.object,\n cellTabIndex: PropTypes.object,\n containerWidth: PropTypes.number.isRequired,\n editRowsState: PropTypes.object.isRequired,\n firstColumnToRender: PropTypes.number.isRequired,\n /**\n * Index of the row in the whole sorted and filtered dataset.\n * If some rows above have expanded children, this index also take those children into account.\n */\n index: PropTypes.number.isRequired,\n isLastVisible: PropTypes.bool,\n lastColumnToRender: PropTypes.number.isRequired,\n position: PropTypes.oneOf(['center', 'left', 'right']).isRequired,\n renderedColumns: PropTypes.arrayOf(PropTypes.object).isRequired,\n row: PropTypes.object,\n rowHeight: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]).isRequired,\n rowId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,\n selected: PropTypes.bool.isRequired,\n visibleColumns: PropTypes.arrayOf(PropTypes.object).isRequired\n} : void 0;\nexport { GridRow };","map":{"version":3,"names":["_extends","_objectWithoutPropertiesLoose","_excluded","_excluded2","React","PropTypes","clsx","unstable_composeClasses","composeClasses","useForkRef","GridEditModes","GridRowModes","GridCellModes","useGridApiContext","getDataGridUtilityClass","gridClasses","useGridRootProps","gridColumnsTotalWidthSelector","useGridSelector","useGridVisibleRows","findParentElementFromClassName","GRID_CHECKBOX_SELECTION_COL_DEF","GRID_ACTIONS_COLUMN_TYPE","GRID_DETAIL_PANEL_TOGGLE_FIELD","gridSortModelSelector","gridRowTreeDepthSelector","gridDensityHeaderGroupingMaxDepthSelector","randomNumberBetween","jsx","_jsx","jsxs","_jsxs","useUtilityClasses","ownerState","editable","editing","selected","isLastVisible","rowHeight","classes","slots","root","EmptyCell","width","style","className","GridRow","forwardRef","props","refProp","_apiRef$current$getRo","rowId","row","index","styleProp","position","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","cellFocus","cellTabIndex","editRowsState","onClick","onDoubleClick","onMouseEnter","onMouseLeave","other","apiRef","ref","useRef","rootProps","currentPage","columnsTotalWidth","sortModel","treeDepth","headerGroupingMaxDepth","handleRef","ariaRowIndex","hasScrollX","hasScrollY","current","getRootDimensions","getRowMode","Edit","editMode","Row","useLayoutEffect","ResizeObserver","unstable_storeRowHeightMeasurement","clientHeight","range","rowIndex","getRowIndexRelativeToVisibleRows","unstable_setLastMeasuredRowIndex","rootElement","hasFixedHeight","undefined","resizeObserver","entries","entry","height","borderBoxSize","length","blockSize","contentRect","observe","disconnect","publish","useCallback","eventName","propHandler","event","target","nodeType","currentTarget","contains","getRow","publishEvent","getRowParams","publishClick","cell","field","getAttribute","getCellMode","column","getColumn","type","getCell","cellProps","_rootProps$components","cellParams","getCellParams","classNames","disableDragEvents","disableColumnReorder","disableReorder","rowReordering","Object","keys","cellClassName","push","editCellState","content","renderCell","_rootProps$classes","api","renderEditCell","_rootProps$classes2","updatedRow","unstable_getRowWithUpdatedValues","editCellStateRest","params","getCellClassName","hasFocus","id","tabIndex","cellMode","components","Cell","value","showRightBorder","formattedValue","align","colIndex","indexRelativeToAllColumns","isEditable","colSpan","componentsProps","children","sizes","unstable_getRowInternalSizes","minHeight","numberOfBaseSizes","maximumSize","reduce","acc","key","size","isBaseHeight","test","maxHeight","spacingTop","property","rowSpacingType","spacingBottom","propertyValue","parseInt","rowClassNames","unstable_applyPipeProcessors","getRowClassName","_currentPage$range","indexRelativeToCurrentPage","firstRowIndex","rowParams","isFirstVisible","rows","randomNumber","cells","i","isLastColumn","removeLastBorderRight","showCellRightBorder","disableExtendRowFullWidth","cellColSpanInfo","unstable_getCellColSpanInfo","spannedByColSpan","contentWidth","Math","round","SkeletonCell","emptyCellWidth","eventHandlers","role","process","env","NODE_ENV","propTypes","object","number","isRequired","bool","lastColumnToRender","oneOf","arrayOf","oneOfType","string"],"sources":["/home/gnx/Desktop/ETB/ETB-FrontEnd/node_modules/@mui/x-data-grid/components/GridRow.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"selected\", \"rowId\", \"row\", \"index\", \"style\", \"position\", \"rowHeight\", \"className\", \"visibleColumns\", \"renderedColumns\", \"containerWidth\", \"firstColumnToRender\", \"lastColumnToRender\", \"cellFocus\", \"cellTabIndex\", \"editRowsState\", \"isLastVisible\", \"onClick\", \"onDoubleClick\", \"onMouseEnter\", \"onMouseLeave\"],\n _excluded2 = [\"changeReason\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { unstable_composeClasses as composeClasses, useForkRef } from '@mui/material';\nimport { GridEditModes, GridRowModes, GridCellModes } from '../models/gridEditRowModel';\nimport { useGridApiContext } from '../hooks/utils/useGridApiContext';\nimport { getDataGridUtilityClass, gridClasses } from '../constants/gridClasses';\nimport { useGridRootProps } from '../hooks/utils/useGridRootProps';\nimport { gridColumnsTotalWidthSelector } from '../hooks/features/columns/gridColumnsSelector';\nimport { useGridSelector } from '../hooks/utils/useGridSelector';\nimport { useGridVisibleRows } from '../hooks/utils/useGridVisibleRows';\nimport { findParentElementFromClassName } from '../utils/domUtils';\nimport { GRID_CHECKBOX_SELECTION_COL_DEF } from '../colDef/gridCheckboxSelectionColDef';\nimport { GRID_ACTIONS_COLUMN_TYPE } from '../colDef/gridActionsColDef';\nimport { GRID_DETAIL_PANEL_TOGGLE_FIELD } from '../constants/gridDetailPanelToggleField';\nimport { gridSortModelSelector } from '../hooks/features/sorting/gridSortingSelector';\nimport { gridRowTreeDepthSelector } from '../hooks/features/rows/gridRowsSelector';\nimport { gridDensityHeaderGroupingMaxDepthSelector } from '../hooks/features/density/densitySelector';\nimport { randomNumberBetween } from '../utils/utils';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\n\nconst useUtilityClasses = ownerState => {\n const {\n editable,\n editing,\n selected,\n isLastVisible,\n rowHeight,\n classes\n } = ownerState;\n const slots = {\n root: ['row', selected && 'selected', editable && 'row--editable', editing && 'row--editing', isLastVisible && 'row--lastVisible', rowHeight === 'auto' && 'row--dynamicHeight']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\n\nconst EmptyCell = ({\n width\n}) => {\n if (!width) {\n return null;\n }\n\n const style = {\n width\n };\n return /*#__PURE__*/_jsx(\"div\", {\n className: \"MuiDataGrid-cell\",\n style: style\n }); // TODO change to .MuiDataGrid-emptyCell or .MuiDataGrid-rowFiller\n};\n\nconst GridRow = /*#__PURE__*/React.forwardRef(function GridRow(props, refProp) {\n var _apiRef$current$getRo;\n\n const {\n selected,\n rowId,\n row,\n index,\n style: styleProp,\n position,\n rowHeight,\n className,\n visibleColumns,\n renderedColumns,\n containerWidth,\n firstColumnToRender,\n cellFocus,\n cellTabIndex,\n editRowsState,\n isLastVisible = false,\n onClick,\n onDoubleClick,\n onMouseEnter,\n onMouseLeave\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n\n const apiRef = useGridApiContext();\n const ref = React.useRef(null);\n const rootProps = useGridRootProps();\n const currentPage = useGridVisibleRows(apiRef, rootProps);\n const columnsTotalWidth = useGridSelector(apiRef, gridColumnsTotalWidthSelector);\n const sortModel = useGridSelector(apiRef, gridSortModelSelector);\n const treeDepth = useGridSelector(apiRef, gridRowTreeDepthSelector);\n const headerGroupingMaxDepth = useGridSelector(apiRef, gridDensityHeaderGroupingMaxDepthSelector);\n const handleRef = useForkRef(ref, refProp);\n const ariaRowIndex = index + headerGroupingMaxDepth + 2; // 1 for the header row and 1 as it's 1-based\n\n const {\n hasScrollX,\n hasScrollY\n } = (_apiRef$current$getRo = apiRef.current.getRootDimensions()) != null ? _apiRef$current$getRo : {\n hasScrollX: false,\n hasScrollY: false\n };\n const ownerState = {\n selected,\n isLastVisible,\n classes: rootProps.classes,\n editing: apiRef.current.getRowMode(rowId) === GridRowModes.Edit,\n editable: rootProps.editMode === GridEditModes.Row,\n rowHeight\n };\n const classes = useUtilityClasses(ownerState);\n React.useLayoutEffect(() => {\n if (rowHeight === 'auto' && ref.current && typeof ResizeObserver === 'undefined') {\n // Fallback for IE\n apiRef.current.unstable_storeRowHeightMeasurement(rowId, ref.current.clientHeight, position);\n }\n }, [apiRef, rowHeight, rowId, position]);\n React.useLayoutEffect(() => {\n if (currentPage.range) {\n // The index prop is relative to the rows from all pages. As example, the index prop of the\n // first row is 5 if pageSize=5 and page=1. However, the index used by the virtualization\n // doesn't care about pagination and considers the rows from the current page only, so the\n // first row always has index=0. We need to subtract the index of the first row to make it\n // compatible with the index used by the virtualization.\n const rowIndex = apiRef.current.getRowIndexRelativeToVisibleRows(rowId); // pinned rows are not part of the visible rows\n\n if (rowIndex != null) {\n apiRef.current.unstable_setLastMeasuredRowIndex(rowIndex);\n }\n }\n\n const rootElement = ref.current;\n const hasFixedHeight = rowHeight !== 'auto';\n\n if (!rootElement || hasFixedHeight || typeof ResizeObserver === 'undefined') {\n return undefined;\n }\n\n const resizeObserver = new ResizeObserver(entries => {\n const [entry] = entries;\n const height = entry.borderBoxSize && entry.borderBoxSize.length > 0 ? entry.borderBoxSize[0].blockSize : entry.contentRect.height;\n apiRef.current.unstable_storeRowHeightMeasurement(rowId, height, position);\n });\n resizeObserver.observe(rootElement);\n return () => resizeObserver.disconnect();\n }, [apiRef, currentPage.range, index, rowHeight, rowId, position]);\n const publish = React.useCallback((eventName, propHandler) => event => {\n // Ignore portal\n // The target is not an element when triggered by a Select inside the cell\n // See https://github.com/mui/material-ui/issues/10534\n if (event.target.nodeType === 1 && !event.currentTarget.contains(event.target)) {\n return;\n } // The row might have been deleted\n\n\n if (!apiRef.current.getRow(rowId)) {\n return;\n }\n\n apiRef.current.publishEvent(eventName, apiRef.current.getRowParams(rowId), event);\n\n if (propHandler) {\n propHandler(event);\n }\n }, [apiRef, rowId]);\n const publishClick = React.useCallback(event => {\n const cell = findParentElementFromClassName(event.target, gridClasses.cell);\n const field = cell == null ? void 0 : cell.getAttribute('data-field'); // Check if the field is available because the cell that fills the empty\n // space of the row has no field.\n\n if (field) {\n // User clicked in the checkbox added by checkboxSelection\n if (field === GRID_CHECKBOX_SELECTION_COL_DEF.field) {\n return;\n } // User opened a detail panel\n\n\n if (field === GRID_DETAIL_PANEL_TOGGLE_FIELD) {\n return;\n } // User reorders a row\n\n\n if (field === '__reorder__') {\n return;\n } // User is editing a cell\n\n\n if (apiRef.current.getCellMode(rowId, field) === GridCellModes.Edit) {\n return;\n } // User clicked a button from the \"actions\" column type\n\n\n const column = apiRef.current.getColumn(field);\n\n if (column.type === GRID_ACTIONS_COLUMN_TYPE) {\n return;\n }\n }\n\n publish('rowClick', onClick)(event);\n }, [apiRef, onClick, publish, rowId]);\n const getCell = React.useCallback((column, cellProps) => {\n var _rootProps$components;\n\n const cellParams = apiRef.current.getCellParams(rowId, column.field);\n const classNames = [];\n const disableDragEvents = rootProps.disableColumnReorder && column.disableReorder || !rootProps.rowReordering && !!sortModel.length && treeDepth > 1 && Object.keys(editRowsState).length > 0;\n\n if (column.cellClassName) {\n classNames.push(clsx(typeof column.cellClassName === 'function' ? column.cellClassName(cellParams) : column.cellClassName));\n }\n\n const editCellState = editRowsState[rowId] ? editRowsState[rowId][column.field] : null;\n let content = null;\n\n if (editCellState == null && column.renderCell) {\n var _rootProps$classes;\n\n content = column.renderCell(_extends({}, cellParams, {\n api: apiRef.current\n })); // TODO move to GridCell\n\n classNames.push(clsx(gridClasses['cell--withRenderer'], (_rootProps$classes = rootProps.classes) == null ? void 0 : _rootProps$classes['cell--withRenderer']));\n }\n\n if (editCellState != null && column.renderEditCell) {\n var _rootProps$classes2;\n\n let updatedRow = row;\n\n if (apiRef.current.unstable_getRowWithUpdatedValues) {\n // Only the new editing API has this method\n updatedRow = apiRef.current.unstable_getRowWithUpdatedValues(rowId, column.field);\n }\n\n const editCellStateRest = _objectWithoutPropertiesLoose(editCellState, _excluded2);\n\n const params = _extends({}, cellParams, {\n row: updatedRow\n }, editCellStateRest, {\n api: apiRef.current\n });\n\n content = column.renderEditCell(params); // TODO move to GridCell\n\n classNames.push(clsx(gridClasses['cell--editing'], (_rootProps$classes2 = rootProps.classes) == null ? void 0 : _rootProps$classes2['cell--editing']));\n }\n\n if (rootProps.getCellClassName) {\n // TODO move to GridCell\n classNames.push(rootProps.getCellClassName(cellParams));\n }\n\n const hasFocus = cellFocus !== null && cellFocus.id === rowId && cellFocus.field === column.field;\n const tabIndex = cellTabIndex !== null && cellTabIndex.id === rowId && cellTabIndex.field === column.field && cellParams.cellMode === 'view' ? 0 : -1;\n return /*#__PURE__*/_jsx(rootProps.components.Cell, _extends({\n value: cellParams.value,\n field: column.field,\n width: cellProps.width,\n rowId: rowId,\n height: rowHeight,\n showRightBorder: cellProps.showRightBorder,\n formattedValue: cellParams.formattedValue,\n align: column.align || 'left',\n cellMode: cellParams.cellMode,\n colIndex: cellProps.indexRelativeToAllColumns,\n isEditable: cellParams.isEditable,\n hasFocus: hasFocus,\n tabIndex: tabIndex,\n className: clsx(classNames),\n colSpan: cellProps.colSpan,\n disableDragEvents: disableDragEvents\n }, (_rootProps$components = rootProps.componentsProps) == null ? void 0 : _rootProps$components.cell, {\n children: content\n }), column.field);\n }, [apiRef, cellTabIndex, editRowsState, cellFocus, rootProps, row, rowHeight, rowId, treeDepth, sortModel.length]);\n const sizes = apiRef.current.unstable_getRowInternalSizes(rowId);\n let minHeight = rowHeight;\n\n if (minHeight === 'auto' && sizes) {\n let numberOfBaseSizes = 0;\n const maximumSize = Object.entries(sizes).reduce((acc, [key, size]) => {\n const isBaseHeight = /^base[A-Z]/.test(key);\n\n if (!isBaseHeight) {\n return acc;\n }\n\n numberOfBaseSizes += 1;\n\n if (size > acc) {\n return size;\n }\n\n return acc;\n }, 0);\n\n if (maximumSize > 0 && numberOfBaseSizes > 1) {\n minHeight = maximumSize;\n }\n }\n\n const style = _extends({}, styleProp, {\n maxHeight: rowHeight === 'auto' ? 'none' : rowHeight,\n // max-height doesn't support \"auto\"\n minHeight\n });\n\n if (sizes != null && sizes.spacingTop) {\n const property = rootProps.rowSpacingType === 'border' ? 'borderTopWidth' : 'marginTop';\n style[property] = sizes.spacingTop;\n }\n\n if (sizes != null && sizes.spacingBottom) {\n const property = rootProps.rowSpacingType === 'border' ? 'borderBottomWidth' : 'marginBottom';\n let propertyValue = style[property]; // avoid overriding existing value\n\n if (typeof propertyValue !== 'number') {\n propertyValue = parseInt(propertyValue || '0', 10);\n }\n\n propertyValue += sizes.spacingBottom;\n style[property] = propertyValue;\n }\n\n const rowClassNames = apiRef.current.unstable_applyPipeProcessors('rowClassName', [], rowId);\n\n if (typeof rootProps.getRowClassName === 'function') {\n var _currentPage$range;\n\n const indexRelativeToCurrentPage = index - (((_currentPage$range = currentPage.range) == null ? void 0 : _currentPage$range.firstRowIndex) || 0);\n\n const rowParams = _extends({}, apiRef.current.getRowParams(rowId), {\n isFirstVisible: indexRelativeToCurrentPage === 0,\n isLastVisible: indexRelativeToCurrentPage === currentPage.rows.length - 1,\n indexRelativeToCurrentPage\n });\n\n rowClassNames.push(rootProps.getRowClassName(rowParams));\n }\n\n const randomNumber = randomNumberBetween(10000, 20, 80);\n const cells = [];\n\n for (let i = 0; i < renderedColumns.length; i += 1) {\n const column = renderedColumns[i];\n const indexRelativeToAllColumns = firstColumnToRender + i;\n const isLastColumn = indexRelativeToAllColumns === visibleColumns.length - 1;\n const removeLastBorderRight = isLastColumn && hasScrollX && !hasScrollY;\n const showRightBorder = !isLastColumn ? rootProps.showCellRightBorder : !removeLastBorderRight && rootProps.disableExtendRowFullWidth;\n const cellColSpanInfo = apiRef.current.unstable_getCellColSpanInfo(rowId, indexRelativeToAllColumns);\n\n if (cellColSpanInfo && !cellColSpanInfo.spannedByColSpan) {\n if (row) {\n const {\n colSpan,\n width\n } = cellColSpanInfo.cellProps;\n const cellProps = {\n width,\n colSpan,\n showRightBorder,\n indexRelativeToAllColumns\n };\n cells.push(getCell(column, cellProps));\n } else {\n const {\n width\n } = cellColSpanInfo.cellProps;\n const contentWidth = Math.round(randomNumber());\n cells.push( /*#__PURE__*/_jsx(rootProps.components.SkeletonCell, {\n width: width,\n contentWidth: contentWidth,\n field: column.field,\n align: column.align\n }, column.field));\n }\n }\n }\n\n const emptyCellWidth = containerWidth - columnsTotalWidth;\n const eventHandlers = row ? {\n onClick: publishClick,\n onDoubleClick: publish('rowDoubleClick', onDoubleClick),\n onMouseEnter: publish('rowMouseEnter', onMouseEnter),\n onMouseLeave: publish('rowMouseLeave', onMouseLeave)\n } : null;\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: handleRef,\n \"data-id\": rowId,\n \"data-rowindex\": index,\n role: \"row\",\n className: clsx(...rowClassNames, classes.root, className),\n \"aria-rowindex\": ariaRowIndex,\n \"aria-selected\": selected,\n style: style\n }, eventHandlers, other, {\n children: [cells, emptyCellWidth > 0 && /*#__PURE__*/_jsx(EmptyCell, {\n width: emptyCellWidth\n })]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridRow.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n cellFocus: PropTypes.object,\n cellTabIndex: PropTypes.object,\n containerWidth: PropTypes.number.isRequired,\n editRowsState: PropTypes.object.isRequired,\n firstColumnToRender: PropTypes.number.isRequired,\n\n /**\n * Index of the row in the whole sorted and filtered dataset.\n * If some rows above have expanded children, this index also take those children into account.\n */\n index: PropTypes.number.isRequired,\n isLastVisible: PropTypes.bool,\n lastColumnToRender: PropTypes.number.isRequired,\n position: PropTypes.oneOf(['center', 'left', 'right']).isRequired,\n renderedColumns: PropTypes.arrayOf(PropTypes.object).isRequired,\n row: PropTypes.object,\n rowHeight: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]).isRequired,\n rowId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,\n selected: PropTypes.bool.isRequired,\n visibleColumns: PropTypes.arrayOf(PropTypes.object).isRequired\n} : void 0;\nexport { GridRow };"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,oCAAoC;AACzD,OAAOC,6BAA6B,MAAM,yDAAyD;AACnG,MAAMC,SAAS,GAAG,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,SAAS,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,CAAC;EAC/TC,UAAU,GAAG,CAAC,cAAc,CAAC;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAOC,SAAS,MAAM,YAAY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