@abdellatifui/react 3.2.16 → 3.2.18

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.
package/dist/nextgen.d.ts CHANGED
@@ -17,11 +17,13 @@ import { InternalAxiosRequestConfig } from 'axios';
17
17
  import { IntersectionOptions } from 'react-intersection-observer';
18
18
  import { JSX } from 'react/jsx-runtime';
19
19
  import { MapProps } from 'react-map-gl/maplibre';
20
+ import { MutableRefObject } from 'react';
20
21
  import * as React_2 from 'react';
21
22
  import { ReactNode } from 'react';
22
23
  import { RefAttributes } from 'react';
23
24
  import { RefObject } from 'react';
24
25
  import { SetStateAction } from 'react';
26
+ import { ThemeDefaultParams } from 'ag-grid-community';
25
27
  import { TooltipProviderProps } from '@radix-ui/react-tooltip';
26
28
  import { ViewState } from 'react-map-gl/maplibre';
27
29
 
@@ -284,7 +286,7 @@ export declare const createDefaultNodeTempate: (params: NodeParams) => NodeTempl
284
286
 
285
287
  export { cva }
286
288
 
287
- export declare const DataTable: default_2.NamedExoticComponent<TableProps_2 & default_2.RefAttributes<HTMLDivElement>>;
289
+ export declare const DataTable: default_2.MemoExoticComponent<(props: TableProps_2) => JSX.Element>;
288
290
 
289
291
  export declare const DialogPanel: default_2.ForwardRefExoticComponent<Omit<DialogPanelProps_2, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
290
292
 
@@ -578,7 +580,7 @@ declare interface ModelProps_2 {
578
580
  children?: default_2.ReactNode;
579
581
  bodyClick?: boolean;
580
582
  className?: string;
581
- variant?: 'transparent' | 'blur' | 'dimmed';
583
+ variant?: "transparent" | "blur" | "dimmed";
582
584
  inline?: boolean;
583
585
  hideOnContextMenu?: boolean;
584
586
  onBodyClick?: (event: default_2.MouseEvent<HTMLDivElement>) => void;
@@ -975,6 +977,7 @@ declare interface SidebarProps_2 {
975
977
  className?: string;
976
978
  style?: default_2.CSSProperties;
977
979
  ref?: default_2.RefObject<HTMLDivElement>;
980
+ container?: MutableRefObject<HTMLDivElement>;
978
981
  }
979
982
 
980
983
  export declare type SidebarVariant = 'default';
@@ -1136,6 +1139,7 @@ declare interface TableProps_2 {
1136
1139
  aggrid: AgGridReactProps;
1137
1140
  pageSize: number;
1138
1141
  rowHeight: string;
1142
+ enableRowStream?: boolean;
1139
1143
  tableName: string;
1140
1144
  enablePagination?: boolean;
1141
1145
  enableContextMenu?: boolean;
@@ -1143,11 +1147,14 @@ declare interface TableProps_2 {
1143
1147
  toolbarBtns?: any[];
1144
1148
  hidden?: any[];
1145
1149
  enableExpand: boolean;
1150
+ cellGrid: boolean;
1151
+ supressCellRefresh: boolean;
1146
1152
  autoSizeStrategy?: string;
1147
1153
  headerMapper?: {
1148
1154
  key: string;
1149
1155
  value: any;
1150
1156
  }[];
1157
+ tableTheme?: ThemeDefaultParams;
1151
1158
  menuItems?: {
1152
1159
  label: string;
1153
1160
  icon: any;
@@ -1160,7 +1167,16 @@ declare interface TableProps_2 {
1160
1167
  onCellClick?: (params: any, value: any, field: string) => void;
1161
1168
  onTableBuilt?: (callback: any) => void;
1162
1169
  onExpand?: (params: any) => void;
1170
+ showCellTextInTopBar: boolean;
1163
1171
  onRefresh?: (callback: any) => void;
1172
+ columnProps?: [
1173
+ {
1174
+ minWidth: number;
1175
+ maxWidth: number;
1176
+ column: string;
1177
+ index: number;
1178
+ }
1179
+ ];
1164
1180
  onChangeItem: {
1165
1181
  key: string;
1166
1182
  operation: void;
@@ -1178,9 +1194,11 @@ declare interface TableProps_2 {
1178
1194
  topbar?: boolean;
1179
1195
  hideFromTable?: any[];
1180
1196
  formater?: any;
1197
+ fontFamily: string;
1181
1198
  viewAsArray?: any[];
1182
1199
  filter?: any;
1183
1200
  groupBy?: any;
1201
+ rowSelectionBgColor?: string;
1184
1202
  onMultiRowSelection?: (params: any, rows: any[]) => void;
1185
1203
  }
1186
1204
 
@@ -1203,13 +1221,14 @@ export declare interface TextAreaProps extends default_2.TextareaHTMLAttributes<
1203
1221
  */
1204
1222
  export declare function throttle(func: Function, limit: number): (this: any, ...args: any[]) => void;
1205
1223
 
1206
- export declare const TinnyHelp: (props: any) => JSX.Element;
1224
+ export declare const TinnyHelp: (props: TinnyHelpProps) => JSX.Element;
1207
1225
 
1208
1226
  export declare interface TinnyHelpProps {
1209
- info?: string;
1210
- more?: default_2.ReactNode;
1211
- className?: string;
1212
- size?: 'sx' | 'sm' | 'lg';
1227
+ info: string;
1228
+ help: string;
1229
+ more: React.ReactNode | string;
1230
+ className: string;
1231
+ description: string;
1213
1232
  }
1214
1233
 
1215
1234
  export declare const Toast: ForwardRefExoticComponent<RefAttributes<unknown>>;
@@ -1268,6 +1287,7 @@ export declare const useApi: (props: any) => {
1268
1287
  ready: boolean;
1269
1288
  socketioConnected: boolean;
1270
1289
  connected: boolean;
1290
+ csid: string;
1271
1291
  pool: RefObject<any[]>;
1272
1292
  props: any;
1273
1293
  create(config?: CreateAxiosDefaults): AxiosInstance;