streaksheet
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -146,4 +146,6 @@ "use strict"; | ||
bordersInSelection: bordersInSelection, | ||
columnIndex: columnIndex, | ||
isInHighlightedRow: isInHighlightedRow, | ||
isSelectionStart: isSelectionStart | ||
isSelectionStart: isSelectionStart, | ||
rowIndex: rowIndex | ||
}) | ||
@@ -150,0 +152,0 @@ }, content); |
@@ -6,2 +6,3 @@ import { ComponentType } from 'react'; | ||
column: ColumnInfo; | ||
columnIndex: number; | ||
columnWidths: number[]; | ||
@@ -15,3 +16,3 @@ gridElement: HTMLElement; | ||
} | ||
export default function ColumnHeaderCellContainer({ ColumnHeaderCell, column, columnWidths, gridElement, height, minimumColumnWidth, onReorder, onResize, styles, }: Props): JSX.Element; | ||
export default function ColumnHeaderCellContainer({ ColumnHeaderCell, column, columnIndex, columnWidths, gridElement, height, minimumColumnWidth, onReorder, onResize, styles, }: Props): JSX.Element; | ||
export {}; |
@@ -29,2 +29,3 @@ "use strict"; | ||
column = _ref.column, | ||
columnIndex = _ref.columnIndex, | ||
columnWidths = _ref.columnWidths, | ||
@@ -114,2 +115,3 @@ gridElement = _ref.gridElement, | ||
}, { | ||
columnIndex: columnIndex, | ||
isDragging: isDragging | ||
@@ -116,0 +118,0 @@ }) |
@@ -53,6 +53,9 @@ import React, { CSSProperties } from 'react'; | ||
bordersInSelection: Border[] | null; | ||
columnIndex: number; | ||
isInHighlightedRow: boolean; | ||
isSelectionStart: boolean; | ||
rowIndex: number; | ||
}) => CSSProperties; | ||
columnHeaderCellContainer: (base: CSSProperties, state: { | ||
columnIndex: number; | ||
isDragging: boolean; | ||
@@ -69,3 +72,5 @@ }) => CSSProperties; | ||
grid: (base: CSSProperties) => CSSProperties; | ||
sectionHeaderCellContainer: (base: CSSProperties) => CSSProperties; | ||
sectionHeaderCellContainer: (base: CSSProperties, state: { | ||
columnIndex: number; | ||
}) => CSSProperties; | ||
sectionHeadersContainer: (base: CSSProperties) => CSSProperties; | ||
@@ -72,0 +77,0 @@ } |
@@ -81,3 +81,3 @@ "use strict"; | ||
style: styles.columnHeadersContainer({ | ||
background: '#fff', | ||
backgroundColor: '#fff', | ||
contain: 'size layout', | ||
@@ -95,2 +95,3 @@ fontWeight: 'bold', | ||
column: column, | ||
columnIndex: columnIndex, | ||
columnWidths: columnWidths, | ||
@@ -130,6 +131,7 @@ gridElement: gridElement, | ||
style: styles.sectionHeadersContainer({ | ||
background: '#fff', | ||
backgroundColor: '#fff', | ||
contain: 'size', | ||
fontWeight: 'bold', | ||
height: section.sectionRowHeight + 'px', | ||
lineHeight: section.sectionRowHeight + 'px', | ||
position: 'sticky', | ||
@@ -139,3 +141,3 @@ top: defaultRowHeight + 'px', | ||
}) | ||
}, columnAndOverviewData.columns.map(function (column) { | ||
}, columnAndOverviewData.columns.map(function (column, columnIndex) { | ||
return /*#__PURE__*/_react["default"].createElement("div", { | ||
@@ -153,2 +155,4 @@ key: column.key, | ||
width: column.width + 'px' | ||
}, { | ||
columnIndex: columnIndex | ||
}) | ||
@@ -155,0 +159,0 @@ }, /*#__PURE__*/_react["default"].createElement(SectionHeaderCell, { |
{ | ||
"name": "streaksheet", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"author": "Chris Cowan <agentme49@gmail.com>", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
282817
2656