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/RadioGroup-Cv9QL-Yd.js +1027 -0
- package/dist/chat.d.ts +3374 -0
- package/dist/chat.js +51510 -0
- package/dist/chat.type-Dy7elZcf.js +5088 -0
- package/dist/index.d.ts +1479 -15
- package/dist/index.js +9893 -14590
- package/dist/pivot.d.ts +98 -1
- package/dist/pivot.js +278 -261
- package/dist/right-arrow-C7mpExx-.js +341 -0
- package/package.json +21 -8
- package/dist/right-arrow-u0DuaXma.js +0 -1339
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { ChangeEvent } from 'react';
|
|
|
2
2
|
import { CSSProperties } from 'react';
|
|
3
3
|
import { default as default_2 } from 'react';
|
|
4
4
|
import { Dispatch } from 'react';
|
|
5
|
+
import { Editor } from '@tiptap/react';
|
|
6
|
+
import { FC } from 'react';
|
|
5
7
|
import { FocusEvent as FocusEvent_2 } from 'react';
|
|
6
8
|
import { ForwardRefExoticComponent } from 'react';
|
|
7
9
|
import { Moment } from 'moment';
|
|
@@ -101,6 +103,10 @@ declare const ACTION_TYPES: {
|
|
|
101
103
|
readonly SET_TOTAL_COLUMNS_COUNT: "SET_TOTAL_COLUMNS_COUNT";
|
|
102
104
|
readonly SET_ALL_CHILD_ROWS_EXPANDED: "SET_ALL_CHILD_ROWS_EXPANDED";
|
|
103
105
|
readonly EXPAND_ROW_WITH_NESTED_CHILDREN: "EXPAND_ROW_WITH_NESTED_CHILDREN";
|
|
106
|
+
readonly SET_CUSTOM_CALLBACKS: "SET_CUSTOM_CALLBACKS";
|
|
107
|
+
readonly SET_COMMENT_CONTEXT_REF: "SET_COMMENT_CONTEXT_REF";
|
|
108
|
+
readonly SET_CHAT_ENABLED: "SET_CHAT_ENABLED";
|
|
109
|
+
readonly SET_COMMENT_ENABLED: "SET_COMMENT_ENABLED";
|
|
104
110
|
};
|
|
105
111
|
|
|
106
112
|
declare interface ChildHeightsResult {
|
|
@@ -452,6 +458,10 @@ declare class InfiniteCache {
|
|
|
452
458
|
updateWholeData(wholeData: SmartGridRowData[], pageSize: number): SmartGridUpdateDataReturnType;
|
|
453
459
|
}
|
|
454
460
|
|
|
461
|
+
export declare function isChatMessage(item: SmartGridGroupedMessageItem): item is SmartGridChatMessage;
|
|
462
|
+
|
|
463
|
+
export declare function isDateSeparator(item: SmartGridGroupedMessageItem): item is SmartGridDateSeparatorItem;
|
|
464
|
+
|
|
455
465
|
declare interface RowGroupParams {
|
|
456
466
|
page: number;
|
|
457
467
|
pageSize: number;
|
|
@@ -502,6 +512,14 @@ export declare interface RowSpanParams {
|
|
|
502
512
|
|
|
503
513
|
export declare type SmartGridActionTypes = typeof ACTION_TYPES;
|
|
504
514
|
|
|
515
|
+
export declare interface SmartGridAddChatContainerProps {
|
|
516
|
+
setShowAddChat: Dispatch<SetStateAction<boolean>>;
|
|
517
|
+
handleChatName: NonNullable<SmartGridLeftPanelConfig["handleChatName"]>;
|
|
518
|
+
selectedChannelInfo?: SmartGridChannel | null;
|
|
519
|
+
handleToast: SmartGridHandleToastFn;
|
|
520
|
+
setIsCreateNewChatOpen: Dispatch<SetStateAction<boolean>>;
|
|
521
|
+
}
|
|
522
|
+
|
|
505
523
|
export declare type SmartGridAggregationType = "sum" | "count" | "avg" | "min" | "max";
|
|
506
524
|
|
|
507
525
|
export declare interface SmartGridAPI extends SmartGridPaginationAPI, SmartGridApiExtra {
|
|
@@ -603,6 +621,20 @@ export declare type SmartGridApiExtra = {
|
|
|
603
621
|
[key: string]: unknown;
|
|
604
622
|
};
|
|
605
623
|
|
|
624
|
+
export declare interface SmartGridAvatarGroupProps {
|
|
625
|
+
avatars?: SmartGridAvatarUser[];
|
|
626
|
+
maxAvatars?: number;
|
|
627
|
+
size?: SmartGridAvatarSize;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
export declare type SmartGridAvatarSize = "sm" | "md" | "lg";
|
|
631
|
+
|
|
632
|
+
export declare interface SmartGridAvatarUser {
|
|
633
|
+
id?: string | number;
|
|
634
|
+
url?: string;
|
|
635
|
+
label?: string;
|
|
636
|
+
}
|
|
637
|
+
|
|
606
638
|
export declare type SmartGridBadgeColor = "default" | "success" | "warning" | "error" | "info";
|
|
607
639
|
|
|
608
640
|
export declare interface SmartGridBadgeProps {
|
|
@@ -856,6 +888,7 @@ export declare interface SmartGridBodyCellDetailProps {
|
|
|
856
888
|
totalRows?: number;
|
|
857
889
|
totalColumns?: number;
|
|
858
890
|
childKeyField: string;
|
|
891
|
+
isCommentFeatureEnabled: boolean;
|
|
859
892
|
}
|
|
860
893
|
|
|
861
894
|
export declare interface SmartGridBodyCellProps {
|
|
@@ -886,8 +919,8 @@ export declare interface SmartGridBodyCellProps {
|
|
|
886
919
|
}
|
|
887
920
|
|
|
888
921
|
export declare interface SmartGridButtonProps {
|
|
889
|
-
onClick
|
|
890
|
-
children
|
|
922
|
+
onClick?: (e: MouseEvent_2<HTMLButtonElement>) => void;
|
|
923
|
+
children?: ReactNode;
|
|
891
924
|
variant?: SmartGridButtonVariant;
|
|
892
925
|
size?: SmartGridButtonSize;
|
|
893
926
|
iconButton?: boolean;
|
|
@@ -897,6 +930,9 @@ export declare interface SmartGridButtonProps {
|
|
|
897
930
|
rightIcon?: ReactNode;
|
|
898
931
|
buttonRef?: MutableRefObject<HTMLButtonElement> | RefObject<HTMLButtonElement>;
|
|
899
932
|
simpleButton?: boolean;
|
|
933
|
+
ariaLabel?: string;
|
|
934
|
+
loading?: boolean;
|
|
935
|
+
title?: string;
|
|
900
936
|
}
|
|
901
937
|
|
|
902
938
|
export declare type SmartGridButtonSize = "small" | "medium" | "large";
|
|
@@ -1079,7 +1115,7 @@ export declare type SmartGridCellRenderer = {
|
|
|
1079
1115
|
colDef: SmartGridColumnDefinition;
|
|
1080
1116
|
node: SmartGridCellRendererNode;
|
|
1081
1117
|
api: SmartGridAPI;
|
|
1082
|
-
eGridCell: HTMLDivElement | null
|
|
1118
|
+
eGridCell: RefObject<HTMLDivElement | null>;
|
|
1083
1119
|
wholeData: SmartGridRowData[] | null | undefined;
|
|
1084
1120
|
actions: Record<string, unknown>;
|
|
1085
1121
|
setDataValue: (colId: string, newValue: unknown) => void;
|
|
@@ -1138,6 +1174,7 @@ export declare type SmartGridCellRendererParams = {
|
|
|
1138
1174
|
rightLabel?: string;
|
|
1139
1175
|
splits?: SmartGridColumnDefinition[];
|
|
1140
1176
|
isEnableResetButton?: boolean;
|
|
1177
|
+
placeholder?: string;
|
|
1141
1178
|
} & Record<string, unknown>;
|
|
1142
1179
|
|
|
1143
1180
|
export declare interface SmartGridCellRendererRendererProps {
|
|
@@ -1175,14 +1212,412 @@ export declare interface SmartGridCellValueChangedParams {
|
|
|
1175
1212
|
value: unknown;
|
|
1176
1213
|
}
|
|
1177
1214
|
|
|
1215
|
+
export declare interface SmartGridChannel {
|
|
1216
|
+
id: string | number;
|
|
1217
|
+
title: string;
|
|
1218
|
+
time: string;
|
|
1219
|
+
unreadCount: number;
|
|
1220
|
+
objectType: string;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
/**
|
|
1224
|
+
* ChatObject - Represents a chat/topic
|
|
1225
|
+
* @see MDX Documentation: Data Structures > ChatObject
|
|
1226
|
+
*/
|
|
1227
|
+
export declare interface SmartGridChat {
|
|
1228
|
+
id: string;
|
|
1229
|
+
title: string;
|
|
1230
|
+
subtitle: string;
|
|
1231
|
+
user: string;
|
|
1232
|
+
text: string;
|
|
1233
|
+
time: string;
|
|
1234
|
+
isChecked: boolean;
|
|
1235
|
+
isPinned: boolean;
|
|
1236
|
+
unreadCount: number;
|
|
1237
|
+
messageCount: number;
|
|
1238
|
+
timestamp: string;
|
|
1239
|
+
createdBy?: string;
|
|
1240
|
+
otherProps: {
|
|
1241
|
+
object_ids: string[];
|
|
1242
|
+
object_type: string;
|
|
1243
|
+
topic_id: string;
|
|
1244
|
+
created_by_user: string;
|
|
1245
|
+
is_pinned: boolean;
|
|
1246
|
+
unread_count: number;
|
|
1247
|
+
message_count: number;
|
|
1248
|
+
created_at: string;
|
|
1249
|
+
};
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
export declare interface SmartGridChatAvatarProps {
|
|
1253
|
+
src?: string;
|
|
1254
|
+
name?: string;
|
|
1255
|
+
size?: SmartGridAvatarSize;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
export declare interface SmartGridChatChannelItemAvatar {
|
|
1259
|
+
label?: string;
|
|
1260
|
+
src?: string;
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
export declare interface SmartGridChatChannelItemProps {
|
|
1264
|
+
id: string | number;
|
|
1265
|
+
title?: string;
|
|
1266
|
+
subtitle?: string;
|
|
1267
|
+
timestamp?: string;
|
|
1268
|
+
unreadCount?: number;
|
|
1269
|
+
avatar?: SmartGridChatChannelItemAvatar;
|
|
1270
|
+
isSelected?: boolean;
|
|
1271
|
+
isMuted?: boolean;
|
|
1272
|
+
onClick?: (id: string | number) => void;
|
|
1273
|
+
showChannelList?: boolean;
|
|
1274
|
+
showCheckbox?: boolean;
|
|
1275
|
+
handleChatSelect?: (id: string | number) => void;
|
|
1276
|
+
selectedChat?: (string | number)[];
|
|
1277
|
+
onPinnedChatClick?: (chatId: string | number, isPinned: boolean) => Promise<boolean>;
|
|
1278
|
+
handleToast?: SmartGridHandleToastFn;
|
|
1279
|
+
isPinned?: boolean;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
export declare interface SmartGridChatChannelListProps {
|
|
1283
|
+
channels: SmartGridChatChannelItemProps[];
|
|
1284
|
+
selectedChannelOrChatId?: string | number;
|
|
1285
|
+
onChannelSelect: (channelId: string | number, channel: SmartGridChatChannelItemProps) => void;
|
|
1286
|
+
showChannelList?: boolean;
|
|
1287
|
+
showCheckbox?: boolean;
|
|
1288
|
+
handleChatSelect?: (id: string | number) => void;
|
|
1289
|
+
selectedChat?: (string | number)[];
|
|
1290
|
+
onPinnedChatClick?: (chatId: string | number, isPinned: boolean) => Promise<boolean>;
|
|
1291
|
+
handleToast?: SmartGridHandleToastFn;
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
export declare interface SmartGridChatConfiguration {
|
|
1295
|
+
title: string;
|
|
1296
|
+
description: string;
|
|
1297
|
+
buttonLabel: string;
|
|
1298
|
+
buttonIcon: string;
|
|
1299
|
+
buttonIconPosition: "left" | "right";
|
|
1300
|
+
tooltipConfig: SmartGridChatTooltipConfig;
|
|
1301
|
+
messageChatConfig: SmartGridMessageChatConfig;
|
|
1302
|
+
headerChatConfig: SmartGridHeaderChatConfig;
|
|
1303
|
+
inputChatConfig: SmartGridInputChatConfig;
|
|
1304
|
+
leftPanel: SmartGridLeftPanelConfig;
|
|
1305
|
+
rightPanel: SmartGridRightPanelConfig;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
export declare interface SmartGridChatDefaultMessageTypeProps {
|
|
1309
|
+
content?: string | React.ReactNode;
|
|
1310
|
+
timestamp?: string;
|
|
1311
|
+
handleClickOnMoreOptions?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
1312
|
+
priority?: SmartGridMessagePriority;
|
|
1313
|
+
edited?: boolean;
|
|
1314
|
+
onThreadClick?: () => void;
|
|
1315
|
+
pinned?: boolean;
|
|
1316
|
+
visibility?: boolean;
|
|
1317
|
+
onPin?: (isPinned: boolean) => Promise<SmartGridChatMessage | boolean | undefined>;
|
|
1318
|
+
isUser?: boolean;
|
|
1319
|
+
isThreadIconVisible?: boolean;
|
|
1320
|
+
isPinChatIconvisible?: boolean;
|
|
1321
|
+
isHighlighted?: boolean;
|
|
1322
|
+
highlightColor?: string | null;
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
export declare interface SmartGridChatDeletedMessageTypeProps {
|
|
1326
|
+
timestamp?: string;
|
|
1327
|
+
isUser?: boolean;
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
export declare interface SmartGridChatEditedMessageTypeProps {
|
|
1331
|
+
content?: string | React.ReactNode;
|
|
1332
|
+
timestamp?: string;
|
|
1333
|
+
handleClickOnMoreOptions?: (e: React.MouseEvent<SVGSVGElement>) => void;
|
|
1334
|
+
priority?: SmartGridMessagePriority;
|
|
1335
|
+
edited?: boolean;
|
|
1336
|
+
onThreadClick?: () => void;
|
|
1337
|
+
pinned?: boolean;
|
|
1338
|
+
onPin?: (isPinned: boolean) => Promise<boolean | undefined>;
|
|
1339
|
+
isUser?: boolean;
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
export declare interface SmartGridChatFormData {
|
|
1343
|
+
chatName?: string;
|
|
1344
|
+
chatDescription?: string;
|
|
1345
|
+
[key: string]: unknown;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
export declare interface SmartGridChatHeaderActionExternalHandlers {
|
|
1349
|
+
onSearchChange?: (value: string) => void;
|
|
1350
|
+
onSelectAll?: (allValues: (string | number)[]) => void;
|
|
1351
|
+
onClearSelection?: () => void;
|
|
1352
|
+
onSelectionChange?: (newSelection: (string | number)[]) => void;
|
|
1353
|
+
onParticipantsClick?: () => Promise<void>;
|
|
1354
|
+
loadMenuOptions?: () => Promise<SmartGridParticipant[]>;
|
|
1355
|
+
menuOptions?: SmartGridParticipant[];
|
|
1356
|
+
onClose?: () => void;
|
|
1357
|
+
onParticipantAdd?: (participantIds: (string | number)[], selectedRadioOption: string, chatId: string | number) => Promise<{
|
|
1358
|
+
success: boolean;
|
|
1359
|
+
participant: SmartGridParticipant;
|
|
1360
|
+
} | null>;
|
|
1361
|
+
onNotificationSettingChange?: (data: SmartGridNotificationSettings) => Promise<void | {
|
|
1362
|
+
success: boolean;
|
|
1363
|
+
settings: SmartGridNotificationSettings;
|
|
1364
|
+
}>;
|
|
1365
|
+
onSearchMessage?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
1366
|
+
participantsList?: SmartGridParticipant[];
|
|
1367
|
+
loadParticipantsAvatar?: (radioOption: string, chatId: string | number) => Promise<SmartGridParticipant[]>;
|
|
1368
|
+
handleRadioButtonChange?: (value: string) => Promise<void>;
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
export declare interface SmartGridChatHeaderActionProps {
|
|
1372
|
+
enableSearch?: boolean;
|
|
1373
|
+
messageSearchValue?: string;
|
|
1374
|
+
handleOpenMessageSearch?: () => void;
|
|
1375
|
+
handleCloseMessageSearch?: () => void;
|
|
1376
|
+
handleMessageSearchChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
1377
|
+
onParticipantsClick?: (e: React.MouseEvent<HTMLButtonElement>) => Promise<void>;
|
|
1378
|
+
participants?: SmartGridParticipant[];
|
|
1379
|
+
onPinnedClick?: () => void;
|
|
1380
|
+
threeDotMenuOptions?: SmartGridThreeDotMenuOption[];
|
|
1381
|
+
showNotificationSettings?: boolean;
|
|
1382
|
+
handleNotificationSettingsClose?: () => void;
|
|
1383
|
+
onThreeDotMenuClick?: () => void;
|
|
1384
|
+
externalHandlers?: SmartGridChatHeaderActionExternalHandlers;
|
|
1385
|
+
isLoadingOptions?: boolean;
|
|
1386
|
+
isSearching?: boolean;
|
|
1387
|
+
filteredMenuOptions?: SmartGridParticipant[];
|
|
1388
|
+
menuSearchQuery?: string;
|
|
1389
|
+
setMenuSearchQuery?: (query: string) => void;
|
|
1390
|
+
renderCustomHeader?: (headerProps: Record<string, unknown>) => React.ReactNode;
|
|
1391
|
+
threeDotMenuOpen?: boolean;
|
|
1392
|
+
onSaveNotification?: (data: SmartGridNotificationSettings) => void;
|
|
1393
|
+
selectedMenuItems?: (string | number)[];
|
|
1394
|
+
setSelectedMenuItems?: React.Dispatch<React.SetStateAction<(string | number)[]>>;
|
|
1395
|
+
handleThreeDotMenuClose?: () => void;
|
|
1396
|
+
notificationSettings?: SmartGridNotificationSettings;
|
|
1397
|
+
maxAvatars?: number;
|
|
1398
|
+
selectedRadioOption?: string;
|
|
1399
|
+
chatId?: string | number;
|
|
1400
|
+
menuOptions?: SmartGridParticipant[];
|
|
1401
|
+
externalSavingMembers?: boolean;
|
|
1402
|
+
showSearch?: boolean;
|
|
1403
|
+
showPinned?: boolean;
|
|
1404
|
+
showParticipants?: boolean;
|
|
1405
|
+
showThreeDotMenu?: boolean;
|
|
1406
|
+
className?: string;
|
|
1407
|
+
searchPlaceholder?: string;
|
|
1408
|
+
isAddParticipantsAllowed?: boolean;
|
|
1409
|
+
isLoadingParticipants?: boolean;
|
|
1410
|
+
loadingError?: string | null;
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
export declare interface SmartGridChatHeaderInfoProps {
|
|
1414
|
+
title?: string;
|
|
1415
|
+
createdBy?: string;
|
|
1416
|
+
createdAt?: string;
|
|
1417
|
+
chatId?: string | number;
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
export declare interface SmartGridChatHeaderNavigationProps {
|
|
1421
|
+
title?: string;
|
|
1422
|
+
onBack?: () => void;
|
|
1423
|
+
onSearchClick?: () => void;
|
|
1424
|
+
onMenuClick?: () => void;
|
|
1425
|
+
onMoreClick?: () => void;
|
|
1426
|
+
showChannelList?: boolean;
|
|
1427
|
+
isSearchOpen?: boolean;
|
|
1428
|
+
showAddChatBtn?: boolean;
|
|
1429
|
+
showSearchChat?: boolean;
|
|
1430
|
+
setShowPinnedMsg?: (value: boolean) => void;
|
|
1431
|
+
onThreadClick?: (messageId?: string | number, payload?: SmartGridChatMessage) => void;
|
|
1432
|
+
headerConfig?: SmartGridLeftHeaderPanel;
|
|
1433
|
+
handleChatName?: SmartGridLeftPanelConfig["handleChatName"];
|
|
1434
|
+
filterChannelsByTitle?: (value: string) => void;
|
|
1435
|
+
selectedChat?: (string | number)[];
|
|
1436
|
+
selectedChannelInfo?: SmartGridChannel | null;
|
|
1437
|
+
handleToast?: (isOpen: boolean, message?: string, variant?: SmartGridToastVariant) => void;
|
|
1438
|
+
onDeleteTopics?: () => void;
|
|
1439
|
+
isCreateNewChatOpen?: boolean;
|
|
1440
|
+
setIsCreateNewChatOpen?: Dispatch<SetStateAction<boolean>>;
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
export declare interface SmartGridChatHeaderProps {
|
|
1444
|
+
title: string;
|
|
1445
|
+
chatId: string | number;
|
|
1446
|
+
participants?: SmartGridParticipant[];
|
|
1447
|
+
className?: string;
|
|
1448
|
+
participantsList?: SmartGridParticipant[];
|
|
1449
|
+
onSaveNotification?: (data: SmartGridNotificationSettings) => void;
|
|
1450
|
+
createdBy?: string;
|
|
1451
|
+
createdAt?: string;
|
|
1452
|
+
chatHeaderConfig: Partial<SmartGridHeaderChatConfig> & {
|
|
1453
|
+
onSearchMessage?: (searchValue: string, chatId: string | number) => Promise<SmartGridChatMessage[] | void>;
|
|
1454
|
+
onSearchClear?: () => void;
|
|
1455
|
+
externalSavingMembers?: boolean;
|
|
1456
|
+
};
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
export declare interface SmartGridChatInputProps {
|
|
1460
|
+
placeholder: string;
|
|
1461
|
+
value: string;
|
|
1462
|
+
onChange: (value: string) => void;
|
|
1463
|
+
onSend: (payload: SmartGridChatInputSendPayload) => Promise<void>;
|
|
1464
|
+
onAttach?: (file: File) => void;
|
|
1465
|
+
onImageUpload?: (image: File) => void;
|
|
1466
|
+
onEmojiClick?: (emoji: string) => void;
|
|
1467
|
+
showFormatting?: boolean;
|
|
1468
|
+
showQuickAction?: boolean;
|
|
1469
|
+
quickActionLabel?: string;
|
|
1470
|
+
disabled?: boolean;
|
|
1471
|
+
maxLength?: number;
|
|
1472
|
+
className?: string;
|
|
1473
|
+
messageConfig: SmartGridMessageChatConfig & {
|
|
1474
|
+
loadParticipantsAvatar?: (selectedRadioOption: string, chatId: string | number) => Promise<SmartGridParticipant[]>;
|
|
1475
|
+
messageConfig?: SmartGridMessageConfig;
|
|
1476
|
+
};
|
|
1477
|
+
isEditMode?: boolean;
|
|
1478
|
+
editingMessage?: SmartGridChatMessage | null;
|
|
1479
|
+
onCancelEdit?: () => void;
|
|
1480
|
+
chatId: string | number;
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
export declare interface SmartGridChatInputSendPayload {
|
|
1484
|
+
content: string;
|
|
1485
|
+
selectedPriority?: string;
|
|
1486
|
+
taggedUsers?: (string | number)[];
|
|
1487
|
+
[key: string]: unknown;
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
/**
|
|
1491
|
+
* MessageObject - Represents a chat message
|
|
1492
|
+
* @see MDX Documentation: Data Structures > MessageObject
|
|
1493
|
+
*/
|
|
1494
|
+
export declare interface SmartGridChatMessage {
|
|
1495
|
+
id: string | number;
|
|
1496
|
+
author?: "user" | "assistant" | "system" | string;
|
|
1497
|
+
authorName?: string;
|
|
1498
|
+
authorAvatar?: string;
|
|
1499
|
+
content?: string;
|
|
1500
|
+
timestamp?: string;
|
|
1501
|
+
date?: string;
|
|
1502
|
+
priority?: "low" | "medium" | "high" | "default" | "normal" | string;
|
|
1503
|
+
isPinned?: boolean;
|
|
1504
|
+
deleted?: boolean;
|
|
1505
|
+
edited?: boolean;
|
|
1506
|
+
showActions?: boolean;
|
|
1507
|
+
showReplyBadge?: boolean;
|
|
1508
|
+
replyText?: string | null;
|
|
1509
|
+
text?: string;
|
|
1510
|
+
time?: string;
|
|
1511
|
+
user?: string;
|
|
1512
|
+
userInitials?: string;
|
|
1513
|
+
quote?: string;
|
|
1514
|
+
type?: "default" | "deleted" | "edited" | string;
|
|
1515
|
+
senderId?: string | number;
|
|
1516
|
+
created_at?: string;
|
|
1517
|
+
isRealTime?: boolean;
|
|
1518
|
+
otherProps?: {
|
|
1519
|
+
sender_id?: number | string;
|
|
1520
|
+
created_at?: string;
|
|
1521
|
+
updated_at?: string;
|
|
1522
|
+
isRealTime?: boolean;
|
|
1523
|
+
topic_id?: string;
|
|
1524
|
+
sender_name?: string;
|
|
1525
|
+
object_ids?: (string | number)[];
|
|
1526
|
+
object_type?: string;
|
|
1527
|
+
deleted?: boolean;
|
|
1528
|
+
[key: string]: unknown;
|
|
1529
|
+
};
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
export declare interface SmartGridChatMessageActionsProps {
|
|
1533
|
+
messageId?: string | number;
|
|
1534
|
+
onReply?: (messageId: string | number) => void;
|
|
1535
|
+
onReact?: (messageId: string | number) => void;
|
|
1536
|
+
onBookmark?: (messageId: string | number) => void;
|
|
1537
|
+
onPin?: (messageId: string | number) => void;
|
|
1538
|
+
onMore?: (messageId: string | number) => void;
|
|
1539
|
+
actions?: SmartGridMessageActionKey[];
|
|
1540
|
+
className?: string;
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
export declare interface SmartGridChatMessageAvatarProps {
|
|
1544
|
+
authorName?: string;
|
|
1545
|
+
authorAvatar?: string;
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
export declare interface SmartGridChatMessageProps {
|
|
1549
|
+
messageId?: string | number;
|
|
1550
|
+
author?: string;
|
|
1551
|
+
authorName?: string;
|
|
1552
|
+
authorAvatar?: string;
|
|
1553
|
+
content?: string | React.ReactNode;
|
|
1554
|
+
timestamp?: string;
|
|
1555
|
+
isUser?: boolean;
|
|
1556
|
+
showActions?: boolean;
|
|
1557
|
+
showAvatar?: boolean;
|
|
1558
|
+
isDeleted?: boolean;
|
|
1559
|
+
edited?: boolean;
|
|
1560
|
+
deleted?: boolean;
|
|
1561
|
+
onReply?: () => void;
|
|
1562
|
+
onReact?: () => void;
|
|
1563
|
+
onBookmark?: () => void;
|
|
1564
|
+
onPin?: (isPinned: boolean) => Promise<SmartGridChatMessage | boolean | undefined>;
|
|
1565
|
+
pinned?: boolean;
|
|
1566
|
+
onMore?: () => void;
|
|
1567
|
+
onEdit?: () => void;
|
|
1568
|
+
onMessageDelete?: (messageId: string | number) => Promise<SmartGridChatMessage | {
|
|
1569
|
+
success: boolean;
|
|
1570
|
+
messageId: string | number;
|
|
1571
|
+
} | undefined>;
|
|
1572
|
+
onRefetchMessages?: () => Promise<SmartGridChatMessage[]>;
|
|
1573
|
+
type?: SmartGridChatMessageType;
|
|
1574
|
+
priority?: SmartGridMessagePriority;
|
|
1575
|
+
actions?: SmartGridMessageActionKey[];
|
|
1576
|
+
className?: string;
|
|
1577
|
+
onThreadClick?: () => void;
|
|
1578
|
+
isThreadIconVisible?: boolean;
|
|
1579
|
+
isPinChatIconvisible?: boolean;
|
|
1580
|
+
isHighlighted?: boolean;
|
|
1581
|
+
highlightColor?: string | null;
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
export declare type SmartGridChatMessageType = "default" | "deleted" | "editable";
|
|
1585
|
+
|
|
1586
|
+
export declare interface SmartGridChatNotificationSettingsProps {
|
|
1587
|
+
isOpen?: boolean;
|
|
1588
|
+
onClose?: () => void;
|
|
1589
|
+
isLoading?: boolean;
|
|
1590
|
+
position?: {
|
|
1591
|
+
top: number;
|
|
1592
|
+
right: number;
|
|
1593
|
+
};
|
|
1594
|
+
onSaveNotification?: (data: SmartGridNotificationSettings) => void;
|
|
1595
|
+
notificationSettings?: SmartGridNotificationSettings;
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
export declare interface SmartGridChatRadioOption {
|
|
1599
|
+
label: string;
|
|
1600
|
+
value: string;
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
export declare interface SmartGridChatTooltipConfig {
|
|
1604
|
+
title: string;
|
|
1605
|
+
description: string;
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1178
1608
|
export declare interface SmartGridCheckboxProps {
|
|
1179
1609
|
checked?: boolean;
|
|
1180
|
-
onChange: (
|
|
1181
|
-
label?: string;
|
|
1610
|
+
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
1611
|
+
label?: string | ReactNode;
|
|
1182
1612
|
disabled?: boolean;
|
|
1183
1613
|
className?: string;
|
|
1614
|
+
defaultChecked?: boolean;
|
|
1615
|
+
variant?: SmartGridCheckboxVariant;
|
|
1616
|
+
indeterminate?: boolean;
|
|
1184
1617
|
}
|
|
1185
1618
|
|
|
1619
|
+
export declare type SmartGridCheckboxVariant = "default" | "primary" | "secondary";
|
|
1620
|
+
|
|
1186
1621
|
export declare type SmartGridCheckConfigraitonSearchField = {
|
|
1187
1622
|
type: string;
|
|
1188
1623
|
filterType: string;
|
|
@@ -1200,6 +1635,10 @@ export declare interface SmartGridCheckConfiguration {
|
|
|
1200
1635
|
unCheckAll?: boolean;
|
|
1201
1636
|
}
|
|
1202
1637
|
|
|
1638
|
+
export declare type SmartGridClickCallbackRefCurrent = {
|
|
1639
|
+
onCellClick?: ((params: any) => void) | null;
|
|
1640
|
+
};
|
|
1641
|
+
|
|
1203
1642
|
/** Client-side datasource interface */
|
|
1204
1643
|
declare interface SmartGridClientSideDatasource {
|
|
1205
1644
|
getRows: (params: SmartGridGetRowsRequestParams) => void;
|
|
@@ -1266,6 +1705,209 @@ export declare interface SmartGridColumnWithGroupId extends SmartGridBaseColumnD
|
|
|
1266
1705
|
groupId: string;
|
|
1267
1706
|
}
|
|
1268
1707
|
|
|
1708
|
+
/**
|
|
1709
|
+
* SmartGridComment - Represents a single comment in a thread
|
|
1710
|
+
*/
|
|
1711
|
+
export declare interface SmartGridComment {
|
|
1712
|
+
id: string | number;
|
|
1713
|
+
text: string;
|
|
1714
|
+
author: string;
|
|
1715
|
+
timestamp: string;
|
|
1716
|
+
isEdited?: boolean;
|
|
1717
|
+
read?: boolean;
|
|
1718
|
+
isRead?: boolean;
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
/**
|
|
1722
|
+
* SmartGridCommentConfiguration - Configuration options for comment features
|
|
1723
|
+
*/
|
|
1724
|
+
export declare interface SmartGridCommentConfiguration {
|
|
1725
|
+
disableMarkAsRead?: boolean;
|
|
1726
|
+
disableMarkAsResolved?: boolean;
|
|
1727
|
+
disableDeleteThread?: boolean;
|
|
1728
|
+
disableEditComment?: boolean;
|
|
1729
|
+
disableDeleteComment?: boolean;
|
|
1730
|
+
disableMultiCommentThread?: boolean;
|
|
1731
|
+
messageIdHighlightTimer?: number;
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
/**
|
|
1735
|
+
* SmartGridCommentContextRef - Context reference for comment functionality
|
|
1736
|
+
* Used by smartGridContextRef in CommentWrapper
|
|
1737
|
+
*/
|
|
1738
|
+
export declare interface SmartGridCommentContextRef {
|
|
1739
|
+
comments: SmartGridCommentThread;
|
|
1740
|
+
popup: SmartGridCommentPopup | null;
|
|
1741
|
+
handleCommentIconHover: (params: SmartGridCellRenderer) => void;
|
|
1742
|
+
handleMouseEnter: () => void;
|
|
1743
|
+
handleMouseLeave: () => void;
|
|
1744
|
+
resolvedComments: string[];
|
|
1745
|
+
getLatestUnresolvedThreadId: (cellId: string) => string | null;
|
|
1746
|
+
configuration?: SmartGridCommentConfiguration;
|
|
1747
|
+
colIdentifierKey?: string;
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
/**
|
|
1751
|
+
* SmartGridCommentDeleteState - State for comment deletion
|
|
1752
|
+
*/
|
|
1753
|
+
export declare interface SmartGridCommentDeleteState {
|
|
1754
|
+
cellId?: string;
|
|
1755
|
+
data?: SmartGridCommentRowData;
|
|
1756
|
+
comment?: SmartGridComment;
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
/**
|
|
1760
|
+
* SmartGridCommentMenuOption - Menu option for comment actions
|
|
1761
|
+
*/
|
|
1762
|
+
export declare interface SmartGridCommentMenuOption {
|
|
1763
|
+
label: string;
|
|
1764
|
+
id: string;
|
|
1765
|
+
icon?: React.ReactNode;
|
|
1766
|
+
onClick: () => void;
|
|
1767
|
+
value: string;
|
|
1768
|
+
}
|
|
1769
|
+
|
|
1770
|
+
/**
|
|
1771
|
+
* SmartGridCommentPanelProps - Props for CommentPanel component
|
|
1772
|
+
*/
|
|
1773
|
+
export declare interface SmartGridCommentPanelProps {
|
|
1774
|
+
showCommentPanel: boolean;
|
|
1775
|
+
setShowCommentPanel: () => void;
|
|
1776
|
+
comments: SmartGridCommentThread;
|
|
1777
|
+
onCommentItemClick: (cellId: string, comments: SmartGridComment[], messageId?: string | number | null) => void;
|
|
1778
|
+
onMenuClick: (event: React.MouseEvent<HTMLButtonElement>, comment?: string | SmartGridComment | null, type?: "commentMenu" | "topMenu") => void;
|
|
1779
|
+
onMarkAsReadClick?: (cellId: string | number) => Promise<void>;
|
|
1780
|
+
onMarkAsResolvedClick: (cellId: string, comments: SmartGridComment[]) => Promise<void>;
|
|
1781
|
+
commentProps: SmartGridCommentProps;
|
|
1782
|
+
resolvedComments: string[];
|
|
1783
|
+
popup: SmartGridCommentPopup | null;
|
|
1784
|
+
onShowResolvedCommentsRequest?: () => Promise<void>;
|
|
1785
|
+
height: string | number;
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
/**
|
|
1789
|
+
* SmartGridCommentPopup - State for comment popup
|
|
1790
|
+
*/
|
|
1791
|
+
export declare interface SmartGridCommentPopup {
|
|
1792
|
+
position: SmartGridCommentPopupPosition;
|
|
1793
|
+
rowId?: string | number;
|
|
1794
|
+
colId?: string;
|
|
1795
|
+
cellId: string;
|
|
1796
|
+
comment?: SmartGridComment[];
|
|
1797
|
+
author?: string;
|
|
1798
|
+
openedBy: "hover" | "click";
|
|
1799
|
+
data?: SmartGridCommentRowData;
|
|
1800
|
+
messageId?: string | number | null;
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
/**
|
|
1804
|
+
* SmartGridCommentPopupPosition - Position for comment popup
|
|
1805
|
+
*/
|
|
1806
|
+
export declare interface SmartGridCommentPopupPosition {
|
|
1807
|
+
top: number;
|
|
1808
|
+
left: number;
|
|
1809
|
+
side?: "left" | "right" | "clamped";
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
/**
|
|
1813
|
+
* SmartGridCommentProps - Props passed to comment components
|
|
1814
|
+
*/
|
|
1815
|
+
export declare interface SmartGridCommentProps {
|
|
1816
|
+
comments?: SmartGridCommentThread;
|
|
1817
|
+
resolvedComments?: string[];
|
|
1818
|
+
author?: string;
|
|
1819
|
+
colIdentifierKey?: string;
|
|
1820
|
+
configuration?: SmartGridCommentConfiguration;
|
|
1821
|
+
commentSearchOptions?: Array<{
|
|
1822
|
+
label: string;
|
|
1823
|
+
value: string;
|
|
1824
|
+
}>;
|
|
1825
|
+
selectedCommentSearchOption?: string;
|
|
1826
|
+
handleSaveComment?: (cellId: string, text: string, data: SmartGridCommentRowData, taggedUsers?: SmartGridCommentTaggedUser[]) => Promise<SmartGridCommentThread | void>;
|
|
1827
|
+
handleCommentEdit?: (text: string, comment: SmartGridComment, commentId: string | number, taggedUsers?: SmartGridCommentTaggedUser[]) => Promise<SmartGridCommentThread | void>;
|
|
1828
|
+
handleCommentDelete?: (commentId: string | number, comment: SmartGridComment) => Promise<SmartGridCommentThread | void>;
|
|
1829
|
+
handleThreadDelete?: (cellId: string, data: SmartGridComment[]) => Promise<SmartGridCommentThread | void>;
|
|
1830
|
+
handleMarkAsRead?: (cellId: string | number) => Promise<void>;
|
|
1831
|
+
handleMarkAsUnread?: (cellId: string | number) => Promise<void>;
|
|
1832
|
+
handleMarkAsResolved?: (cellId: string, comments: SmartGridComment[]) => Promise<string[] | void>;
|
|
1833
|
+
handleFetchResolvedComments?: () => Promise<{
|
|
1834
|
+
comments?: SmartGridCommentThread;
|
|
1835
|
+
resolvedComments?: string[];
|
|
1836
|
+
} | void>;
|
|
1837
|
+
loadParticipantsAvatar?: (selectedRadioOption: string, chatId: string | number) => Promise<SmartGridParticipant[]>;
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1840
|
+
/**
|
|
1841
|
+
* SmartGridCommentRowData - Row data associated with a comment
|
|
1842
|
+
*/
|
|
1843
|
+
export declare interface SmartGridCommentRowData {
|
|
1844
|
+
[key: string]: unknown;
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
/**
|
|
1848
|
+
* SmartGridCommentSearchOption - Search/filter option for comments
|
|
1849
|
+
*/
|
|
1850
|
+
export declare interface SmartGridCommentSearchOption {
|
|
1851
|
+
label: string;
|
|
1852
|
+
value: string;
|
|
1853
|
+
id: string;
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
/**
|
|
1857
|
+
* SmartGridCommentsPortalProps - Props for CommentsPortal component
|
|
1858
|
+
*/
|
|
1859
|
+
export declare interface SmartGridCommentsPortalProps {
|
|
1860
|
+
isOpen: boolean;
|
|
1861
|
+
onClose: () => void;
|
|
1862
|
+
comments?: SmartGridComment[];
|
|
1863
|
+
onAddComment: (cellId: string | number, inputValue: string, taggedUsers?: SmartGridCommentTaggedUser[]) => Promise<void>;
|
|
1864
|
+
cellId?: string | number;
|
|
1865
|
+
position?: SmartGridCommentPopupPosition;
|
|
1866
|
+
author?: string;
|
|
1867
|
+
onMouseEnter?: () => void;
|
|
1868
|
+
onMouseLeave?: () => void;
|
|
1869
|
+
openedBy?: "hover" | "click";
|
|
1870
|
+
onMenuClick: (event: React.MouseEvent<HTMLButtonElement>, comment?: string | number | SmartGridComment | null, type?: "commentMenu" | "topMenu") => void;
|
|
1871
|
+
onMarkAsReadClick?: ((cellId: string | number) => Promise<void>) | null;
|
|
1872
|
+
onMarkAsResolvedClick?: ((cellId: string | number, comments: SmartGridComment[]) => Promise<void>) | null;
|
|
1873
|
+
editCommentText?: string;
|
|
1874
|
+
isLoading?: boolean;
|
|
1875
|
+
error?: string | null;
|
|
1876
|
+
onClearError?: () => void;
|
|
1877
|
+
currentAuthor?: string;
|
|
1878
|
+
editingComment?: SmartGridComment | null;
|
|
1879
|
+
setEditingComment?: React.Dispatch<React.SetStateAction<SmartGridComment | null>>;
|
|
1880
|
+
onUpdateComment?: (commentId: string | number | null, newText: string) => Promise<void>;
|
|
1881
|
+
loadParticipantsAvatar?: (selectedRadioOption: string, chatId: string | number) => Promise<SmartGridParticipant[]>;
|
|
1882
|
+
resolvedComments?: string[];
|
|
1883
|
+
messageId?: string | number | null;
|
|
1884
|
+
configuration?: SmartGridCommentConfiguration;
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
/**
|
|
1888
|
+
* SmartGridCommentTaggedUser - User tagged in a comment
|
|
1889
|
+
*/
|
|
1890
|
+
export declare interface SmartGridCommentTaggedUser {
|
|
1891
|
+
id: string | number;
|
|
1892
|
+
name: string;
|
|
1893
|
+
avatar?: string;
|
|
1894
|
+
status?: string;
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1897
|
+
/**
|
|
1898
|
+
* SmartGridCommentThread - A collection of comments keyed by cell ID
|
|
1899
|
+
*/
|
|
1900
|
+
export declare type SmartGridCommentThread = Record<string, SmartGridComment[]>;
|
|
1901
|
+
|
|
1902
|
+
/**
|
|
1903
|
+
* SmartGridCommentWrapperProps - Props for CommentWrapper component
|
|
1904
|
+
*/
|
|
1905
|
+
export declare interface SmartGridCommentWrapperProps {
|
|
1906
|
+
commentProps: SmartGridCommentProps;
|
|
1907
|
+
commentPannelRef: React.MutableRefObject<((show: boolean) => void) | null>;
|
|
1908
|
+
height: string | number;
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1269
1911
|
export declare interface SmartGridContainerRect {
|
|
1270
1912
|
top: number;
|
|
1271
1913
|
left: number;
|
|
@@ -1280,6 +1922,18 @@ export declare interface SmartGridCopyCellValueParams {
|
|
|
1280
1922
|
tableApi: SmartGridAPI | null;
|
|
1281
1923
|
}
|
|
1282
1924
|
|
|
1925
|
+
export declare interface SmartGridCreateChatResponse {
|
|
1926
|
+
success: boolean;
|
|
1927
|
+
chatName?: string;
|
|
1928
|
+
description?: string;
|
|
1929
|
+
selectedChannel?: SmartGridChannel;
|
|
1930
|
+
formattedChat?: SmartGridChat;
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1933
|
+
export declare type SmartGridCustomCallbackRefCurrent = {
|
|
1934
|
+
onCellClick?: ((params: any) => void) | null;
|
|
1935
|
+
};
|
|
1936
|
+
|
|
1283
1937
|
/** Data source context */
|
|
1284
1938
|
export declare interface SmartGridDataSourceContext {
|
|
1285
1939
|
infiniteCache?: InfiniteCache;
|
|
@@ -1462,6 +2116,21 @@ export declare interface SmartGridDateRangeValue {
|
|
|
1462
2116
|
endDate: string;
|
|
1463
2117
|
}
|
|
1464
2118
|
|
|
2119
|
+
export declare type SmartGridDateSeparatorFormat = "relative" | "absolute" | "short" | "long";
|
|
2120
|
+
|
|
2121
|
+
export declare interface SmartGridDateSeparatorItem {
|
|
2122
|
+
type: "date-separator";
|
|
2123
|
+
id: string;
|
|
2124
|
+
date: Date;
|
|
2125
|
+
pinned?: boolean;
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2128
|
+
export declare interface SmartGridDateSeparatorProps {
|
|
2129
|
+
date?: Date | string;
|
|
2130
|
+
className?: string;
|
|
2131
|
+
format?: SmartGridDateSeparatorFormat;
|
|
2132
|
+
}
|
|
2133
|
+
|
|
1465
2134
|
export declare type SmartGridDefaultColDef = {
|
|
1466
2135
|
minWidth: number;
|
|
1467
2136
|
headerComponentParams?: {
|
|
@@ -1562,6 +2231,86 @@ export declare interface SmartGridDragSourceData {
|
|
|
1562
2231
|
path: string[];
|
|
1563
2232
|
}
|
|
1564
2233
|
|
|
2234
|
+
export declare type SmartGridDrawerAnchor = "left" | "right" | "top" | "bottom";
|
|
2235
|
+
|
|
2236
|
+
export declare interface SmartGridDrawerProps {
|
|
2237
|
+
open: boolean;
|
|
2238
|
+
onClose: () => void;
|
|
2239
|
+
anchor?: SmartGridDrawerAnchor;
|
|
2240
|
+
children?: ReactNode;
|
|
2241
|
+
title?: string;
|
|
2242
|
+
size?: SmartGridDrawerSize;
|
|
2243
|
+
width?: number | string;
|
|
2244
|
+
height?: number | string;
|
|
2245
|
+
className?: string;
|
|
2246
|
+
zIndex?: number;
|
|
2247
|
+
showCloseButton?: boolean;
|
|
2248
|
+
closeOnBackdropClick?: boolean;
|
|
2249
|
+
closeOnEscape?: boolean;
|
|
2250
|
+
primaryButtonLabel?: string;
|
|
2251
|
+
onPrimaryButtonClick?: () => void;
|
|
2252
|
+
primaryButtonProps?: Record<string, unknown>;
|
|
2253
|
+
secondaryButtonLabel?: string;
|
|
2254
|
+
onSecondaryButtonClick?: () => void;
|
|
2255
|
+
secondaryButtonProps?: Record<string, unknown>;
|
|
2256
|
+
hideBackdrop?: boolean;
|
|
2257
|
+
disablePortal?: boolean;
|
|
2258
|
+
keepMounted?: boolean;
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
export declare type SmartGridDrawerSize = "small" | "medium" | "large";
|
|
2262
|
+
|
|
2263
|
+
export declare interface SmartGridEditorCommands {
|
|
2264
|
+
toggleBold?: () => void;
|
|
2265
|
+
toggleItalic?: () => void;
|
|
2266
|
+
toggleLink?: () => void;
|
|
2267
|
+
toggleBulletList?: () => void;
|
|
2268
|
+
toggleOrderedList?: () => void;
|
|
2269
|
+
toggleStrike?: () => void;
|
|
2270
|
+
toggleHighlight?: () => void;
|
|
2271
|
+
toggleH1?: () => void;
|
|
2272
|
+
toggleH2?: () => void;
|
|
2273
|
+
toggleH3?: () => void;
|
|
2274
|
+
toggleH4?: () => void;
|
|
2275
|
+
toggleH5?: () => void;
|
|
2276
|
+
toggleH6?: () => void;
|
|
2277
|
+
insertEmoji?: (emoji: string) => void;
|
|
2278
|
+
clearContent?: () => void;
|
|
2279
|
+
editor?: SmartGridTipTapEditor;
|
|
2280
|
+
[key: string]: (() => void) | ((emoji: string) => void) | SmartGridTipTapEditor | undefined;
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2283
|
+
export declare interface SmartGridEditorToolbarProps {
|
|
2284
|
+
editor: SmartGridEditorCommands | null;
|
|
2285
|
+
activeStates?: Record<SmartGridToolbarItemKey, boolean>;
|
|
2286
|
+
enabledItems?: SmartGridToolbarItemKey[];
|
|
2287
|
+
onFileSelect?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
2288
|
+
onImageSelect?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
2289
|
+
onEmojiSelect?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
2290
|
+
className?: string;
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2293
|
+
export declare interface SmartGridEditorToolbarRef {
|
|
2294
|
+
fileInput?: HTMLInputElement | null;
|
|
2295
|
+
imageInput?: HTMLInputElement | null;
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2298
|
+
export declare interface SmartGridEmojiObject {
|
|
2299
|
+
emoji: string;
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
export declare interface SmartGridEmojiPickerProps {
|
|
2303
|
+
open?: boolean;
|
|
2304
|
+
onClose?: () => void;
|
|
2305
|
+
onEmojiClick?: (emoji: string) => void;
|
|
2306
|
+
anchorEl?: HTMLElement | null;
|
|
2307
|
+
}
|
|
2308
|
+
|
|
2309
|
+
export declare interface SmartGridEmptyContainerProps {
|
|
2310
|
+
title?: string;
|
|
2311
|
+
subTitle?: string;
|
|
2312
|
+
}
|
|
2313
|
+
|
|
1565
2314
|
export declare interface SmartGridEvent {
|
|
1566
2315
|
type: string;
|
|
1567
2316
|
api?: SmartGridAPI;
|
|
@@ -1638,6 +2387,8 @@ declare interface SmartGridFetchFunctionRef {
|
|
|
1638
2387
|
current?: SmartGridFetDataParams | null;
|
|
1639
2388
|
}
|
|
1640
2389
|
|
|
2390
|
+
export declare type SmartGridFetchMoreFn<T> = (page: number) => Promise<T[] | null | undefined>;
|
|
2391
|
+
|
|
1641
2392
|
/** Fetch response */
|
|
1642
2393
|
declare interface SmartGridFetchResponse {
|
|
1643
2394
|
data?: SmartGridRowData[];
|
|
@@ -1654,6 +2405,17 @@ export declare type SmartGridFetDataParams = (body: SmartGridFetchDataFunctionBo
|
|
|
1654
2405
|
totalCount?: number | null;
|
|
1655
2406
|
}>;
|
|
1656
2407
|
|
|
2408
|
+
export declare interface SmartGridFileUploaderProps {
|
|
2409
|
+
file?: File | null;
|
|
2410
|
+
fileUrl?: string | null;
|
|
2411
|
+
isLoading?: boolean;
|
|
2412
|
+
isError?: boolean;
|
|
2413
|
+
errorMessage?: string;
|
|
2414
|
+
onClear?: () => void;
|
|
2415
|
+
onRetry?: () => void;
|
|
2416
|
+
onDownload?: (url: string, fileName: string) => void;
|
|
2417
|
+
}
|
|
2418
|
+
|
|
1657
2419
|
export declare type SmartGridFilterMode = "value" | "condition";
|
|
1658
2420
|
|
|
1659
2421
|
export declare interface SmartGridFilterModel {
|
|
@@ -1694,6 +2456,22 @@ export declare interface SmartGridFocusedCell extends SmartGridSelectedCell {
|
|
|
1694
2456
|
floating: SmartGridFloatingType;
|
|
1695
2457
|
}
|
|
1696
2458
|
|
|
2459
|
+
export declare interface SmartGridFormatActiveState {
|
|
2460
|
+
bold: boolean;
|
|
2461
|
+
italic: boolean;
|
|
2462
|
+
link: boolean;
|
|
2463
|
+
bulletList: boolean;
|
|
2464
|
+
orderedList: boolean;
|
|
2465
|
+
strike: boolean;
|
|
2466
|
+
highlight: boolean;
|
|
2467
|
+
h1: boolean;
|
|
2468
|
+
h2: boolean;
|
|
2469
|
+
h3: boolean;
|
|
2470
|
+
h4: boolean;
|
|
2471
|
+
h5: boolean;
|
|
2472
|
+
h6: boolean;
|
|
2473
|
+
}
|
|
2474
|
+
|
|
1697
2475
|
export declare type SmartGridFrozenColumnsDetails = {
|
|
1698
2476
|
indexes: string[];
|
|
1699
2477
|
positions: Record<string, number>;
|
|
@@ -1770,6 +2548,14 @@ export declare interface SmartGridGlobalColumnCounts {
|
|
|
1770
2548
|
right?: number;
|
|
1771
2549
|
}
|
|
1772
2550
|
|
|
2551
|
+
export declare type SmartGridGroupedMessageItem = (SmartGridChatMessage & {
|
|
2552
|
+
type?: "default" | "deleted" | "edited" | string;
|
|
2553
|
+
}) | SmartGridDateSeparatorItem;
|
|
2554
|
+
|
|
2555
|
+
export declare interface SmartGridHandleToastFn {
|
|
2556
|
+
(isOpen: boolean, message?: string, variant?: SmartGridToastVariant): void;
|
|
2557
|
+
}
|
|
2558
|
+
|
|
1773
2559
|
export declare interface SmartGridHeaderCellProps {
|
|
1774
2560
|
column: SmartGridColumnDefinition;
|
|
1775
2561
|
index: number;
|
|
@@ -1785,6 +2571,44 @@ export declare interface SmartGridHeaderCellProps {
|
|
|
1785
2571
|
} | null;
|
|
1786
2572
|
}
|
|
1787
2573
|
|
|
2574
|
+
export declare interface SmartGridHeaderChatConfig {
|
|
2575
|
+
participants: SmartGridParticipant[];
|
|
2576
|
+
participantsList: SmartGridParticipant[];
|
|
2577
|
+
headerConfig: SmartGridHeaderConfig;
|
|
2578
|
+
notificationSettings: SmartGridNotificationSettings;
|
|
2579
|
+
loadParticipants: (radioValue: string, chatId: string | number) => Promise<SmartGridParticipant[]>;
|
|
2580
|
+
loadParticipantsAvatar: (selectedRadioOption: string, chatId: string | number) => Promise<SmartGridParticipant[]>;
|
|
2581
|
+
loadMenuOptions: () => Promise<SmartGridParticipant[]>;
|
|
2582
|
+
onParticipantsClick: (radioValue: string | number) => Promise<SmartGridParticipant[]>;
|
|
2583
|
+
onParticipantAdd: (participantIds: (string | number)[], selectedRadioOption: string, chatId: string | number) => Promise<{
|
|
2584
|
+
success: boolean;
|
|
2585
|
+
participant: SmartGridParticipant;
|
|
2586
|
+
} | null>;
|
|
2587
|
+
onParticipantRemove: (participant: SmartGridParticipant) => Promise<{
|
|
2588
|
+
success: boolean;
|
|
2589
|
+
participant: SmartGridParticipant;
|
|
2590
|
+
}>;
|
|
2591
|
+
onPinnedClick: (chatId: string | number) => Promise<SmartGridChatMessage[]>;
|
|
2592
|
+
onPinnedChatClick: (chatId: string | number, isPinned: boolean) => Promise<boolean>;
|
|
2593
|
+
onChatClick: (chatId: string | number, channelId?: string | number | null) => Promise<void>;
|
|
2594
|
+
onSearchChange: (value: string, radioValue?: string, chatId?: string | number) => Promise<SmartGridParticipant[]>;
|
|
2595
|
+
onNotificationSettingChange: (settings: SmartGridNotificationSettings) => Promise<{
|
|
2596
|
+
success: boolean;
|
|
2597
|
+
settings: SmartGridNotificationSettings;
|
|
2598
|
+
} | void>;
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
export declare interface SmartGridHeaderConfig {
|
|
2602
|
+
showSearch?: boolean;
|
|
2603
|
+
showParticipants?: boolean;
|
|
2604
|
+
showPinned?: boolean;
|
|
2605
|
+
showNotifications?: boolean;
|
|
2606
|
+
selectedRadioOptionMenu?: string;
|
|
2607
|
+
maxAvatars?: number;
|
|
2608
|
+
radioOptions?: SmartGridChatRadioOption[];
|
|
2609
|
+
searchConfig?: SmartGridSearchConfig;
|
|
2610
|
+
}
|
|
2611
|
+
|
|
1788
2612
|
export declare interface SmartGridHeaderMenuReturn {
|
|
1789
2613
|
unfreezeColumn: (column: SmartGridColumnDefinition) => void;
|
|
1790
2614
|
freezeColumn: (column: SmartGridColumnDefinition) => void;
|
|
@@ -1856,6 +2680,14 @@ export declare interface SmartGridIATableState {
|
|
|
1856
2680
|
activeInstance?: HTMLElement | null;
|
|
1857
2681
|
}
|
|
1858
2682
|
|
|
2683
|
+
export declare interface SmartGridImageUploaderProps {
|
|
2684
|
+
image?: string | null;
|
|
2685
|
+
isLoading?: boolean;
|
|
2686
|
+
isError?: boolean;
|
|
2687
|
+
handleClear?: () => void;
|
|
2688
|
+
handleRetry?: () => void;
|
|
2689
|
+
}
|
|
2690
|
+
|
|
1859
2691
|
export declare interface SmartGridInfiniteCache {
|
|
1860
2692
|
analytics: SmartGridCacheAnalytics;
|
|
1861
2693
|
blockCount: number;
|
|
@@ -2014,6 +2846,25 @@ export declare interface SmartGridInfiniteScrollLoaderProps {
|
|
|
2014
2846
|
colSpan: number;
|
|
2015
2847
|
}
|
|
2016
2848
|
|
|
2849
|
+
export declare interface SmartGridInfiniteScrollOptions {
|
|
2850
|
+
threshold?: number;
|
|
2851
|
+
rootMargin?: string;
|
|
2852
|
+
enabled?: boolean;
|
|
2853
|
+
isRestoringScroll?: MutableRefObject<boolean> | null;
|
|
2854
|
+
}
|
|
2855
|
+
|
|
2856
|
+
export declare interface SmartGridInfiniteScrollReturn {
|
|
2857
|
+
loadMoreRef: RefObject<HTMLDivElement>;
|
|
2858
|
+
isLoading: boolean;
|
|
2859
|
+
hasMore: boolean;
|
|
2860
|
+
error: Error | null;
|
|
2861
|
+
loadMore: () => Promise<void>;
|
|
2862
|
+
reset: () => void;
|
|
2863
|
+
updateHasMore: (newHasMore: boolean) => void;
|
|
2864
|
+
updateCurrentPage: (newPage: number) => void;
|
|
2865
|
+
currentPage: number;
|
|
2866
|
+
}
|
|
2867
|
+
|
|
2017
2868
|
export declare interface SmartGridInitialDataUpdateParams {
|
|
2018
2869
|
dispatch: SmartGridDispatch;
|
|
2019
2870
|
pinnedTopRows: SmartGridRowData[];
|
|
@@ -2053,6 +2904,29 @@ export declare interface SmartGridInitialDataUpdateParams {
|
|
|
2053
2904
|
splitRendererKeys?: string[];
|
|
2054
2905
|
}
|
|
2055
2906
|
|
|
2907
|
+
export declare interface SmartGridInputChatConfig {
|
|
2908
|
+
inputConfig: SmartGridInputConfig;
|
|
2909
|
+
onSend: (payload: SmartGridSendPayload, chatId: string | number) => Promise<SmartGridChatMessage | {
|
|
2910
|
+
success: boolean;
|
|
2911
|
+
message: string;
|
|
2912
|
+
}>;
|
|
2913
|
+
onMessageReply: (messageId: string | number, chatId: string | number) => void;
|
|
2914
|
+
onMessageBookmark: (messageId: string | number, chatId: string | number) => void;
|
|
2915
|
+
onMessageMore: (messageId: string | number, chatId: string | number) => void;
|
|
2916
|
+
onAttachFile: (file: File) => void;
|
|
2917
|
+
onImageUpload: (image: File) => void;
|
|
2918
|
+
onEmojiSelect: (emoji: string) => void;
|
|
2919
|
+
}
|
|
2920
|
+
|
|
2921
|
+
export declare interface SmartGridInputConfig {
|
|
2922
|
+
placeholder?: string;
|
|
2923
|
+
maxLength?: number;
|
|
2924
|
+
showFormatting?: boolean;
|
|
2925
|
+
showEmojiPicker?: boolean;
|
|
2926
|
+
showAttachments?: boolean;
|
|
2927
|
+
allowedFileTypes?: string[];
|
|
2928
|
+
}
|
|
2929
|
+
|
|
2056
2930
|
export declare interface SmartGridInputFormatInstance {
|
|
2057
2931
|
colDef?: {
|
|
2058
2932
|
type?: string;
|
|
@@ -2093,6 +2967,7 @@ export declare interface SmartGridInputProps {
|
|
|
2093
2967
|
onFocus?: (e: FocusEvent_2<HTMLInputElement>) => void;
|
|
2094
2968
|
onBlur?: (e: FocusEvent_2<HTMLInputElement>) => void;
|
|
2095
2969
|
autoFocus?: boolean;
|
|
2970
|
+
rightIconClick?: () => void;
|
|
2096
2971
|
}
|
|
2097
2972
|
|
|
2098
2973
|
export declare type SmartGridInputType = "text" | "password" | "email" | "number" | "tel" | "int" | "url";
|
|
@@ -2122,6 +2997,32 @@ declare interface SmartGridLastAccessedSequence_2 {
|
|
|
2122
2997
|
next: () => number;
|
|
2123
2998
|
}
|
|
2124
2999
|
|
|
3000
|
+
export declare interface SmartGridLeftChatPanel {
|
|
3001
|
+
showCheckbox?: boolean;
|
|
3002
|
+
}
|
|
3003
|
+
|
|
3004
|
+
export declare interface SmartGridLeftHeaderPanel {
|
|
3005
|
+
showAddChat?: boolean;
|
|
3006
|
+
showCheckbox?: boolean;
|
|
3007
|
+
}
|
|
3008
|
+
|
|
3009
|
+
export declare interface SmartGridLeftPanelConfig {
|
|
3010
|
+
leftHeaderPanel: SmartGridLeftHeaderPanel;
|
|
3011
|
+
leftChatPanel: SmartGridLeftChatPanel;
|
|
3012
|
+
rightHeaderPanel: SmartGridRightHeaderPanel;
|
|
3013
|
+
loadChannelsList: () => Promise<SmartGridChannel[]>;
|
|
3014
|
+
loadChatList: (selectedChannelInfo: SmartGridChannel) => Promise<SmartGridChat[]>;
|
|
3015
|
+
handleChatName: (formData: SmartGridChatFormData, selectedChannelId: SmartGridChannel | null) => Promise<SmartGridCreateChatResponse>;
|
|
3016
|
+
deleteChat: (topicId: string | number) => Promise<{
|
|
3017
|
+
success: boolean;
|
|
3018
|
+
topicId: string | number;
|
|
3019
|
+
}>;
|
|
3020
|
+
directChatList: SmartGridChat[];
|
|
3021
|
+
hasDirectChatList: boolean;
|
|
3022
|
+
selectedChatId?: string | number;
|
|
3023
|
+
clearDirectChatList: () => void;
|
|
3024
|
+
}
|
|
3025
|
+
|
|
2125
3026
|
export declare interface SmartGridMasterDetailConfig {
|
|
2126
3027
|
enabled: boolean;
|
|
2127
3028
|
expandedRows: (string | number)[];
|
|
@@ -2149,6 +3050,72 @@ export declare interface SmartGridMemoryAnalyticsReturn {
|
|
|
2149
3050
|
updateMemoryAndAnalytices: () => void;
|
|
2150
3051
|
}
|
|
2151
3052
|
|
|
3053
|
+
export declare interface SmartGridMentionCommand {
|
|
3054
|
+
id: string;
|
|
3055
|
+
label: string;
|
|
3056
|
+
}
|
|
3057
|
+
|
|
3058
|
+
export declare interface SmartGridMentionConfig {
|
|
3059
|
+
chatId?: string | number;
|
|
3060
|
+
loadParticipantsAvatar?: (selectedRadioOption: string, chatId: string | number) => Promise<SmartGridParticipant[]>;
|
|
3061
|
+
}
|
|
3062
|
+
|
|
3063
|
+
export declare interface SmartGridMentionEditorProps {
|
|
3064
|
+
value?: string;
|
|
3065
|
+
onChange?: (html: string) => void;
|
|
3066
|
+
onSend?: () => void;
|
|
3067
|
+
disabled?: boolean;
|
|
3068
|
+
maxLength?: number;
|
|
3069
|
+
placeholder?: string;
|
|
3070
|
+
chatId?: string | number;
|
|
3071
|
+
loadParticipantsAvatar?: (selectedRadioOption: string, chatId: string | number) => Promise<SmartGridParticipant[]>;
|
|
3072
|
+
}
|
|
3073
|
+
|
|
3074
|
+
export declare interface SmartGridMentionEditorRef {
|
|
3075
|
+
toggleBold: () => void;
|
|
3076
|
+
toggleItalic: () => void;
|
|
3077
|
+
toggleLink: () => void;
|
|
3078
|
+
addImage: (url: string, alt?: string) => void;
|
|
3079
|
+
getHTML: () => string;
|
|
3080
|
+
getJSON: () => Record<string, unknown> | undefined;
|
|
3081
|
+
clearContent: () => void;
|
|
3082
|
+
isEmpty: () => boolean;
|
|
3083
|
+
insertEmoji: (emoji: string) => void;
|
|
3084
|
+
toggleStrike: () => void;
|
|
3085
|
+
toggleHighlight: () => boolean | undefined;
|
|
3086
|
+
toggleBulletList: () => void;
|
|
3087
|
+
toggleOrderedList: () => void;
|
|
3088
|
+
toggleH1: () => void;
|
|
3089
|
+
toggleH2: () => void;
|
|
3090
|
+
toggleH3: () => void;
|
|
3091
|
+
toggleH4: () => void;
|
|
3092
|
+
toggleH5: () => void;
|
|
3093
|
+
toggleH6: () => void;
|
|
3094
|
+
editor: Editor | null;
|
|
3095
|
+
}
|
|
3096
|
+
|
|
3097
|
+
export declare interface SmartGridMentionInfo {
|
|
3098
|
+
id: string | number;
|
|
3099
|
+
label: string;
|
|
3100
|
+
position: number;
|
|
3101
|
+
}
|
|
3102
|
+
|
|
3103
|
+
export declare interface SmartGridMentionListProps {
|
|
3104
|
+
items: SmartGridMentionUser[];
|
|
3105
|
+
command: (item: SmartGridMentionCommand) => void;
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
export declare interface SmartGridMentionListRef {
|
|
3109
|
+
onKeyDown: (props: SmartGridSuggestionRenderProps) => boolean | undefined;
|
|
3110
|
+
}
|
|
3111
|
+
|
|
3112
|
+
export declare interface SmartGridMentionUser {
|
|
3113
|
+
id: string | number;
|
|
3114
|
+
name: string;
|
|
3115
|
+
avatar?: string;
|
|
3116
|
+
status?: string;
|
|
3117
|
+
}
|
|
3118
|
+
|
|
2152
3119
|
export declare type SmartGridMenuAlignment = "start" | "end" | "auto";
|
|
2153
3120
|
|
|
2154
3121
|
export declare interface SmartGridMenuAlignments {
|
|
@@ -2160,8 +3127,12 @@ export declare interface SmartGridMenuAlignments {
|
|
|
2160
3127
|
export declare interface SmartGridMenuOption {
|
|
2161
3128
|
label: string | number;
|
|
2162
3129
|
id: string | number;
|
|
2163
|
-
onClick
|
|
3130
|
+
onClick?: (value: string | number) => void;
|
|
2164
3131
|
icon?: ReactNode;
|
|
3132
|
+
value?: string | number;
|
|
3133
|
+
prefillText?: string;
|
|
3134
|
+
name?: string;
|
|
3135
|
+
avatar?: string;
|
|
2165
3136
|
submenu?: SmartGridMenuOption[];
|
|
2166
3137
|
submenuPosition?: SmartGridMenuPosition;
|
|
2167
3138
|
submenuWidth?: number;
|
|
@@ -2182,6 +3153,49 @@ export declare interface SmartGridMenuOptions {
|
|
|
2182
3153
|
wrapText?: boolean;
|
|
2183
3154
|
}
|
|
2184
3155
|
|
|
3156
|
+
export declare interface SmartGridMenuOptionsHeaderCustomProps {
|
|
3157
|
+
searchPlaceholder?: string;
|
|
3158
|
+
selectAllLabel?: string;
|
|
3159
|
+
clearButtonText?: string;
|
|
3160
|
+
radioButtonProps?: Record<string, unknown>;
|
|
3161
|
+
searchInputProps?: Record<string, unknown>;
|
|
3162
|
+
checkboxProps?: Record<string, unknown>;
|
|
3163
|
+
clearButtonProps?: Record<string, unknown>;
|
|
3164
|
+
}
|
|
3165
|
+
|
|
3166
|
+
export declare interface SmartGridMenuOptionsHeaderExternalHandlers {
|
|
3167
|
+
onSearchChange?: (value: string) => void;
|
|
3168
|
+
onSelectAll?: (allValues: (string | number)[]) => void;
|
|
3169
|
+
onClearSelection?: () => void;
|
|
3170
|
+
onRadioButtonChange?: (value: string) => void;
|
|
3171
|
+
}
|
|
3172
|
+
|
|
3173
|
+
export declare interface SmartGridMenuOptionsHeaderOverrideConfig {
|
|
3174
|
+
radioButtonOptions?: SmartGridChatRadioOption[];
|
|
3175
|
+
selectedRadioButton?: string;
|
|
3176
|
+
showRadioButton?: boolean;
|
|
3177
|
+
isSearchable?: boolean;
|
|
3178
|
+
isSelectAllAllowed?: boolean;
|
|
3179
|
+
}
|
|
3180
|
+
|
|
3181
|
+
export declare interface SmartGridMenuOptionsHeaderProps {
|
|
3182
|
+
options?: SmartGridParticipant[];
|
|
3183
|
+
selectedItems?: (string | number)[];
|
|
3184
|
+
onSearchChange?: (value: string) => void;
|
|
3185
|
+
onSelectAll?: (allValues: (string | number)[]) => void;
|
|
3186
|
+
searchQuery?: string;
|
|
3187
|
+
onClearSelection?: () => void;
|
|
3188
|
+
onRadioButtonChange?: (value: string) => void;
|
|
3189
|
+
radioButtonOptions?: SmartGridChatRadioOption[];
|
|
3190
|
+
selectedRadioButton?: string;
|
|
3191
|
+
showRadioButton?: boolean;
|
|
3192
|
+
isSearchable?: boolean;
|
|
3193
|
+
isSelectAllAllowed?: boolean;
|
|
3194
|
+
customHeaderProps?: SmartGridMenuOptionsHeaderCustomProps;
|
|
3195
|
+
externalHandlers?: SmartGridMenuOptionsHeaderExternalHandlers;
|
|
3196
|
+
overrideConfig?: SmartGridMenuOptionsHeaderOverrideConfig;
|
|
3197
|
+
}
|
|
3198
|
+
|
|
2185
3199
|
export declare type SmartGridMenuPosition = "top" | "bottom" | "left" | "right";
|
|
2186
3200
|
|
|
2187
3201
|
export declare interface SmartGridMenuPositionResult {
|
|
@@ -2209,13 +3223,25 @@ export declare interface SmartGridMenuPositionState {
|
|
|
2209
3223
|
transformOrigin?: string;
|
|
2210
3224
|
}
|
|
2211
3225
|
|
|
3226
|
+
export declare interface SmartGridMenuPrimaryButtonProps {
|
|
3227
|
+
loading?: boolean;
|
|
3228
|
+
disabled?: boolean;
|
|
3229
|
+
label?: string;
|
|
3230
|
+
}
|
|
3231
|
+
|
|
2212
3232
|
export declare interface SmartGridMenuProps {
|
|
2213
3233
|
options?: SmartGridMenuOption[];
|
|
2214
|
-
selectedElement?: string | number
|
|
2215
|
-
|
|
2216
|
-
|
|
3234
|
+
selectedElement?: string | number | {
|
|
3235
|
+
value?: string | number;
|
|
3236
|
+
prefillText?: string;
|
|
3237
|
+
} | null;
|
|
3238
|
+
iconPlacement?: "left" | "right" | "top";
|
|
3239
|
+
isOpen?: boolean;
|
|
3240
|
+
open?: boolean;
|
|
2217
3241
|
setIsOpen: (isOpen: boolean) => void;
|
|
2218
|
-
|
|
3242
|
+
onClose?: () => void;
|
|
3243
|
+
menuButtonRef?: RefObject<HTMLElement | null>;
|
|
3244
|
+
anchorEl?: HTMLElement | null;
|
|
2219
3245
|
position?: SmartGridMenuPosition;
|
|
2220
3246
|
width?: number;
|
|
2221
3247
|
horizontalAlign?: SmartGridMenuAlignment;
|
|
@@ -2225,8 +3251,86 @@ export declare interface SmartGridMenuProps {
|
|
|
2225
3251
|
portalContainer?: HTMLElement;
|
|
2226
3252
|
additionalButtons?: ReactNode;
|
|
2227
3253
|
forcePosition?: boolean;
|
|
3254
|
+
onClick?: (option: SmartGridMenuOption) => void;
|
|
3255
|
+
menuContainerClassName?: string;
|
|
3256
|
+
primaryButtonProps?: SmartGridMenuPrimaryButtonProps;
|
|
3257
|
+
onPrimaryButtonClick?: () => void | Promise<void>;
|
|
3258
|
+
onTertiaryButtonClick?: () => void;
|
|
3259
|
+
selected?: string;
|
|
3260
|
+
withActionButtons?: boolean;
|
|
3261
|
+
withCheckbox?: boolean;
|
|
3262
|
+
renderCustomHeader?: (headerProps: Record<string, unknown>) => ReactNode;
|
|
3263
|
+
filteredOptions?: SmartGridMenuOption[];
|
|
3264
|
+
searchQuery?: string;
|
|
3265
|
+
onSearchChange?: (value: string) => void;
|
|
3266
|
+
onSelectAll?: (allValues: (string | number)[]) => void;
|
|
3267
|
+
onClearSelection?: () => void;
|
|
3268
|
+
customHeaderProps?: Record<string, unknown>;
|
|
3269
|
+
}
|
|
3270
|
+
|
|
3271
|
+
export declare interface SmartGridMessageAction {
|
|
3272
|
+
icon: React.ReactNode | null;
|
|
3273
|
+
handler?: (messageId: string | number) => void;
|
|
3274
|
+
ariaLabel: string;
|
|
3275
|
+
}
|
|
3276
|
+
|
|
3277
|
+
export declare type SmartGridMessageActionKey = "reply" | "bookmark" | "pin" | "more";
|
|
3278
|
+
|
|
3279
|
+
export declare interface SmartGridMessageChatConfig {
|
|
3280
|
+
realTimeMessages: SmartGridChatMessage[];
|
|
3281
|
+
isWebSocketConnected: boolean;
|
|
3282
|
+
currentTopicId: string | number | null;
|
|
3283
|
+
isThreadIconVisible: boolean;
|
|
3284
|
+
isPinChatIconVisible: boolean;
|
|
3285
|
+
emptyChannelStateTitle: string;
|
|
3286
|
+
emptyChannelStateSubTitle: string;
|
|
3287
|
+
emptyChatStateTitle: string;
|
|
3288
|
+
emptyChatStateSubTitle: string;
|
|
3289
|
+
currentUserId: string | number | null;
|
|
3290
|
+
selectedMessageId: string | number | null;
|
|
3291
|
+
maxSearchPages: number;
|
|
3292
|
+
highlightDuration: number;
|
|
3293
|
+
scrollBehavior: ScrollBehavior;
|
|
3294
|
+
scrollBlock: ScrollLogicalPosition;
|
|
3295
|
+
highlightColor: string;
|
|
3296
|
+
messageConfig: SmartGridMessageConfig;
|
|
3297
|
+
onRealTimeMessageUpdate: (newMessage: SmartGridChatMessage) => void;
|
|
3298
|
+
onMessageReply: (messageId: string | number, message: SmartGridChatMessage) => void;
|
|
3299
|
+
onMessageBookmark: (messageId: string | number, message: SmartGridChatMessage) => void;
|
|
3300
|
+
onMessagePin: (messageId: string | number, isPinned: boolean, chatId: string | number, item: SmartGridChatMessage) => Promise<SmartGridChatMessage | boolean | undefined>;
|
|
3301
|
+
onMessageUpdate: (messageId: string | number, updatedData: Partial<SmartGridChatMessage>) => Promise<SmartGridChatMessage | {
|
|
3302
|
+
success: boolean;
|
|
3303
|
+
messageId: string | number;
|
|
3304
|
+
updatedData: Partial<SmartGridChatMessage>;
|
|
3305
|
+
}>;
|
|
3306
|
+
onMessageDelete: (messageId: string | number) => Promise<{
|
|
3307
|
+
success: boolean;
|
|
3308
|
+
messageId: string | number;
|
|
3309
|
+
}>;
|
|
3310
|
+
onThreadClick: (messageId: string | number, message: SmartGridChatMessage) => void;
|
|
3311
|
+
loadThreadMessages: (parentMessageId: string | number) => Promise<SmartGridChatMessage[]>;
|
|
3312
|
+
loadPinnedMsg: () => Promise<SmartGridChatMessage[]>;
|
|
3313
|
+
onSearchMessage: (value: string, chatId: string | number) => Promise<SmartGridChatMessage[]>;
|
|
3314
|
+
leaveCurrentTopic: () => void;
|
|
3315
|
+
markTopicAsDeleted: (topicId: string | number) => void;
|
|
3316
|
+
onClearAllMessages: (chatId?: string | number) => void;
|
|
3317
|
+
}
|
|
3318
|
+
|
|
3319
|
+
export declare interface SmartGridMessageConfig {
|
|
3320
|
+
showActions?: boolean;
|
|
3321
|
+
priorityOptions?: SmartGridPriorityOption[];
|
|
3322
|
+
quickActionProps?: SmartGridQuickActionProp[];
|
|
3323
|
+
isMsgFormat?: boolean;
|
|
3324
|
+
}
|
|
3325
|
+
|
|
3326
|
+
export declare interface SmartGridMessageItemProps {
|
|
3327
|
+
type?: SmartGridPinnedPanelType;
|
|
3328
|
+
msg?: SmartGridPinnedMessageItem;
|
|
3329
|
+
onMessageClick?: (messageId: string | number) => void;
|
|
2228
3330
|
}
|
|
2229
3331
|
|
|
3332
|
+
export declare type SmartGridMessagePriority = "default" | "normal" | "low" | "medium" | "high";
|
|
3333
|
+
|
|
2230
3334
|
export declare interface SmartGridModalProps {
|
|
2231
3335
|
open?: boolean;
|
|
2232
3336
|
onClose: () => void;
|
|
@@ -2236,7 +3340,7 @@ export declare interface SmartGridModalProps {
|
|
|
2236
3340
|
width?: string | number;
|
|
2237
3341
|
height?: string | number;
|
|
2238
3342
|
className?: string;
|
|
2239
|
-
onPrimaryButtonClick?: () => void
|
|
3343
|
+
onPrimaryButtonClick?: () => void | Promise<void>;
|
|
2240
3344
|
primaryButtonLabel?: string;
|
|
2241
3345
|
onSecondaryButtonClick?: () => void;
|
|
2242
3346
|
secondaryButtonLabel?: string;
|
|
@@ -2246,17 +3350,42 @@ export declare interface SmartGridModalProps {
|
|
|
2246
3350
|
showCloseButton?: boolean;
|
|
2247
3351
|
showPrimaryButton?: boolean;
|
|
2248
3352
|
showSecondaryButton?: boolean;
|
|
3353
|
+
footerOptions?: ReactNode;
|
|
3354
|
+
loading?: boolean;
|
|
2249
3355
|
}
|
|
2250
3356
|
|
|
2251
3357
|
export declare type SmartGridModalSize = "small" | "medium" | "large";
|
|
2252
3358
|
|
|
2253
3359
|
export declare type SmartGridModelType = "normal" | "serverSide" | "infinite";
|
|
2254
3360
|
|
|
3361
|
+
export declare interface SmartGridMoreAvatarProps {
|
|
3362
|
+
count: number;
|
|
3363
|
+
size?: SmartGridAvatarSize;
|
|
3364
|
+
}
|
|
3365
|
+
|
|
2255
3366
|
export declare interface SmartGridNewSortModel {
|
|
2256
3367
|
column: string | null;
|
|
2257
3368
|
order: SmartGridSortDirection | null;
|
|
2258
3369
|
}
|
|
2259
3370
|
|
|
3371
|
+
/**
|
|
3372
|
+
* SmartGridNoCommentsProps - Props for NoComments component
|
|
3373
|
+
*/
|
|
3374
|
+
export declare interface SmartGridNoCommentsProps {
|
|
3375
|
+
onAddComment?: (cellId: string | number, inputValue: string, taggedUsers?: SmartGridCommentTaggedUser[]) => void | Promise<void>;
|
|
3376
|
+
cellId?: string | number;
|
|
3377
|
+
position?: SmartGridCommentPopupPosition;
|
|
3378
|
+
isInsidePortal?: boolean;
|
|
3379
|
+
editCommentText?: string;
|
|
3380
|
+
isLoading?: boolean;
|
|
3381
|
+
error?: string | null;
|
|
3382
|
+
onClearError?: () => void;
|
|
3383
|
+
isEditFlow?: boolean;
|
|
3384
|
+
onUpdateComment?: (text: string) => void;
|
|
3385
|
+
setEditingComment?: React.Dispatch<React.SetStateAction<SmartGridComment | null>>;
|
|
3386
|
+
loadParticipantsAvatar?: (selectedRadioOption: string, chatId: string | number) => Promise<SmartGridParticipant[]>;
|
|
3387
|
+
}
|
|
3388
|
+
|
|
2260
3389
|
export declare interface SmartGridNotification {
|
|
2261
3390
|
message: string;
|
|
2262
3391
|
type?: "success" | "error" | "warning" | "info";
|
|
@@ -2264,6 +3393,13 @@ export declare interface SmartGridNotification {
|
|
|
2264
3393
|
timeout?: number;
|
|
2265
3394
|
}
|
|
2266
3395
|
|
|
3396
|
+
export declare interface SmartGridNotificationSettings {
|
|
3397
|
+
notificationSetting?: string;
|
|
3398
|
+
includeChannelMentions?: boolean;
|
|
3399
|
+
muteChannel?: boolean;
|
|
3400
|
+
channelName?: string;
|
|
3401
|
+
}
|
|
3402
|
+
|
|
2267
3403
|
export declare type SmartGridNumberFormat = "full" | "thousands" | "millions" | "billions";
|
|
2268
3404
|
|
|
2269
3405
|
export declare interface SmartGridOldSortModel {
|
|
@@ -2271,6 +3407,8 @@ export declare interface SmartGridOldSortModel {
|
|
|
2271
3407
|
sort: SmartGridSortDirection;
|
|
2272
3408
|
}
|
|
2273
3409
|
|
|
3410
|
+
export declare type SmartGridOnMessagePin = (messageId: string | number, pinned: boolean, chatId: string | number, item: SmartGridChatMessage) => Promise<SmartGridChatMessage | boolean | undefined>;
|
|
3411
|
+
|
|
2274
3412
|
export declare type SmartGridOnReadyParams = {
|
|
2275
3413
|
api: SmartGridAPI;
|
|
2276
3414
|
columnApi: SmartGridAPI;
|
|
@@ -2348,6 +3486,28 @@ export declare interface SmartGridParamsNode {
|
|
|
2348
3486
|
api: SmartGridAPI;
|
|
2349
3487
|
}
|
|
2350
3488
|
|
|
3489
|
+
/**
|
|
3490
|
+
* ParticipantObject - Represents a chat participant
|
|
3491
|
+
* @see MDX Documentation: Data Structures > ParticipantObject
|
|
3492
|
+
*/
|
|
3493
|
+
export declare interface SmartGridParticipant {
|
|
3494
|
+
id: string | number;
|
|
3495
|
+
label: string;
|
|
3496
|
+
value: string | number;
|
|
3497
|
+
name?: string;
|
|
3498
|
+
role?: string;
|
|
3499
|
+
url?: string;
|
|
3500
|
+
status?: "online" | "offline";
|
|
3501
|
+
isPinned?: boolean;
|
|
3502
|
+
avatar?: string;
|
|
3503
|
+
otherProps?: {
|
|
3504
|
+
user_name: string;
|
|
3505
|
+
user_code: string | number;
|
|
3506
|
+
email: string;
|
|
3507
|
+
user_image?: string;
|
|
3508
|
+
};
|
|
3509
|
+
}
|
|
3510
|
+
|
|
2351
3511
|
/** Pending request with abort capability */
|
|
2352
3512
|
declare interface SmartGridPendingRequest {
|
|
2353
3513
|
abort?: () => void;
|
|
@@ -2360,6 +3520,29 @@ declare interface SmartGridPersistenceOptions {
|
|
|
2360
3520
|
compressionEnabled: boolean;
|
|
2361
3521
|
}
|
|
2362
3522
|
|
|
3523
|
+
export declare interface SmartGridPinnedMessageItem {
|
|
3524
|
+
id?: string | number;
|
|
3525
|
+
userInitials?: string;
|
|
3526
|
+
src?: string;
|
|
3527
|
+
senderName?: string;
|
|
3528
|
+
timestamp?: string;
|
|
3529
|
+
content?: string | React.ReactNode;
|
|
3530
|
+
quote?: string | React.ReactNode;
|
|
3531
|
+
edited?: boolean;
|
|
3532
|
+
type?: string;
|
|
3533
|
+
deleted?: boolean;
|
|
3534
|
+
}
|
|
3535
|
+
|
|
3536
|
+
export declare interface SmartGridPinnedPanelProps {
|
|
3537
|
+
type?: SmartGridPinnedPanelType;
|
|
3538
|
+
messages?: SmartGridPinnedMessageItem[];
|
|
3539
|
+
onClose?: () => void;
|
|
3540
|
+
onMessageClick?: (messageId: string | number) => void;
|
|
3541
|
+
handleToast?: SmartGridHandleToastFn;
|
|
3542
|
+
}
|
|
3543
|
+
|
|
3544
|
+
export declare type SmartGridPinnedPanelType = "pinned" | "thread";
|
|
3545
|
+
|
|
2363
3546
|
export declare interface SmartGridPinnedRowsProps {
|
|
2364
3547
|
rowHeight: number;
|
|
2365
3548
|
selectable: boolean;
|
|
@@ -2609,6 +3792,48 @@ export declare interface SmartGridPivotWrapperProps {
|
|
|
2609
3792
|
showSaveTableConfig: boolean;
|
|
2610
3793
|
}
|
|
2611
3794
|
|
|
3795
|
+
export declare type SmartGridPopoverHorizontal = "left" | "center" | "right" | number;
|
|
3796
|
+
|
|
3797
|
+
export declare interface SmartGridPopoverOrigin {
|
|
3798
|
+
vertical: SmartGridPopoverVertical;
|
|
3799
|
+
horizontal: SmartGridPopoverHorizontal;
|
|
3800
|
+
}
|
|
3801
|
+
|
|
3802
|
+
export declare interface SmartGridPopoverProps {
|
|
3803
|
+
open: boolean;
|
|
3804
|
+
onClose: () => void;
|
|
3805
|
+
anchorEl: HTMLElement | null;
|
|
3806
|
+
anchorOrigin?: SmartGridPopoverOrigin;
|
|
3807
|
+
transformOrigin?: SmartGridPopoverOrigin;
|
|
3808
|
+
children?: ReactNode;
|
|
3809
|
+
className?: string;
|
|
3810
|
+
disablePortal?: boolean;
|
|
3811
|
+
keepMounted?: boolean;
|
|
3812
|
+
marginThreshold?: number;
|
|
3813
|
+
elevation?: number;
|
|
3814
|
+
disableScrollLock?: boolean;
|
|
3815
|
+
disableBackdrop?: boolean;
|
|
3816
|
+
onBackdropClick?: (e: MouseEvent_2<HTMLDivElement>) => void;
|
|
3817
|
+
}
|
|
3818
|
+
|
|
3819
|
+
export declare type SmartGridPopoverVertical = "top" | "center" | "bottom" | number;
|
|
3820
|
+
|
|
3821
|
+
export declare interface SmartGridPriorityMenuOption {
|
|
3822
|
+
id?: string;
|
|
3823
|
+
label?: string;
|
|
3824
|
+
value?: string;
|
|
3825
|
+
icon?: React.ReactNode;
|
|
3826
|
+
onClick?: (data: SmartGridPriorityMenuOption) => void;
|
|
3827
|
+
}
|
|
3828
|
+
|
|
3829
|
+
export declare interface SmartGridPriorityOption {
|
|
3830
|
+
id: string | number;
|
|
3831
|
+
value: string;
|
|
3832
|
+
label: string | number;
|
|
3833
|
+
icon?: React.ReactNode;
|
|
3834
|
+
onClick?: (value: string | number) => void;
|
|
3835
|
+
}
|
|
3836
|
+
|
|
2612
3837
|
export declare interface SmartGridPromptButton {
|
|
2613
3838
|
label: string;
|
|
2614
3839
|
type: "default" | "primary" | "secondary";
|
|
@@ -2630,10 +3855,28 @@ export declare interface SmartGridPromptProps {
|
|
|
2630
3855
|
|
|
2631
3856
|
export declare type SmartGridPromptVariant = "info" | "success" | "warning" | "delete" | "error";
|
|
2632
3857
|
|
|
3858
|
+
export declare interface SmartGridQuickActionOption {
|
|
3859
|
+
id?: string;
|
|
3860
|
+
label?: string;
|
|
3861
|
+
value?: string;
|
|
3862
|
+
icon?: React.ReactNode;
|
|
3863
|
+
onClick?: (data: SmartGridQuickActionOption) => void;
|
|
3864
|
+
prefillText?: string;
|
|
3865
|
+
}
|
|
3866
|
+
|
|
3867
|
+
export declare interface SmartGridQuickActionProp {
|
|
3868
|
+
id: string | number;
|
|
3869
|
+
value: string;
|
|
3870
|
+
label: string | number;
|
|
3871
|
+
prefillText?: string;
|
|
3872
|
+
icon?: React.ReactNode;
|
|
3873
|
+
onClick?: (value: string | number) => void;
|
|
3874
|
+
}
|
|
3875
|
+
|
|
2633
3876
|
export declare interface SmartGridRadioGroupProps {
|
|
2634
3877
|
options: SmartGridRadioOption[];
|
|
2635
3878
|
selectedOption: string | number;
|
|
2636
|
-
onChange: (e: ChangeEvent<HTMLInputElement
|
|
3879
|
+
onChange: (e: ChangeEvent<HTMLInputElement>, val: string | number) => void;
|
|
2637
3880
|
orientation?: SmartGridRadioOrientation;
|
|
2638
3881
|
disabled?: boolean;
|
|
2639
3882
|
name?: string;
|
|
@@ -2646,7 +3889,7 @@ export declare interface SmartGridRadioOption {
|
|
|
2646
3889
|
disabled?: boolean;
|
|
2647
3890
|
}
|
|
2648
3891
|
|
|
2649
|
-
export declare type SmartGridRadioOrientation = "vertical" | "horizontal";
|
|
3892
|
+
export declare type SmartGridRadioOrientation = "vertical" | "horizontal" | "row";
|
|
2650
3893
|
|
|
2651
3894
|
export declare type SmartGridRangeFilter = {
|
|
2652
3895
|
column: string;
|
|
@@ -2710,12 +3953,34 @@ export declare interface SmartGridRenderHeadersProps {
|
|
|
2710
3953
|
virtualizedStartCololumnIndex: MutableRefObject<number>;
|
|
2711
3954
|
}
|
|
2712
3955
|
|
|
3956
|
+
export declare interface SmartGridReplyBadgeProps {
|
|
3957
|
+
text?: string;
|
|
3958
|
+
action?: string;
|
|
3959
|
+
onReplyClick?: () => void;
|
|
3960
|
+
onActionClick?: () => void;
|
|
3961
|
+
className?: string;
|
|
3962
|
+
showIcon?: boolean;
|
|
3963
|
+
}
|
|
3964
|
+
|
|
2713
3965
|
/** Response metadata */
|
|
2714
3966
|
declare interface SmartGridResponseMetadata {
|
|
2715
3967
|
totalCount?: number;
|
|
2716
3968
|
lastRowIndexKnown?: boolean;
|
|
2717
3969
|
}
|
|
2718
3970
|
|
|
3971
|
+
export declare interface SmartGridRightHeaderPanel {
|
|
3972
|
+
showParticipants?: boolean;
|
|
3973
|
+
showPinnedChat?: boolean;
|
|
3974
|
+
showChatSearch?: boolean;
|
|
3975
|
+
showActionBtn?: boolean;
|
|
3976
|
+
}
|
|
3977
|
+
|
|
3978
|
+
export declare interface SmartGridRightPanelConfig {
|
|
3979
|
+
loadMessages: (chatId: string | number, page?: number) => Promise<SmartGridChatMessage[]>;
|
|
3980
|
+
loadOlderMessages: (channelId: string | number) => Promise<SmartGridChatMessage[]>;
|
|
3981
|
+
messagesClearedTrigger?: number;
|
|
3982
|
+
}
|
|
3983
|
+
|
|
2719
3984
|
export declare interface SmartGridRowClickHandler {
|
|
2720
3985
|
(rowData: SmartGridRowData, rowIndex: number): void;
|
|
2721
3986
|
}
|
|
@@ -2985,6 +4250,12 @@ export declare interface SmartGridScrollSyncReturn {
|
|
|
2985
4250
|
syncHorizontalScroll: (scrollLeft: number, sourceElement: HTMLElement, bodyScrollRef?: RefObject<HTMLDivElement | null> | null) => void;
|
|
2986
4251
|
}
|
|
2987
4252
|
|
|
4253
|
+
export declare interface SmartGridSearchConfig {
|
|
4254
|
+
placeholder?: string;
|
|
4255
|
+
debounceMs?: number;
|
|
4256
|
+
minChars?: number;
|
|
4257
|
+
}
|
|
4258
|
+
|
|
2988
4259
|
export declare type SmartGridSearchFunctionParams = SmartGridFilterModel[] | Record<string, SmartGridFilterModel[]>;
|
|
2989
4260
|
|
|
2990
4261
|
export declare type SmartGridSearchFunctionParamsWithField = Record<string, SmartGridFilterModel>;
|
|
@@ -3072,6 +4343,11 @@ export declare interface SmartGridSelectProps {
|
|
|
3072
4343
|
isEnableResetButton?: boolean;
|
|
3073
4344
|
}
|
|
3074
4345
|
|
|
4346
|
+
export declare interface SmartGridSendPayload {
|
|
4347
|
+
content: string;
|
|
4348
|
+
[key: string]: unknown;
|
|
4349
|
+
}
|
|
4350
|
+
|
|
3075
4351
|
export declare interface SmartGridServerProps {
|
|
3076
4352
|
totalItems: number;
|
|
3077
4353
|
totalPages: number;
|
|
@@ -3266,6 +4542,9 @@ export declare interface SmartGridStateContext {
|
|
|
3266
4542
|
deleteViewPromptText?: null | string;
|
|
3267
4543
|
}>;
|
|
3268
4544
|
saveViewCallbackRef: MutableRefObject<SmartGridSaveViewCallbackRefCurrent>;
|
|
4545
|
+
clickCallbackRef: MutableRefObject<SmartGridClickCallbackRefCurrent>;
|
|
4546
|
+
customCallback: SmartGridCustomCallbackRefCurrent;
|
|
4547
|
+
contextRef: MutableRefObject<SmartGridCommentContextRef> | null;
|
|
3269
4548
|
tableId: string;
|
|
3270
4549
|
isSingleSelect: boolean;
|
|
3271
4550
|
selectable: boolean;
|
|
@@ -3285,6 +4564,8 @@ export declare interface SmartGridStateContext {
|
|
|
3285
4564
|
pivotPanelColumnDef: null | SmartGridColumnDefinition[];
|
|
3286
4565
|
removeCheckConfigurationOnOperation: boolean;
|
|
3287
4566
|
totalColumnsCount: number;
|
|
4567
|
+
isCommentFeatureEnabled: boolean;
|
|
4568
|
+
isChatEnabled: boolean;
|
|
3288
4569
|
[key: string]: unknown;
|
|
3289
4570
|
}
|
|
3290
4571
|
|
|
@@ -3295,6 +4576,39 @@ export declare type SmartGridStringFilter = {
|
|
|
3295
4576
|
operator?: string;
|
|
3296
4577
|
};
|
|
3297
4578
|
|
|
4579
|
+
export declare interface SmartGridSuggestion {
|
|
4580
|
+
items: (params: SmartGridSuggestionItemsParams) => Promise<SmartGridMentionUser[]>;
|
|
4581
|
+
render: () => SmartGridSuggestionRenderReturn;
|
|
4582
|
+
}
|
|
4583
|
+
|
|
4584
|
+
export declare interface SmartGridSuggestionItemsParams {
|
|
4585
|
+
query: string;
|
|
4586
|
+
editor: Editor & {
|
|
4587
|
+
storage: {
|
|
4588
|
+
mentionConfig?: SmartGridMentionConfig;
|
|
4589
|
+
};
|
|
4590
|
+
};
|
|
4591
|
+
}
|
|
4592
|
+
|
|
4593
|
+
export declare interface SmartGridSuggestionKeyDownProps {
|
|
4594
|
+
event?: KeyboardEvent;
|
|
4595
|
+
}
|
|
4596
|
+
|
|
4597
|
+
export declare interface SmartGridSuggestionRenderProps {
|
|
4598
|
+
editor?: Editor;
|
|
4599
|
+
clientRect?: (() => DOMRect | null) | null;
|
|
4600
|
+
items?: SmartGridMentionUser[];
|
|
4601
|
+
command?: (item: SmartGridMentionCommand) => void;
|
|
4602
|
+
event?: KeyboardEvent;
|
|
4603
|
+
}
|
|
4604
|
+
|
|
4605
|
+
export declare interface SmartGridSuggestionRenderReturn {
|
|
4606
|
+
onStart: (props: SmartGridSuggestionRenderProps) => void;
|
|
4607
|
+
onUpdate: (props: SmartGridSuggestionRenderProps) => void;
|
|
4608
|
+
onKeyDown: (props: SmartGridSuggestionKeyDownProps) => boolean;
|
|
4609
|
+
onExit: () => void;
|
|
4610
|
+
}
|
|
4611
|
+
|
|
3298
4612
|
export declare interface SmartGridSwitchProps {
|
|
3299
4613
|
value: boolean;
|
|
3300
4614
|
leftLabel?: string;
|
|
@@ -3343,6 +4657,100 @@ export declare interface SmartGridTableBodyProps {
|
|
|
3343
4657
|
height: string | number;
|
|
3344
4658
|
}
|
|
3345
4659
|
|
|
4660
|
+
export declare interface SmartGridTableChatChannelHeaderConfig extends SmartGridLeftHeaderPanel {
|
|
4661
|
+
showSearch?: boolean;
|
|
4662
|
+
leftChatPanel?: SmartGridLeftHeaderPanel;
|
|
4663
|
+
}
|
|
4664
|
+
|
|
4665
|
+
export declare interface SmartGridTableChatChannelHeaderProps {
|
|
4666
|
+
title?: string;
|
|
4667
|
+
channels?: SmartGridChatChannelItemProps[];
|
|
4668
|
+
selectedChannelOrChatId?: string | number;
|
|
4669
|
+
onBack?: () => void;
|
|
4670
|
+
onChannelSelect?: (channelId: string | number, channel: SmartGridChatChannelItemProps) => void;
|
|
4671
|
+
onMenuClick?: () => void;
|
|
4672
|
+
onSearchClick?: () => void;
|
|
4673
|
+
onMoreClick?: () => void;
|
|
4674
|
+
showChannelList?: boolean;
|
|
4675
|
+
setShowPinnedMsg?: (value: boolean) => void;
|
|
4676
|
+
onThreadClick?: (messageId?: string | number, payload?: SmartGridChatMessage) => void;
|
|
4677
|
+
isSearchOpen?: boolean;
|
|
4678
|
+
headerConfig?: SmartGridTableChatChannelHeaderConfig;
|
|
4679
|
+
showAddChatBtn?: boolean;
|
|
4680
|
+
showCheckbox?: boolean;
|
|
4681
|
+
handleChatName?: SmartGridLeftPanelConfig["handleChatName"];
|
|
4682
|
+
filterChannelsByTitle?: (value: string) => void;
|
|
4683
|
+
loadingChannels?: boolean;
|
|
4684
|
+
selectedChannelInfo?: SmartGridChannel | null;
|
|
4685
|
+
handleToast?: SmartGridHandleToastFn;
|
|
4686
|
+
onPinnedChatClick?: (chatId: string | number, isPinned: boolean) => Promise<boolean>;
|
|
4687
|
+
onDeleteTopics?: () => void;
|
|
4688
|
+
selectedChat?: (string | number)[];
|
|
4689
|
+
handleChatSelect?: (id: string | number) => void;
|
|
4690
|
+
isCreateNewChatOpen?: boolean;
|
|
4691
|
+
setIsCreateNewChatOpen?: Dispatch<SetStateAction<boolean>>;
|
|
4692
|
+
}
|
|
4693
|
+
|
|
4694
|
+
export declare interface SmartGridTableChatRightSectionProps {
|
|
4695
|
+
title: string;
|
|
4696
|
+
chatId: string | number;
|
|
4697
|
+
CreatedBy: string;
|
|
4698
|
+
participants?: SmartGridParticipant[];
|
|
4699
|
+
participantsList?: SmartGridParticipant[];
|
|
4700
|
+
onParticipantsClick?: () => void;
|
|
4701
|
+
messages?: SmartGridChatMessage[];
|
|
4702
|
+
placeholder?: string;
|
|
4703
|
+
showFormatting?: boolean;
|
|
4704
|
+
maxLength?: number;
|
|
4705
|
+
showParticipantsList?: boolean;
|
|
4706
|
+
showPinnedChat?: boolean;
|
|
4707
|
+
showSearch?: boolean;
|
|
4708
|
+
showActionBtn?: boolean;
|
|
4709
|
+
onMessageReply?: (messageId: string | number, chatId: string | number) => void;
|
|
4710
|
+
onMessageBookmark?: (messageId: string | number, chatId: string | number) => void;
|
|
4711
|
+
onMessagePin?: SmartGridOnMessagePin;
|
|
4712
|
+
onMessageMore?: (messageId: string | number, chatId: string | number) => void;
|
|
4713
|
+
onAttachFile?: (file: File) => void;
|
|
4714
|
+
onImageUpload?: (image: File) => void;
|
|
4715
|
+
onEmojiClick?: (emoji: string) => void;
|
|
4716
|
+
setPinnedMessages?: React.Dispatch<React.SetStateAction<SmartGridChatMessage[]>>;
|
|
4717
|
+
className?: string;
|
|
4718
|
+
showDateSeparators?: boolean;
|
|
4719
|
+
autoScroll?: boolean;
|
|
4720
|
+
onThreadClick?: (messageId: string | number, chatId: string | number) => void;
|
|
4721
|
+
messageConfig: SmartGridMessageChatConfig & {
|
|
4722
|
+
loadMessages?: (chatId: string | number, page: number) => Promise<SmartGridChatMessage[] | {
|
|
4723
|
+
messages: SmartGridChatMessage[];
|
|
4724
|
+
noMoreData: boolean;
|
|
4725
|
+
}>;
|
|
4726
|
+
messagesClearedTrigger?: number;
|
|
4727
|
+
loadParticipantsAvatar?: (selectedRadioOption: string, chatId: string | number) => Promise<SmartGridParticipant[]>;
|
|
4728
|
+
messageConfig?: SmartGridMessageConfig;
|
|
4729
|
+
highlightTrigger?: number | null;
|
|
4730
|
+
};
|
|
4731
|
+
inputChatConfig: SmartGridInputChatConfig & {
|
|
4732
|
+
inputConfig?: SmartGridInputConfig & {
|
|
4733
|
+
showQuickAction?: boolean;
|
|
4734
|
+
quickActionLabel?: string;
|
|
4735
|
+
};
|
|
4736
|
+
};
|
|
4737
|
+
chatHeaderConfig: SmartGridHeaderChatConfig;
|
|
4738
|
+
handleToast: (isOpen: boolean, message: string, variant: SmartGridToastVariant) => void;
|
|
4739
|
+
}
|
|
4740
|
+
|
|
4741
|
+
export declare interface SmartGridTableChatSidePanelProps {
|
|
4742
|
+
isOpen: boolean;
|
|
4743
|
+
handleClose: () => void;
|
|
4744
|
+
chatConfiguration: SmartGridChatConfiguration;
|
|
4745
|
+
}
|
|
4746
|
+
|
|
4747
|
+
export declare type SmartGridTableChatWrapper = {
|
|
4748
|
+
isChatOpen: boolean;
|
|
4749
|
+
handleChatClick: () => void;
|
|
4750
|
+
handleChatClose: () => void;
|
|
4751
|
+
chatConfiguration: SmartGridChatConfiguration;
|
|
4752
|
+
};
|
|
4753
|
+
|
|
3346
4754
|
export declare type SmartGridTableComponentProps = SmartGridTableProps;
|
|
3347
4755
|
|
|
3348
4756
|
export declare interface SmartGridTableContentDetailsProps {
|
|
@@ -3368,6 +4776,7 @@ export declare interface SmartGridTableContentDetailsProps {
|
|
|
3368
4776
|
isLeftPinnedRowsAvailable?: boolean;
|
|
3369
4777
|
columnScrollHandlerRef?: MutableRefObject<SmartGridScrollHandler | null>;
|
|
3370
4778
|
isScrollingSynced?: MutableRefObject<boolean>;
|
|
4779
|
+
commentProps?: SmartGridCommentProps;
|
|
3371
4780
|
}
|
|
3372
4781
|
|
|
3373
4782
|
export declare interface SmartGridTableContentProps {
|
|
@@ -3425,6 +4834,15 @@ export declare interface SmartGridTableContentProps {
|
|
|
3425
4834
|
downloadExcelHandler?: () => void;
|
|
3426
4835
|
downloadCSVHandler?: () => void;
|
|
3427
4836
|
pivotConfig?: SmartGridPivotConfig;
|
|
4837
|
+
isChatEnabled?: boolean;
|
|
4838
|
+
isCommentFeatureEnabled?: boolean;
|
|
4839
|
+
isChatOpen?: boolean;
|
|
4840
|
+
handleChatClick?: () => void;
|
|
4841
|
+
handleChatClose?: () => void;
|
|
4842
|
+
chatConfiguration?: SmartGridChatConfiguration;
|
|
4843
|
+
ChatComponent?: (props: SmartGridTableChatWrapper) => JSX.Element;
|
|
4844
|
+
CommentComponent?: FC<SmartGridCommentWrapperProps>;
|
|
4845
|
+
commentProps?: SmartGridCommentProps;
|
|
3428
4846
|
}
|
|
3429
4847
|
|
|
3430
4848
|
export declare interface SmartGridTableContentRendererProps {
|
|
@@ -3659,12 +5077,45 @@ export declare interface SmartGridTableProps extends SmartGridSaveViewCallbackRe
|
|
|
3659
5077
|
* When `true` or undefined (default), normal loading behavior applies.
|
|
3660
5078
|
*/
|
|
3661
5079
|
loadingData?: boolean;
|
|
5080
|
+
isChatEnabled?: boolean;
|
|
5081
|
+
isChatOpen?: boolean;
|
|
5082
|
+
handleChatClick?: () => void;
|
|
5083
|
+
handleChatClose?: () => void;
|
|
5084
|
+
chatConfiguration?: SmartGridChatConfiguration;
|
|
5085
|
+
isCommentFeatureEnabled?: boolean;
|
|
5086
|
+
ChatComponent?: (props: SmartGridTableChatWrapper) => JSX.Element;
|
|
5087
|
+
CommentComponent?: FC<SmartGridCommentWrapperProps>;
|
|
5088
|
+
commentProps?: SmartGridCommentProps;
|
|
3662
5089
|
}
|
|
3663
5090
|
|
|
3664
5091
|
export declare interface SmartGridTableRef {
|
|
3665
5092
|
api: SmartGridAPI;
|
|
3666
5093
|
}
|
|
3667
5094
|
|
|
5095
|
+
/**
|
|
5096
|
+
* SmartGridThreadDeleteState - State for thread deletion
|
|
5097
|
+
*/
|
|
5098
|
+
export declare interface SmartGridThreadDeleteState {
|
|
5099
|
+
cellId: string;
|
|
5100
|
+
data: SmartGridComment[];
|
|
5101
|
+
}
|
|
5102
|
+
|
|
5103
|
+
export declare interface SmartGridThreeDotMenuOption {
|
|
5104
|
+
id: string;
|
|
5105
|
+
label: string;
|
|
5106
|
+
icon?: React.ReactNode;
|
|
5107
|
+
onClick?: () => void;
|
|
5108
|
+
}
|
|
5109
|
+
|
|
5110
|
+
export declare type SmartGridTipTapEditor = {
|
|
5111
|
+
isActive: (name: string, attrs?: Record<string, unknown>) => boolean;
|
|
5112
|
+
on: (event: string, handler: () => void) => void;
|
|
5113
|
+
off: (event: string, handler: () => void) => void;
|
|
5114
|
+
state: Record<string, unknown>;
|
|
5115
|
+
};
|
|
5116
|
+
|
|
5117
|
+
export declare type SmartGridToastVariant = "info" | "success" | "warning" | "error";
|
|
5118
|
+
|
|
3668
5119
|
export declare interface SmartGridToggleRenderProps {
|
|
3669
5120
|
render: (state: SmartGridToggleRenderState) => ReactNode;
|
|
3670
5121
|
}
|
|
@@ -3675,6 +5126,16 @@ export declare interface SmartGridToggleRenderState {
|
|
|
3675
5126
|
toggleMenu: () => void;
|
|
3676
5127
|
}
|
|
3677
5128
|
|
|
5129
|
+
export declare interface SmartGridToolbarItem {
|
|
5130
|
+
icon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
5131
|
+
ariaLabel: string;
|
|
5132
|
+
command: string;
|
|
5133
|
+
}
|
|
5134
|
+
|
|
5135
|
+
export declare type SmartGridToolbarItemKey = "bold" | "italic" | "link" | "bulletList" | "orderedList" | "strike" | "highlight" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
5136
|
+
|
|
5137
|
+
export declare type SmartGridToolbarItems = Record<SmartGridToolbarItemKey, SmartGridToolbarItem>;
|
|
5138
|
+
|
|
3678
5139
|
export declare interface SmartGridTooltipButton {
|
|
3679
5140
|
label: string;
|
|
3680
5141
|
type: "default" | "primary" | "secondary";
|
|
@@ -3682,6 +5143,7 @@ export declare interface SmartGridTooltipButton {
|
|
|
3682
5143
|
}
|
|
3683
5144
|
|
|
3684
5145
|
export declare interface SmartGridTooltipConfig {
|
|
5146
|
+
description?: string;
|
|
3685
5147
|
title: string;
|
|
3686
5148
|
targetRef: RefObject<HTMLElement>;
|
|
3687
5149
|
varient?: SmartGridTooltipVariant;
|
|
@@ -3731,9 +5193,10 @@ export declare interface SmartGridTooltipProps extends SmartGridTooltipConfig {
|
|
|
3731
5193
|
children: ReactNode;
|
|
3732
5194
|
forceShowTooltip?: boolean;
|
|
3733
5195
|
className?: string;
|
|
5196
|
+
description?: string;
|
|
3734
5197
|
}
|
|
3735
5198
|
|
|
3736
|
-
export declare type SmartGridTooltipVariant = "primary" | "secondary" | "tertiary";
|
|
5199
|
+
export declare type SmartGridTooltipVariant = "primary" | "secondary" | "tertiary" | "feature";
|
|
3737
5200
|
|
|
3738
5201
|
export declare type SmartGridUpdateData = {
|
|
3739
5202
|
data: SmartGridRowData;
|
|
@@ -3753,7 +5216,7 @@ declare interface SmartGridUpdatedPageSizeRef {
|
|
|
3753
5216
|
current: number;
|
|
3754
5217
|
}
|
|
3755
5218
|
|
|
3756
|
-
export declare interface SmartGridUpdateRefParams extends SmartGridCallbackRefCurrent, SmartGridSaveViewCallbackRefCurrent {
|
|
5219
|
+
export declare interface SmartGridUpdateRefParams extends SmartGridCallbackRefCurrent, SmartGridSaveViewCallbackRefCurrent, SmartGridClickCallbackRefCurrent {
|
|
3757
5220
|
downloadExcelHandler?: () => void;
|
|
3758
5221
|
downloadCSVHandler?: () => void;
|
|
3759
5222
|
copyToClipboardHandler?: () => void;
|
|
@@ -3779,6 +5242,7 @@ export declare interface SmartGridUpdateRefReturn {
|
|
|
3779
5242
|
exportCallbackRef: MutableRefObject<SmartGridExportCallbackRefCurrent>;
|
|
3780
5243
|
saveViewCallbackRef: MutableRefObject<SmartGridSaveViewCallbackRefCurrent>;
|
|
3781
5244
|
saveViewOptionsRef: MutableRefObject<SmartGridSaveViewOptionsRefCurrent>;
|
|
5245
|
+
clickCallbackRef: MutableRefObject<SmartGridClickCallbackRefCurrent>;
|
|
3782
5246
|
}
|
|
3783
5247
|
|
|
3784
5248
|
export declare type SmartGridValueFormatterConfig = {
|