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.10.1 to 8.11.0

10

Components/Table/Table.d.ts

@@ -21,3 +21,3 @@ import * as React from 'react';

}
export interface ITableProps {
export interface ITableProps<TData = any> {
columnReordering?: boolean;

@@ -27,3 +27,3 @@ columnResizing?: boolean;

groupedColumns?: GroupedColumn[];
data?: any[];
data?: TData[];
detailsRows?: any[];

@@ -67,8 +67,8 @@ editableCells?: EditableCell[];

}
export interface IKaTableProps extends ITableProps {
childComponents?: ChildComponents;
export interface IKaTableProps<TData = any> extends ITableProps<TData> {
childComponents?: ChildComponents<TData>;
dispatch?: DispatchFunc;
table?: ITableInstance;
}
export declare const Table: React.FunctionComponent<IKaTableProps>;
export declare const Table: <TData = any>(props: IKaTableProps<TData>) => React.JSX.Element;
export {};

@@ -9,3 +9,3 @@ import * as React from 'react';

}
export declare const TablePropsContext: React.Context<ITableProps>;
export declare const TablePropsContext: React.Context<ITableProps<any>>;
export declare const TableControlled: React.FunctionComponent<ITableAllProps>;
import { ICellEditorProps, ICellProps, ICellTextProps, IDataRowProps, IEmptyCellProps, IFilterRowEditorProps, IGroupPanelCellProps, IGroupPanelProps, IGroupRowProps, IGroupSummaryCellProps, IGroupSummaryRowProps, IHeadCellProps, IHeadCellResizeProps, IHeadRowProps, IHeaderFilterButtonProps, ILoadingProps, INoDataRowProps, IPagingIndexProps, IPagingProps, IPagingSizeProps, IPopupContentItemProps, IPopupContentProps, ISortIconProps, ISummaryCellProps, ISummaryRowProps, ITableBodyProps, ITableFootProps, ITableHeadProps } from '../props';
import { ChildComponent } from './ChildComponent';
import { ITableProps } from '../';
export declare class ChildComponents {
cell?: ChildComponent<ICellProps>;
cellEditor?: ChildComponent<ICellEditorProps>;
cellEditorInput?: ChildComponent<ICellEditorProps>;
cellText?: ChildComponent<ICellTextProps>;
dataRow?: ChildComponent<IDataRowProps>;
detailsCell?: ChildComponent<IDataRowProps>;
detailsRow?: ChildComponent<IDataRowProps>;
export declare class ChildComponents<TData = any> {
cell?: ChildComponent<ICellProps<TData>>;
cellEditor?: ChildComponent<ICellEditorProps<TData>>;
cellEditorInput?: ChildComponent<ICellEditorProps<TData>>;
cellText?: ChildComponent<ICellTextProps<TData>>;
dataRow?: ChildComponent<IDataRowProps<TData>>;
detailsCell?: ChildComponent<IDataRowProps<TData>>;
detailsRow?: ChildComponent<IDataRowProps<TData>>;
emptyCell?: ChildComponent<IEmptyCellProps>;

@@ -16,7 +16,7 @@ filterRowCell?: ChildComponent<IFilterRowEditorProps>;

groupPanelCell?: ChildComponent<IGroupPanelCellProps>;
groupExpandButton?: ChildComponent<IGroupRowProps>;
groupCell?: ChildComponent<IGroupRowProps>;
groupRow?: ChildComponent<IGroupRowProps>;
groupSummaryRow?: ChildComponent<IGroupSummaryRowProps>;
groupSummaryCell?: ChildComponent<IGroupSummaryCellProps>;
groupExpandButton?: ChildComponent<IGroupRowProps<TData>>;
groupCell?: ChildComponent<IGroupRowProps<TData>>;
groupRow?: ChildComponent<IGroupRowProps<TData>>;
groupSummaryRow?: ChildComponent<IGroupSummaryRowProps<TData>>;
groupSummaryCell?: ChildComponent<IGroupSummaryCellProps<TData>>;
headFilterButton?: ChildComponent<IHeaderFilterButtonProps>;

@@ -35,14 +35,14 @@ headCell?: ChildComponent<IHeadCellProps>;

pagingSizes?: ChildComponent<IPagingProps>;
popupContent?: ChildComponent<IPopupContentProps>;
popupContent?: ChildComponent<IPopupContentProps<TData>>;
popupContentItem?: ChildComponent<IPopupContentItemProps>;
popupContentItemText?: ChildComponent<IPopupContentItemProps>;
rootDiv?: ChildComponent<ITableProps>;
rootDiv?: ChildComponent<ITableProps<TData>>;
sortIcon?: ChildComponent<ISortIconProps>;
summaryCell?: ChildComponent<ISummaryCellProps>;
summaryRow?: ChildComponent<ISummaryRowProps>;
table?: ChildComponent<ITableProps>;
tableBody?: ChildComponent<ITableBodyProps>;
tableFoot?: ChildComponent<ITableFootProps>;
summaryCell?: ChildComponent<ISummaryCellProps<TData>>;
summaryRow?: ChildComponent<ISummaryRowProps<TData>>;
table?: ChildComponent<ITableProps<TData>>;
tableBody?: ChildComponent<ITableBodyProps<TData>>;
tableFoot?: ChildComponent<ITableFootProps<TData>>;
tableHead?: ChildComponent<ITableHeadProps>;
tableWrapper?: ChildComponent<ITableProps>;
tableWrapper?: ChildComponent<ITableProps<TData>>;
}
{
"name": "ka-table",
"version": "8.10.1",
"version": "8.11.0",
"license": "MIT",

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

@@ -28,3 +28,3 @@ import { ChildComponents, Column, EditableCell, Group, VirtualScrolling } from './models';

}
interface IRowCommonProps {
interface IRowCommonProps<TData = any> {
childComponents: ChildComponents;

@@ -40,3 +40,3 @@ columns: Column[];

isTreeGroup?: boolean;
rowData: any;
rowData: TData;
rowKeyField: string;

@@ -46,3 +46,3 @@ rowKeyValue: any;

}
export interface ICellProps {
export interface ICellProps<TData = any> {
treeArrowElement?: any;

@@ -61,3 +61,3 @@ childComponents: ChildComponents;

isSelectedRow: boolean;
rowData: any;
rowData: TData;
rowKeyField: string;

@@ -75,3 +75,3 @@ rowKeyValue: any;

}
export interface ICellEditorProps extends IFilterRowEditorProps {
export interface ICellEditorProps<TData = any> extends IFilterRowEditorProps {
autoFocus?: boolean;

@@ -83,3 +83,3 @@ editingMode: EditingMode;

isSelectedRow: boolean;
rowData: any;
rowData: TData;
rowKeyField: string;

@@ -92,3 +92,3 @@ rowKeyValue: any;

}
export interface ICellTextProps {
export interface ICellTextProps<TData = any> {
childComponents: ChildComponents;

@@ -102,3 +102,3 @@ column: Column;

isSelectedRow: boolean;
rowData: any;
rowData: TData;
rowKeyField: string;

@@ -109,3 +109,3 @@ rowKeyValue: any;

}
export interface IDataRowProps extends IRowCommonProps {
export interface IDataRowProps<TData = any> extends IRowCommonProps<TData> {
format?: FormatFunc;

@@ -117,3 +117,3 @@ validation?: ValidationFunc;

}
export interface IGroupRowProps {
export interface IGroupRowProps<TData = any> {
childComponents: ChildComponents;

@@ -129,9 +129,9 @@ column: Column;

text: string;
groupItems?: any[];
groupItems?: TData[];
}
export interface IGroupSummaryRowProps extends IRowsProps {
groupData: any[];
export interface IGroupSummaryRowProps<TData = any> extends IRowsProps {
groupData: TData[];
groupIndex: number;
}
export interface IGroupSummaryCellProps extends IGroupSummaryRowProps {
export interface IGroupSummaryCellProps<TData = any> extends IGroupSummaryRowProps<TData> {
column: Column;

@@ -179,6 +179,6 @@ }

}
export interface ITableBodyProps {
export interface ITableBodyProps<TData = any> {
childComponents: ChildComponents;
columns: Column[];
data: any[];
data: TData[];
loading?: ILoadingProps;

@@ -202,9 +202,9 @@ detailsRows?: any[];

}
export interface ITableFootProps extends ITableAllProps {
data: any[];
export interface ITableFootProps<TData = any> extends ITableAllProps {
data: TData[];
groupColumnsCount: number;
}
export interface ISummaryRowProps extends ITableFootProps {
export interface ISummaryRowProps<TData = any> extends ITableFootProps<TData> {
}
export interface ISummaryCellProps extends ISummaryRowProps {
export interface ISummaryCellProps<TData = any> extends ISummaryRowProps<TData> {
column: Column;

@@ -292,6 +292,6 @@ }

}
export interface IPopupContentProps {
export interface IPopupContentProps<TData = any> {
column: Column;
childComponents?: ChildComponents;
data?: any[];
data?: TData[];
dispatch: DispatchFunc;

@@ -298,0 +298,0 @@ format?: FormatFunc;

@@ -14,3 +14,3 @@ import { ITableProps } from '../';

export declare const removeDataKeysFromSelectedRows: (selectedRows: any[], data: any[], rowKeyField: string) => any[];
export declare const getUpdatedFocused: (props: ITableProps, action: any, funcToUpdate: any) => ITableProps | {
export declare const getUpdatedFocused: (props: ITableProps, action: any, funcToUpdate: any) => ITableProps<any> | {
focused: {

@@ -17,0 +17,0 @@ cell: any;

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