Socket
Socket
Sign inDemoInstall

@yahya.saidi/super-header-react-data-grid

Package Overview
Dependencies
7
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.2-canary.26 to 7.0.3-canary.26

3

lib/DataGrid.js

@@ -65,3 +65,4 @@ import React, { forwardRef, useState, useRef, useLayoutEffect, useEffect, useImperativeHandle, useCallback, createElement, } from "react";

const summaryRowsCount = (_a = summaryRows === null || summaryRows === void 0 ? void 0 : summaryRows.length) !== null && _a !== void 0 ? _a : 0;
const totalHeaderHeight = headerRowHeight + (enableFilters ? headerFiltersHeight : 0);
const totalHeaderHeight = headerRowHeight * (superHeader ? superHeader.length : 1) +
(enableFilters ? headerFiltersHeight : 0);
const clientHeight = gridHeight - totalHeaderHeight - summaryRowsCount * rowHeight;

@@ -68,0 +69,0 @@ const isSelectable = selectedRows !== undefined && onSelectedRowsChange !== undefined;

@@ -24,5 +24,5 @@ import React, { useCallback, memo } from "react";

else {
return (React.createElement("div", null, superHeader.map((header) => {
return (React.createElement("div", { role: "superHeaderWrapper", "aria-rowindex": 1 }, superHeader.map((header, i) => {
var leftSum = 0; // this variable is only to get the sum of left for the positioning of the grid elements
return (React.createElement("div", { role: "superHeader", "aria-rowindex": 1, className: "rdg-header-row" }, header.map((subHeader, i, arr) => {
return (React.createElement("div", { role: "superHeader", "aria-rowindex": i + 1, className: "rdg-header-row" }, header.map((subHeader, i, arr) => {
var left;

@@ -29,0 +29,0 @@ if (i == 0) {

{
"name": "@yahya.saidi/super-header-react-data-grid",
"version": "7.0.2-canary.26",
"version": "7.0.3-canary.26",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "Excel-like grid component built with React, with editors, keyboard navigation, copy & paste, and the like",

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc