ia-table 0.14.8 → 0.15.1

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/pivot.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { CSSProperties } from 'react';
2
2
  import { default as default_2 } from 'react';
3
3
  import { MutableRefObject } from 'react';
4
+ import { RefObject } from 'react';
4
5
 
5
6
  declare const ACTION_TYPES: {
6
7
  readonly SET_DATA: "SET_DATA";
@@ -90,6 +91,10 @@ declare const ACTION_TYPES: {
90
91
  readonly SET_TOTAL_COLUMNS_COUNT: "SET_TOTAL_COLUMNS_COUNT";
91
92
  readonly SET_ALL_CHILD_ROWS_EXPANDED: "SET_ALL_CHILD_ROWS_EXPANDED";
92
93
  readonly EXPAND_ROW_WITH_NESTED_CHILDREN: "EXPAND_ROW_WITH_NESTED_CHILDREN";
94
+ readonly SET_CUSTOM_CALLBACKS: "SET_CUSTOM_CALLBACKS";
95
+ readonly SET_COMMENT_CONTEXT_REF: "SET_COMMENT_CONTEXT_REF";
96
+ readonly SET_CHAT_ENABLED: "SET_CHAT_ENABLED";
97
+ readonly SET_COMMENT_ENABLED: "SET_COMMENT_ENABLED";
93
98
  };
94
99
 
95
100
  declare class InfiniteBlock {
@@ -878,7 +883,7 @@ declare type SmartGridCellRenderer = {
878
883
  colDef: SmartGridColumnDefinition;
879
884
  node: SmartGridCellRendererNode;
880
885
  api: SmartGridAPI;
881
- eGridCell: HTMLDivElement | null;
886
+ eGridCell: RefObject<HTMLDivElement | null>;
882
887
  wholeData: SmartGridRowData[] | null | undefined;
883
888
  actions: Record<string, unknown>;
884
889
  setDataValue: (colId: string, newValue: unknown) => void;
@@ -929,6 +934,7 @@ declare type SmartGridCellRendererParams = {
929
934
  rightLabel?: string;
930
935
  splits?: SmartGridColumnDefinition[];
931
936
  isEnableResetButton?: boolean;
937
+ placeholder?: string;
932
938
  } & Record<string, unknown>;
933
939
 
934
940
  declare interface SmartGridCellValueChangedParams {
@@ -963,6 +969,10 @@ declare interface SmartGridCheckConfiguration {
963
969
  unCheckAll?: boolean;
964
970
  }
965
971
 
972
+ declare type SmartGridClickCallbackRefCurrent = {
973
+ onCellClick?: ((params: any) => void) | null;
974
+ };
975
+
966
976
  /** Client-side datasource interface */
967
977
  declare interface SmartGridClientSideDatasource {
968
978
  getRows: (params: SmartGridGetRowsRequestParams) => void;
@@ -1004,6 +1014,88 @@ declare interface SmartGridColumnWithGroupId extends SmartGridBaseColumnDefiniti
1004
1014
  groupId: string;
1005
1015
  }
1006
1016
 
1017
+ /**
1018
+ * SmartGridComment - Represents a single comment in a thread
1019
+ */
1020
+ declare interface SmartGridComment {
1021
+ id: string | number;
1022
+ text: string;
1023
+ author: string;
1024
+ timestamp: string;
1025
+ isEdited?: boolean;
1026
+ read?: boolean;
1027
+ isRead?: boolean;
1028
+ }
1029
+
1030
+ /**
1031
+ * SmartGridCommentConfiguration - Configuration options for comment features
1032
+ */
1033
+ declare interface SmartGridCommentConfiguration {
1034
+ disableMarkAsRead?: boolean;
1035
+ disableMarkAsResolved?: boolean;
1036
+ disableDeleteThread?: boolean;
1037
+ disableEditComment?: boolean;
1038
+ disableDeleteComment?: boolean;
1039
+ disableMultiCommentThread?: boolean;
1040
+ messageIdHighlightTimer?: number;
1041
+ }
1042
+
1043
+ /**
1044
+ * SmartGridCommentContextRef - Context reference for comment functionality
1045
+ * Used by smartGridContextRef in CommentWrapper
1046
+ */
1047
+ declare interface SmartGridCommentContextRef {
1048
+ comments: SmartGridCommentThread;
1049
+ popup: SmartGridCommentPopup | null;
1050
+ handleCommentIconHover: (params: SmartGridCellRenderer) => void;
1051
+ handleMouseEnter: () => void;
1052
+ handleMouseLeave: () => void;
1053
+ resolvedComments: string[];
1054
+ getLatestUnresolvedThreadId: (cellId: string) => string | null;
1055
+ configuration?: SmartGridCommentConfiguration;
1056
+ colIdentifierKey?: string;
1057
+ }
1058
+
1059
+ /**
1060
+ * SmartGridCommentPopup - State for comment popup
1061
+ */
1062
+ declare interface SmartGridCommentPopup {
1063
+ position: SmartGridCommentPopupPosition;
1064
+ rowId?: string | number;
1065
+ colId?: string;
1066
+ cellId: string;
1067
+ comment?: SmartGridComment[];
1068
+ author?: string;
1069
+ openedBy: "hover" | "click";
1070
+ data?: SmartGridCommentRowData;
1071
+ messageId?: string | number | null;
1072
+ }
1073
+
1074
+ /**
1075
+ * SmartGridCommentPopupPosition - Position for comment popup
1076
+ */
1077
+ declare interface SmartGridCommentPopupPosition {
1078
+ top: number;
1079
+ left: number;
1080
+ side?: "left" | "right" | "clamped";
1081
+ }
1082
+
1083
+ /**
1084
+ * SmartGridCommentRowData - Row data associated with a comment
1085
+ */
1086
+ declare interface SmartGridCommentRowData {
1087
+ [key: string]: unknown;
1088
+ }
1089
+
1090
+ /**
1091
+ * SmartGridCommentThread - A collection of comments keyed by cell ID
1092
+ */
1093
+ declare type SmartGridCommentThread = Record<string, SmartGridComment[]>;
1094
+
1095
+ declare type SmartGridCustomCallbackRefCurrent = {
1096
+ onCellClick?: ((params: any) => void) | null;
1097
+ };
1098
+
1007
1099
  /** Data source context */
1008
1100
  declare interface SmartGridDataSourceContext {
1009
1101
  infiniteCache?: InfiniteCache;
@@ -2103,6 +2195,9 @@ declare interface SmartGridStateContext {
2103
2195
  deleteViewPromptText?: null | string;
2104
2196
  }>;
2105
2197
  saveViewCallbackRef: MutableRefObject<SmartGridSaveViewCallbackRefCurrent>;
2198
+ clickCallbackRef: MutableRefObject<SmartGridClickCallbackRefCurrent>;
2199
+ customCallback: SmartGridCustomCallbackRefCurrent;
2200
+ contextRef: MutableRefObject<SmartGridCommentContextRef> | null;
2106
2201
  tableId: string;
2107
2202
  isSingleSelect: boolean;
2108
2203
  selectable: boolean;
@@ -2122,6 +2217,8 @@ declare interface SmartGridStateContext {
2122
2217
  pivotPanelColumnDef: null | SmartGridColumnDefinition[];
2123
2218
  removeCheckConfigurationOnOperation: boolean;
2124
2219
  totalColumnsCount: number;
2220
+ isCommentFeatureEnabled: boolean;
2221
+ isChatEnabled: boolean;
2125
2222
  [key: string]: unknown;
2126
2223
  }
2127
2224