ia-table 0.10.1 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,16 +3,16 @@
3
3
  import {
4
4
  SmartGridInfiniteCache,
5
5
  SmartGridInfiniteRowModel,
6
- } from "./cache.type";
7
- import { SmartGridColumnDefinition } from "./columns.type";
6
+ } from "./cache";
7
+ import { SmartGridColumnDefinition } from "./columns";
8
8
  import {
9
9
  SmartGridFilterModel,
10
10
  SmartGridRowNode,
11
11
  SmartGridSortDirection,
12
12
  SmartGridSortModel,
13
13
  SmartGridUpdateData,
14
- } from "./common.type";
15
- import { SmartGridStateContext } from "./reducer.type";
14
+ } from "./common";
15
+ import { SmartGridStateContext } from "./reducer";
16
16
 
17
17
  export type SmartGridModelType = "normal" | "serverSide" | "infinite";
18
18
 
@@ -1,4 +1,4 @@
1
- import { SmartGridRowData } from "./api.type";
1
+ import { SmartGridRowData } from "./api";
2
2
 
3
3
  export type SmartGridCacheAnalytics = {
4
4
  blockEvictions: number;
@@ -1,10 +1,10 @@
1
- import { CSSProperties } from "react";
2
- import { SmartGridAPI, SmartGridRowData } from "./api.type";
1
+ import React, { CSSProperties } from "react";
2
+ import { SmartGridAPI, SmartGridRowData } from "./api";
3
3
  import {
4
4
  SmartGridNewSortModel,
5
5
  SmartGridSortModel,
6
6
  SmartGridUpdateData,
7
- } from "./common.type";
7
+ } from "./common";
8
8
 
9
9
  export interface SmartGridValueFormatterParams {
10
10
  value: unknown;
@@ -76,6 +76,23 @@ export type SmartGridHeaderStyleParams = {
76
76
  menuToggle: (e: React.MouseEvent<HTMLElement>) => void;
77
77
  toggleAdvancedSeach: (value: boolean) => void;
78
78
  };
79
+
80
+ export type SmartGridTooltipGetterParams = {
81
+ api: SmartGridAPI;
82
+ colDef: SmartGridColumnDefinition;
83
+ column: SmartGridColumnDefinition;
84
+ data: SmartGridRowData;
85
+ location: string;
86
+ node: {
87
+ data: SmartGridRowData;
88
+ id: string;
89
+ level: number;
90
+ parent: SmartGridUpdateData;
91
+ rowIndex: number;
92
+ };
93
+ rowIndex: number;
94
+ value: unknown;
95
+ };
79
96
  export interface SmartGridColumnDefinition {
80
97
  field: string;
81
98
  headerName?: string;
@@ -179,7 +196,8 @@ export interface SmartGridColumnDefinition {
179
196
  columnGroupShow?: "open" | "closed";
180
197
  [key: string]: unknown;
181
198
  };
182
- headerComponent: React.FC<SmartGridHeaderStyleParams>;
199
+ headerComponent?: React.FC<SmartGridHeaderStyleParams>;
183
200
  headerStyle?: (params: SmartGridHeaderStyleParams) => CSSProperties;
201
+ tooltipValueGetter?: (params: SmartGridTooltipGetterParams) => string;
184
202
  [key: string]: unknown;
185
203
  }
@@ -1,4 +1,4 @@
1
- import { SmartGridRowData } from "./api.type";
1
+ import { SmartGridRowData } from "./api";
2
2
 
3
3
  export type SmartGridSortDirection = "asc" | "desc" | "none";
4
4
 
@@ -0,0 +1,7 @@
1
+ // Export all types from all type files using wildcard exports
2
+ export * from "./api";
3
+ export * from "./cache";
4
+ export * from "./columns";
5
+ export * from "./common";
6
+ export * from "./reducer";
7
+ export * from "./table";
@@ -2,14 +2,14 @@ import { CSSProperties, ReactNode, Ref } from "react";
2
2
  import {
3
3
  SmartGridColumnDefinition,
4
4
  SmartGridHeaderStyleParams,
5
- } from "./columns.type";
5
+ } from "./columns";
6
6
  import {
7
7
  SmartGridAPI,
8
8
  SmartGridCellValueChangedParams,
9
9
  SmartGridGetRowDataParams,
10
10
  SmartGridRowData,
11
- } from "./api.type";
12
- import { SmartGridSortModel } from "./common.type";
11
+ } from "./api";
12
+ import { SmartGridSortModel } from "./common";
13
13
 
14
14
  export interface SmartGridTableRef {
15
15
  api: SmartGridAPI;
@@ -196,5 +196,6 @@ export type SmartGridTableProps = {
196
196
  onCellClick?: () => void;
197
197
  onRowClicked?: () => void;
198
198
  onRowClick?: () => void;
199
+ disableSelectAllRecords?: boolean;
199
200
  [key: string]: any;
200
201
  };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { ComponentType } from "react";
2
- import { SmartGridTableProps } from "./components/IATable/types/table.type";
2
+ import type { SmartGridTableProps } from "./components/IATable/types/table";
3
3
 
4
4
  // Export all types from the types folder
5
- export * from "./components/IATable/types/index.type";
5
+ export * from "./components/IATable/types/index";
6
6
 
7
7
  // SVG module declarations for library consumers
8
8
  declare module "*.svg" {