Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ka-table

Package Overview
Dependencies
Maintainers
1
Versions
194
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ka-table - npm Package Compare versions

Comparing version 8.3.2 to 8.4.0

6

Components/Rows/Rows.js

@@ -41,4 +41,2 @@ "use strict";

var react_1 = __importStar(require("react"));
var DataUtils_1 = require("../../Utils/DataUtils");
var FilterUtils_1 = require("../../Utils/FilterUtils");
var GroupUtils_1 = require("../../Utils/GroupUtils");

@@ -49,2 +47,4 @@ var TreeUtils_1 = require("../../Utils/TreeUtils");

var GroupSummaryRow_1 = require("../GroupSummaryRow/GroupSummaryRow");
var FilterUtils_1 = require("../../Utils/FilterUtils");
var DataUtils_1 = require("../../Utils/DataUtils");
var Rows = function (props) {

@@ -63,3 +63,3 @@ var childComponents = props.childComponents, columns = props.columns, data = props.data, _a = props.detailsRows, detailsRows = _a === void 0 ? [] : _a, dispatch = props.dispatch, editableCells = props.editableCells, format = props.format, groupedColumns = props.groupedColumns, _b = props.groups, groups = _b === void 0 ? [] : _b, _c = props.groupsExpanded, groupsExpanded = _c === void 0 ? [] : _c, onFirstRowRendered = props.onFirstRowRendered, treeGroupsExpanded = props.treeGroupsExpanded, rowKeyField = props.rowKeyField, rowReordering = props.rowReordering, selectedRows = props.selectedRows, validation = props.validation, treeExpandButtonColumnKey = props.treeExpandButtonColumnKey;

var column = group_1 && groupedColumns.find(function (c) { return c.key === group_1.columnKey; });
return (react_1.default.createElement(GroupRow_1.default, { childComponents: childComponents, column: column, contentColSpan: columns.length - groupIndex + groups.length, dispatch: dispatch, groupIndex: groupIndex, groupKey: d.key, isExpanded: groupsExpanded.some(function (ge) { return JSON.stringify(ge) === JSON.stringify(d.key); }), text: (0, GroupUtils_1.getGroupText)(d.value, column, format), key: JSON.stringify(d.key) }));
return (react_1.default.createElement(GroupRow_1.default, { childComponents: childComponents, column: column, contentColSpan: columns.length - groupIndex + groups.length, dispatch: dispatch, groupIndex: groupIndex, groupKey: d.key, groupItems: d.groupItems, columns: columns, groupedColumns: groupedColumns, isExpanded: groupsExpanded.some(function (ge) { return JSON.stringify(ge) === JSON.stringify(d.key); }), text: (0, GroupUtils_1.getGroupText)(d.value, column, format), key: JSON.stringify(d.key) }));
}

@@ -66,0 +66,0 @@ else if (d.groupSummaryMark === GroupUtils_1.groupSummaryMark) {

{
"name": "ka-table",
"version": "8.3.2",
"version": "8.4.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "repository": "github:komarovalexander/ka-table",

@@ -111,2 +111,4 @@ import { ChildComponents, Column, EditableCell, Group, VirtualScrolling } from './models';

column: Column;
columns?: Column[];
groupedColumns?: Column[];
contentColSpan: number;

@@ -118,2 +120,3 @@ dispatch: DispatchFunc;

text: string;
groupItems?: any[];
}

@@ -120,0 +123,0 @@ export interface IGroupSummaryRowProps extends IRowsProps {

@@ -46,3 +46,3 @@ "use strict";

groupKey.push(groupValue);
result.push({ groupMark: exports.groupMark, key: groupKey, value: groupValue });
result.push({ groupMark: exports.groupMark, key: groupKey, value: groupValue, groupItems: value });
result = __spreadArray(__spreadArray([], result, true), (Array.isArray(value) ? value : (0, exports.convertToFlat)(value, groupKey)), true);

@@ -49,0 +49,0 @@ }

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc