impact-ui 4.0.6 → 4.0.7-alpha.2
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/_virtual/index3.js +4 -2
- package/dist/_virtual/index4.js +3 -3
- package/dist/_virtual/index5.js +2 -4
- package/dist/components/Accordion/index.d.ts.map +1 -1
- package/dist/components/Accordion/index.js +1 -0
- package/dist/components/BottomSheet/index.d.ts.map +1 -1
- package/dist/components/BottomSheet/index.js +27 -21
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +1 -0
- package/dist/components/Chatbot/Chatbot.types.d.ts +12 -1
- package/dist/components/Chatbot/Chatbot.types.d.ts.map +1 -1
- package/dist/components/Chatbot/chatInput.d.ts.map +1 -1
- package/dist/components/Chatbot/chatInput.js +22 -4
- package/dist/components/Chatbot/chatbotModuleMenu.d.ts +1 -1
- package/dist/components/Chatbot/chatbotModuleMenu.d.ts.map +1 -1
- package/dist/components/Chatbot/chatbotModuleMenu.js +162 -186
- package/dist/components/Chatbot/conversationScreen.d.ts +1 -1
- package/dist/components/Chatbot/conversationScreen.d.ts.map +1 -1
- package/dist/components/Chatbot/conversationScreen.js +7 -3
- package/dist/components/Chatbot/customScreen.d.ts +1 -1
- package/dist/components/Chatbot/customScreen.d.ts.map +1 -1
- package/dist/components/Chatbot/customScreen.js +26 -25
- package/dist/components/Chatbot/index.d.ts.map +1 -1
- package/dist/components/Chatbot/index.js +340 -242
- package/dist/components/Chatbot/newChatComponent.d.ts +1 -1
- package/dist/components/Chatbot/newChatComponent.d.ts.map +1 -1
- package/dist/components/Chatbot/newChatComponent.js +5 -2
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Chips/index.js +1 -1
- package/dist/components/CommentsPanel/CommentsPanel.impl.d.ts +2 -6
- package/dist/components/CommentsPanel/CommentsPanel.impl.d.ts.map +1 -1
- package/dist/components/CommentsPanel/CommentsPanel.impl.js +7 -2
- package/dist/components/CommentsPanel/CommentsPanel.types.d.ts +2 -2
- package/dist/components/CommentsPanel/CommentsPanel.types.d.ts.map +1 -1
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/DateRangePicker/index.js +1 -1
- package/dist/components/FilterPanel/index.js +1 -1
- package/dist/components/Header/index.js +1 -1
- package/dist/components/HomePage/index.js +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.js +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutModal.js +1 -1
- package/dist/components/KeyboardShortCuts/allSetBox.js +1 -1
- package/dist/components/KeyboardShortCuts/index.js +1 -1
- package/dist/components/KeyboardShortCuts/tutorial.js +1 -1
- package/dist/components/Menu/IconMenuItem.d.ts.map +1 -1
- package/dist/components/Menu/IconMenuItem.js +2 -1
- package/dist/components/Menu/MenuHeaderInfo.js +1 -1
- package/dist/components/Menu/NestedMenuItem.js +2 -2
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Menu/nestedMenuItemsFromObject.js +1 -1
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/MonthPicker/index.js +1 -1
- package/dist/components/MonthRangePicker/index.js +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.js +1 -1
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/Panel/index.js +1 -1
- package/dist/components/Prompt/index.js +1 -1
- package/dist/components/RadioButtonGroup/index.js +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Stepper/index.js +1 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Table/tableFunctions.d.ts.map +1 -1
- package/dist/components/Table/tableFunctions.js +105 -174
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.js +1 -1
- package/dist/components/TableOld/index.d.ts.map +1 -1
- package/dist/components/TableOld/index.js +2 -1
- package/dist/components/TableOld/tableFunctions.d.ts.map +1 -1
- package/dist/components/TableOld/tableFunctions.js +104 -173
- package/dist/components/TextArea/index.js +1 -1
- package/dist/components/common/HelperText/index.js +1 -1
- package/dist/hooks/useDraggableResizable.d.ts +104 -0
- package/dist/hooks/useDraggableResizable.d.ts.map +1 -0
- package/dist/hooks/useDraggableResizable.js +323 -0
- package/dist/hooks/useMediaQuery.d.ts +9 -0
- package/dist/hooks/useMediaQuery.d.ts.map +1 -0
- package/dist/mcp-component-registry.json +1 -1
- package/dist/node_modules/@mui/system/colorManipulator.js +2 -2
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/stories/LocaleDictionaryCollapse.d.ts +6 -0
- package/dist/stories/LocaleDictionaryCollapse.d.ts.map +1 -0
- package/dist/utils/assetBase.d.ts +1 -0
- package/dist/utils/assetBase.d.ts.map +1 -1
- package/dist/utils/assetBase.js +4 -7
- package/dist/utils/assetBaseDefault.d.ts +11 -0
- package/dist/utils/assetBaseDefault.d.ts.map +1 -0
- package/dist/utils/assetBaseDefault.js +9 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/onResize.d.ts +24 -0
- package/dist/utils/onResize.d.ts.map +1 -0
- package/dist/utils/onResize.js +28 -0
- package/package.json +4 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableFunctions.d.ts","sourceRoot":"","sources":["../../../src/components/Table/tableFunctions.tsx"],"names":[],"mappings":"AAoDA,eAAO,MAAM,oBAAoB,GAAI,WAAM,SAQ1C,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,WAAM,EAAE,aAAQ,SAK5C,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,WAAM,SAK9C,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,eAAU,EAAE,WAAM,EAAE,QAAG,SAM/C,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,WAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsItC,CAAC;
|
|
1
|
+
{"version":3,"file":"tableFunctions.d.ts","sourceRoot":"","sources":["../../../src/components/Table/tableFunctions.tsx"],"names":[],"mappings":"AAoDA,eAAO,MAAM,oBAAoB,GAAI,WAAM,SAQ1C,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,WAAM,EAAE,aAAQ,SAK5C,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,WAAM,SAK9C,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,eAAU,EAAE,WAAM,EAAE,QAAG,SAM/C,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,WAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsItC,CAAC;AA+DF,eAAO,MAAM,OAAO,mFAixClB,CAAC;AAEH,eAAO,MAAM,yBAAyB,GAAI,iBAAY,WAgBrD,CAAC"}
|
|
@@ -182,6 +182,34 @@ const getMainMenuItems = (params) => {
|
|
|
182
182
|
});
|
|
183
183
|
return columnMenuItems;
|
|
184
184
|
};
|
|
185
|
+
const filterColumnsByText = (columns, searchText) => {
|
|
186
|
+
if (!searchText) return columns;
|
|
187
|
+
return columns.map((column) => {
|
|
188
|
+
var _a;
|
|
189
|
+
const matches = (_a = column.headerName) == null ? void 0 : _a.toLowerCase().includes(searchText);
|
|
190
|
+
if (matches) {
|
|
191
|
+
return {
|
|
192
|
+
...column,
|
|
193
|
+
isVisible: column.isVisible
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
const filteredChildren = column.children ? filterColumnsByText(column.children, searchText) : null;
|
|
197
|
+
if ((filteredChildren == null ? void 0 : filteredChildren.length) > 0) {
|
|
198
|
+
return {
|
|
199
|
+
...column,
|
|
200
|
+
children: filteredChildren,
|
|
201
|
+
isVisible: column.isVisible
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
return null;
|
|
205
|
+
}).filter(Boolean);
|
|
206
|
+
};
|
|
207
|
+
const isColumnTreeVisible = (columns) => columns.some(
|
|
208
|
+
(column) => {
|
|
209
|
+
var _a;
|
|
210
|
+
return ((_a = column.children) == null ? void 0 : _a.length) > 0 ? isColumnTreeVisible(column.children) : column.isVisible;
|
|
211
|
+
}
|
|
212
|
+
);
|
|
185
213
|
const SortableColumnItem = ({ column, level, renderFn, dragIconClass, onToggle, ...props }) => {
|
|
186
214
|
const { attributes, listeners, setNodeRef, transform, transition, isDragging } = useSortable({
|
|
187
215
|
id: column.colId
|
|
@@ -237,6 +265,7 @@ const Columns = forwardRef((props, ref) => {
|
|
|
237
265
|
const [deleteView, setDeleteView] = useState(null);
|
|
238
266
|
const [selectedView, setSelectedView] = useState(null);
|
|
239
267
|
const isColumnPinnedRef = useRef(false);
|
|
268
|
+
const searchTextRef = useRef("");
|
|
240
269
|
useEffect(() => {
|
|
241
270
|
const views = props.savedViewsOptions ?? [];
|
|
242
271
|
setSavedViewsOptions(views);
|
|
@@ -324,10 +353,11 @@ const Columns = forwardRef((props, ref) => {
|
|
|
324
353
|
},
|
|
325
354
|
{ frozColumn: [], scrollColumn: [] }
|
|
326
355
|
);
|
|
356
|
+
const activeSearchText = searchTextRef.current;
|
|
327
357
|
setFrozenColumn(frozColumn);
|
|
328
|
-
setFilteredFrozenColumns(frozColumn);
|
|
358
|
+
setFilteredFrozenColumns(filterColumnsByText(frozColumn, activeSearchText));
|
|
329
359
|
setScrollableColumn(scrollColumn);
|
|
330
|
-
setFilteredScrollableColumns(scrollColumn);
|
|
360
|
+
setFilteredScrollableColumns(filterColumnsByText(scrollColumn, activeSearchText));
|
|
331
361
|
}, [getColumnDefs, ref, props.column]);
|
|
332
362
|
const debouncedUpdateColumnState = useMemo(
|
|
333
363
|
() => debounce(updateColumnState, 100),
|
|
@@ -376,131 +406,62 @@ const Columns = forwardRef((props, ref) => {
|
|
|
376
406
|
}, [filteredFrozenColumns, filteredScrollableColumns]);
|
|
377
407
|
const handleSearchChange = (e) => {
|
|
378
408
|
const searchText2 = e.target.value.toLowerCase();
|
|
379
|
-
|
|
380
|
-
return columns.map((column) => {
|
|
381
|
-
const matches = column.headerName.toLowerCase().includes(searchText3);
|
|
382
|
-
const filteredChildren = column.children ? filterColumns(column.children, searchText3) : null;
|
|
383
|
-
if (matches || (filteredChildren == null ? void 0 : filteredChildren.length) > 0) {
|
|
384
|
-
return {
|
|
385
|
-
...column,
|
|
386
|
-
children: filteredChildren,
|
|
387
|
-
isVisible: column.isVisible
|
|
388
|
-
};
|
|
389
|
-
}
|
|
390
|
-
return null;
|
|
391
|
-
}).filter(Boolean);
|
|
392
|
-
};
|
|
393
|
-
const filteredFrozenColumns2 = filterColumns(frozenColumn, searchText2);
|
|
394
|
-
const filteredScrollableColumns2 = filterColumns(scrollableColumn, searchText2);
|
|
409
|
+
searchTextRef.current = searchText2;
|
|
395
410
|
setSearchText(searchText2);
|
|
396
|
-
setFilteredFrozenColumns(
|
|
397
|
-
setFilteredScrollableColumns(
|
|
411
|
+
setFilteredFrozenColumns(filterColumnsByText(frozenColumn, searchText2));
|
|
412
|
+
setFilteredScrollableColumns(filterColumnsByText(scrollableColumn, searchText2));
|
|
398
413
|
};
|
|
399
414
|
useEffect(() => {
|
|
400
|
-
const isAnyScrollableColumnVisible = filteredScrollableColumns
|
|
401
|
-
|
|
402
|
-
return column.children.some((child) => child.isVisible);
|
|
403
|
-
}
|
|
404
|
-
return column.isVisible;
|
|
405
|
-
});
|
|
406
|
-
const isAnyFrozenColumnVisible = filteredFrozenColumns.some((column) => {
|
|
407
|
-
if (column.children) {
|
|
408
|
-
return column.children.some((child) => child.isVisible);
|
|
409
|
-
}
|
|
410
|
-
return column.isVisible;
|
|
411
|
-
});
|
|
415
|
+
const isAnyScrollableColumnVisible = isColumnTreeVisible(filteredScrollableColumns);
|
|
416
|
+
const isAnyFrozenColumnVisible = isColumnTreeVisible(filteredFrozenColumns);
|
|
412
417
|
setMainChecked(isAnyScrollableColumnVisible);
|
|
413
418
|
setAllColumnvisisbility(isAnyFrozenColumnVisible || isAnyScrollableColumnVisible);
|
|
414
419
|
}, [filteredFrozenColumns, filteredScrollableColumns]);
|
|
415
|
-
const
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
const
|
|
427
|
-
var _a2, _b2;
|
|
420
|
+
const setSubtreeVisibility = (columns, visibility) => columns.map((column) => {
|
|
421
|
+
var _a2, _b2, _c2;
|
|
422
|
+
(_b2 = (_a2 = ref == null ? void 0 : ref.current) == null ? void 0 : _a2.api) == null ? void 0 : _b2.setColumnVisible(column.colId, visibility);
|
|
423
|
+
return {
|
|
424
|
+
...column,
|
|
425
|
+
isVisible: visibility,
|
|
426
|
+
children: ((_c2 = column.children) == null ? void 0 : _c2.length) > 0 ? setSubtreeVisibility(column.children, visibility) : column.children
|
|
427
|
+
};
|
|
428
|
+
});
|
|
429
|
+
const applyVisibilityToggle = (columns, colId) => {
|
|
430
|
+
let changed = false;
|
|
431
|
+
const updated = columns.map((column) => {
|
|
432
|
+
var _a2, _b2, _c2, _d2, _e2, _f2;
|
|
433
|
+
if (changed) return column;
|
|
428
434
|
if (column.colId === colId) {
|
|
429
|
-
|
|
430
|
-
const
|
|
431
|
-
(_a2 = ref == null ? void 0 : ref.current) == null ? void 0 : _a2.api.setColumnVisible(column.colId, newVisibility);
|
|
435
|
+
changed = true;
|
|
436
|
+
const newVisibility = !column.isVisible;
|
|
437
|
+
(_b2 = (_a2 = ref == null ? void 0 : ref.current) == null ? void 0 : _a2.api) == null ? void 0 : _b2.setColumnVisible(column.colId, newVisibility);
|
|
432
438
|
return {
|
|
433
439
|
...column,
|
|
434
440
|
isVisible: newVisibility,
|
|
435
|
-
children:
|
|
441
|
+
children: ((_c2 = column.children) == null ? void 0 : _c2.length) > 0 ? setSubtreeVisibility(column.children, newVisibility) : column.children
|
|
436
442
|
};
|
|
437
443
|
}
|
|
438
|
-
if (column.children) {
|
|
439
|
-
const
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
children: updatedChildren
|
|
446
|
-
};
|
|
444
|
+
if (((_d2 = column.children) == null ? void 0 : _d2.length) > 0) {
|
|
445
|
+
const result = applyVisibilityToggle(column.children, colId);
|
|
446
|
+
if (!result.changed) return column;
|
|
447
|
+
changed = true;
|
|
448
|
+
const isAnyChildVisible = isColumnTreeVisible(result.columns);
|
|
449
|
+
(_f2 = (_e2 = ref == null ? void 0 : ref.current) == null ? void 0 : _e2.api) == null ? void 0 : _f2.setColumnVisible(column.colId, isAnyChildVisible);
|
|
450
|
+
return { ...column, isVisible: isAnyChildVisible, children: result.columns };
|
|
447
451
|
}
|
|
448
452
|
return column;
|
|
449
453
|
});
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
const newCols = updatedColumns.filter((col) => !prevColIds.has(col.colId));
|
|
457
|
-
return [...merged, ...newCols];
|
|
458
|
-
});
|
|
454
|
+
return { columns: updated, changed };
|
|
455
|
+
};
|
|
456
|
+
const toggleColumnVisibilityFrozen = (colId) => {
|
|
457
|
+
const { columns } = applyVisibilityToggle(frozenColumn, colId);
|
|
458
|
+
setFrozenColumn(columns);
|
|
459
|
+
setFilteredFrozenColumns(filterColumnsByText(columns, searchTextRef.current));
|
|
459
460
|
};
|
|
460
461
|
const toggleColumnVisibilityScroll = (colId) => {
|
|
461
|
-
const
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
(_a2 = ref == null ? void 0 : ref.current) == null ? void 0 : _a2.api.setColumnVisible(column.colId, parentVisibility);
|
|
465
|
-
return {
|
|
466
|
-
...column,
|
|
467
|
-
isVisible: parentVisibility,
|
|
468
|
-
children: updatedChildren
|
|
469
|
-
};
|
|
470
|
-
});
|
|
471
|
-
const updateVisibility = (columns, parentVisibility = null) => columns.map((column) => {
|
|
472
|
-
var _a2, _b2;
|
|
473
|
-
if (column.colId === colId) {
|
|
474
|
-
const newVisibility = parentVisibility !== null ? parentVisibility : !column.isVisible;
|
|
475
|
-
const updatedChildren = column.children ? updateChildrenVisibility(column.children, newVisibility) : null;
|
|
476
|
-
(_a2 = ref == null ? void 0 : ref.current) == null ? void 0 : _a2.api.setColumnVisible(column.colId, newVisibility);
|
|
477
|
-
return {
|
|
478
|
-
...column,
|
|
479
|
-
isVisible: newVisibility,
|
|
480
|
-
children: updatedChildren
|
|
481
|
-
};
|
|
482
|
-
}
|
|
483
|
-
if (column.children) {
|
|
484
|
-
const updatedChildren = updateVisibility(column.children);
|
|
485
|
-
const isAnyChildVisible = updatedChildren.some((child) => child.isVisible);
|
|
486
|
-
(_b2 = ref == null ? void 0 : ref.current) == null ? void 0 : _b2.api.setColumnVisible(column.colId, isAnyChildVisible);
|
|
487
|
-
return {
|
|
488
|
-
...column,
|
|
489
|
-
isVisible: isAnyChildVisible,
|
|
490
|
-
children: updatedChildren
|
|
491
|
-
};
|
|
492
|
-
}
|
|
493
|
-
return column;
|
|
494
|
-
});
|
|
495
|
-
const updatedColumns = updateVisibility(filteredScrollableColumns);
|
|
496
|
-
setFilteredScrollableColumns(updatedColumns);
|
|
497
|
-
setScrollableColumn((prev) => {
|
|
498
|
-
const updatedMap = Object.fromEntries(updatedColumns.map((col) => [col.colId, col]));
|
|
499
|
-
const merged = prev.map((col) => updatedMap[col.colId] ? updatedMap[col.colId] : col);
|
|
500
|
-
const prevColIds = new Set(prev.map((col) => col.colId));
|
|
501
|
-
const newCols = updatedColumns.filter((col) => !prevColIds.has(col.colId));
|
|
502
|
-
return [...merged, ...newCols];
|
|
503
|
-
});
|
|
462
|
+
const { columns } = applyVisibilityToggle(scrollableColumn, colId);
|
|
463
|
+
setScrollableColumn(columns);
|
|
464
|
+
setFilteredScrollableColumns(filterColumnsByText(columns, searchTextRef.current));
|
|
504
465
|
};
|
|
505
466
|
const toggleScrollableCollapse = (e) => {
|
|
506
467
|
e.stopPropagation();
|
|
@@ -510,75 +471,45 @@ const Columns = forwardRef((props, ref) => {
|
|
|
510
471
|
e.stopPropagation();
|
|
511
472
|
setCollapsedcolumn(!collapsedColumn);
|
|
512
473
|
};
|
|
474
|
+
const applyBulkVisibility = (columns, visibility, allowedIds) => columns.map((column) => {
|
|
475
|
+
var _a2, _b2, _c2, _d2, _e2;
|
|
476
|
+
const isAllowed = !allowedIds || allowedIds.has(column.colId);
|
|
477
|
+
if (((_a2 = column.children) == null ? void 0 : _a2.length) > 0) {
|
|
478
|
+
const children = applyBulkVisibility(
|
|
479
|
+
column.children,
|
|
480
|
+
visibility,
|
|
481
|
+
isAllowed ? null : allowedIds
|
|
482
|
+
);
|
|
483
|
+
const isAnyChildVisible = isColumnTreeVisible(children);
|
|
484
|
+
(_c2 = (_b2 = ref == null ? void 0 : ref.current) == null ? void 0 : _b2.api) == null ? void 0 : _c2.setColumnVisible(column.colId, isAnyChildVisible);
|
|
485
|
+
return { ...column, isVisible: isAnyChildVisible, children };
|
|
486
|
+
}
|
|
487
|
+
if (!isAllowed) return column;
|
|
488
|
+
(_e2 = (_d2 = ref == null ? void 0 : ref.current) == null ? void 0 : _d2.api) == null ? void 0 : _e2.setColumnVisible(column.colId, visibility);
|
|
489
|
+
return { ...column, isVisible: visibility };
|
|
490
|
+
});
|
|
513
491
|
const onMainCheckboxChange = () => {
|
|
514
|
-
|
|
515
|
-
const
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
(_b2 = (_a2 = ref == null ? void 0 : ref.current) == null ? void 0 : _a2.api) == null ? void 0 : _b2.setColumnVisible(column.colId, visibility);
|
|
519
|
-
if (column.children) {
|
|
520
|
-
updateVisibility(column.children, visibility);
|
|
521
|
-
}
|
|
522
|
-
return {
|
|
523
|
-
...column,
|
|
524
|
-
isVisible: visibility,
|
|
525
|
-
children: column.children ? updateVisibility(column.children, visibility) : null
|
|
526
|
-
};
|
|
527
|
-
});
|
|
528
|
-
};
|
|
529
|
-
const updatedColumns = updateVisibility(filteredScrollableColumns, !mainChecked);
|
|
530
|
-
setFilteredScrollableColumns(updatedColumns);
|
|
531
|
-
setScrollableColumn((prev) => {
|
|
532
|
-
const updatedMap = Object.fromEntries(updatedColumns.map((col) => [col.colId, col]));
|
|
533
|
-
const merged = prev.map((col) => updatedMap[col.colId] ? updatedMap[col.colId] : col);
|
|
534
|
-
const prevColIds = new Set(prev.map((col) => col.colId));
|
|
535
|
-
const newCols = updatedColumns.filter((col) => !prevColIds.has(col.colId));
|
|
536
|
-
return [...merged, ...newCols];
|
|
537
|
-
});
|
|
492
|
+
const listedIds = new Set(getAllColumnIds(filteredScrollableColumns));
|
|
493
|
+
const updatedColumns = applyBulkVisibility(scrollableColumn, !mainChecked, listedIds);
|
|
494
|
+
setScrollableColumn(updatedColumns);
|
|
495
|
+
setFilteredScrollableColumns(filterColumnsByText(updatedColumns, searchTextRef.current));
|
|
538
496
|
};
|
|
539
497
|
const onAllColumnCheckBoxChange = () => {
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
const
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
}
|
|
549
|
-
return {
|
|
550
|
-
...column,
|
|
551
|
-
isVisible: visibility,
|
|
552
|
-
children: column.children ? updateColumnVisibility(column.children, visibility) : null
|
|
553
|
-
};
|
|
554
|
-
});
|
|
555
|
-
};
|
|
556
|
-
const updatedFrozenColumns = updateColumnVisibility(
|
|
557
|
-
filteredFrozenColumns,
|
|
558
|
-
!allColumnVisibility
|
|
498
|
+
const visibility = !allColumnVisibility;
|
|
499
|
+
const listedFrozenIds = new Set(getAllColumnIds(filteredFrozenColumns));
|
|
500
|
+
const listedScrollableIds = new Set(getAllColumnIds(filteredScrollableColumns));
|
|
501
|
+
const updatedFrozenColumns = applyBulkVisibility(frozenColumn, visibility, listedFrozenIds);
|
|
502
|
+
const updatedScrollableColumns = applyBulkVisibility(
|
|
503
|
+
scrollableColumn,
|
|
504
|
+
visibility,
|
|
505
|
+
listedScrollableIds
|
|
559
506
|
);
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
507
|
+
setFrozenColumn(updatedFrozenColumns);
|
|
508
|
+
setScrollableColumn(updatedScrollableColumns);
|
|
509
|
+
setFilteredFrozenColumns(filterColumnsByText(updatedFrozenColumns, searchTextRef.current));
|
|
510
|
+
setFilteredScrollableColumns(
|
|
511
|
+
filterColumnsByText(updatedScrollableColumns, searchTextRef.current)
|
|
563
512
|
);
|
|
564
|
-
setFilteredFrozenColumns(updatedFrozenColumns);
|
|
565
|
-
setFilteredScrollableColumns(updatedScrollableColumns);
|
|
566
|
-
setFrozenColumn((prev) => {
|
|
567
|
-
const updatedMap = Object.fromEntries(updatedFrozenColumns.map((col) => [col.colId, col]));
|
|
568
|
-
const merged = prev.map((col) => updatedMap[col.colId] ? updatedMap[col.colId] : col);
|
|
569
|
-
const prevColIds = new Set(prev.map((col) => col.colId));
|
|
570
|
-
const newCols = updatedFrozenColumns.filter((col) => !prevColIds.has(col.colId));
|
|
571
|
-
return [...merged, ...newCols];
|
|
572
|
-
});
|
|
573
|
-
setScrollableColumn((prev) => {
|
|
574
|
-
const updatedMap = Object.fromEntries(
|
|
575
|
-
updatedScrollableColumns.map((col) => [col.colId, col])
|
|
576
|
-
);
|
|
577
|
-
const merged = prev.map((col) => updatedMap[col.colId] ? updatedMap[col.colId] : col);
|
|
578
|
-
const prevColIds = new Set(prev.map((col) => col.colId));
|
|
579
|
-
const newCols = updatedScrollableColumns.filter((col) => !prevColIds.has(col.colId));
|
|
580
|
-
return [...merged, ...newCols];
|
|
581
|
-
});
|
|
582
513
|
};
|
|
583
514
|
const toggleScrollColumnCollapse = (colId) => {
|
|
584
515
|
setCollapsedScrollColumns((prev) => ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('@keyframes ia-shimmer-horizontal{0%{background-position:100% 0}to{background-position:0 0}}@keyframes ia-shimmer-vertical{0%{background-position:0 100%}to{background-position:0 0}}@property --ia-shimmer-angle{syntax:"<angle>";inherits:false;initial-value:0deg}@keyframes ia-shimmer-circular{0%{--ia-shimmer-angle:0deg}to{--ia-shimmer-angle:360deg}}.ia-shimmer{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(90deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer{animation:none;background-image:linear-gradient(90deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--ltr{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(90deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--ltr{animation:none;background-image:linear-gradient(90deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--rtl{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:reverse;background-color:#e8edf5;background-image:linear-gradient(270deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--rtl{animation:none;background-image:linear-gradient(270deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--btt{animation:ia-shimmer-vertical 1.6s ease-in-out infinite;animation-direction:reverse;background-color:#e8edf5;background-image:linear-gradient(0deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:100% 300%}@media (prefers-reduced-motion:reduce){.ia-shimmer--btt{animation:none;background-image:linear-gradient(0deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--ttb{animation:ia-shimmer-vertical 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(0deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:100% 300%}@media (prefers-reduced-motion:reduce){.ia-shimmer--ttb{animation:none;background-image:linear-gradient(0deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--circular{background-color:#e8edf5;background-repeat:no-repeat;--ia-shimmer-angle:0deg;animation:ia-shimmer-circular 1.6s linear infinite;background-image:conic-gradient(from var(--ia-shimmer-angle),#eceef4 0deg,#e8edf5 80deg,#d5dbe8 160deg,#e8edf5 260deg,#eceef4 1turn);background-size:100% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--circular{animation:none;background-image:conic-gradient(from 0deg,#eceef4,#e8edf5,#d5dbe8,#e8edf5 1turn)}}:root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px;--ia-modal-backdrop:#0d152ccc}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}.table-left-panel-container{background:#fff;border-radius:16px;box-shadow:12px 13px 45px -1px #0000001a;flex-shrink:0;max-width:350px;overflow:hidden;width:350px}.table-left-panel-container:before{background:linear-gradient(180deg,#4259ee99,#4259ee33,#4259ee00);border-radius:16px;content:"";top:0;right:0;bottom:0;left:0;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;padding:1px;pointer-events:none;position:absolute}.table-left-panel-container .ia-styles.ia-btn.ia-btn-tertiary,.table-left-panel-container .ia-styles.ia-btn.ia-btn-tertiary:hover{background:none!important;box-shadow:none!important}.chat-header-navigation{align-items:center;background:#fff;border-bottom:1px solid #d9dde7;border-top-left-radius:10px;border-top-right-radius:10px;display:flex;justify-content:space-between;padding:12px 16px}.chat-header-navigation .nav-left{align-items:center;display:flex;gap:7px}.chat-header-navigation .nav-left button{background:none;border:none!important;box-shadow:none}.chat-header-navigation .nav-title{color:#0d152c;font-size:16px;font-weight:800;line-height:24px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:130px}.chat-header-navigation .nav-right{align-items:center;display:flex;gap:8px;position:relative}.chat-header-navigation .nav-right button{background:none;border:none!important;box-shadow:none}.chat-header-navigation .nav-icon-button{align-items:center;background:#0000;border:none;border-radius:6px;color:#7a8294;cursor:pointer;display:flex;height:20px;justify-content:center;transition:all .2s ease;width:20px}.chat-header-navigation .nav-icon-button:hover{color:#4259ee}.chat-header-navigation .nav-icon-button:focus{outline-offset:1px}.chat-header-navigation .chat-button{background:#4259ee!important;border-radius:8px!important;box-shadow:none!important;color:#fff!important;font-size:14px!important;font-weight:500!important;height:32px;padding:6px 12px!important;width:77px}.chat-header-navigation .chat-button:hover{background:#2b44ec!important}.chat-header-navigation .chat-button .ia-btn-icon{margin-right:4px}.chat-header-navigation .impact_inputbox_container_with_icons{width:100%}.channel_list{background:#f2f4fb}.channel_list,.chat-channel-item,.chat_list{align-items:baseline;border-radius:8px;cursor:pointer;display:flex;gap:12px;padding:12px 16px;transition:background-color .2s ease}.channel_list .ia-styles.ia-avatar,.chat-channel-item .ia-styles.ia-avatar,.chat_list .ia-styles.ia-avatar{background:#7a8294;border-radius:16px}.channel_list:hover,.chat-channel-item:hover,.chat_list:hover{background:#eceefd}.channel_list:hover .ia-styles.ia-avatar,.channel_list:hover .unread-badge,.chat-channel-item:hover .ia-styles.ia-avatar,.chat-channel-item:hover .unread-badge,.chat_list:hover .ia-styles.ia-avatar,.chat_list:hover .unread-badge{background:#4259ee}.channel_list.selected,.chat-channel-item.selected,.chat_list.selected{background:#eceefd}.channel_list.selected .ia-styles.ia-avatar,.channel_list.selected .unread-badge,.chat-channel-item.selected .ia-styles.ia-avatar,.chat-channel-item.selected .unread-badge,.chat_list.selected .ia-styles.ia-avatar,.chat_list.selected .unread-badge{background:#4259ee}.channel_list.muted,.chat-channel-item.muted,.chat_list.muted{opacity:.7}.channel_list:focus,.chat-channel-item:focus,.chat_list:focus{outline-offset:-2px}.channel_list:last-child,.chat-channel-item:last-child,.chat_list:last-child{border-bottom:none}.channel-checkbox{align-items:center;display:flex;padding-top:2px}.channel-checkbox input[type=checkbox]{accent-color:#4259ee;border:1px solid #d9dde7;border-radius:3px;cursor:pointer;height:16px;width:16px}.channel-checkbox input[type=checkbox]:checked{background:#4259ee;border-color:#4259ee}.channel-avatar{border-radius:16px;flex-shrink:0;margin-top:2px}.channel-avatar .ia-avatar{font-size:14px!important;font-weight:600!important;height:32px!important;width:32px!important}.channel-content{flex:1;min-width:0}.channel-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:4px}.channel-title{color:#0d152c;flex:1;font-size:16px;font-weight:600;height:24px;line-height:24px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-meta.selected{background:#eceefd}.muted-icon{color:#7a8294;font-size:16px!important}.unread-badge{align-items:center;background:#7a8294;border-radius:10px;color:#fff;display:flex;font-size:10px;font-weight:400;height:18px;justify-content:center;line-height:1;min-width:18px;padding:2px 6px}.channel-subtitle{color:#7a8294;margin:0 0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-subtitle,.channel-time{font-size:12px;font-weight:500;line-height:16px}.channel-time{color:#b4bac7}@media (max-width:768px){.chat-header-navigation .nav-title{font-size:15px}.chat-header-navigation .chat-button{font-size:13px!important;padding:4px 8px!important}.chat-channel-item{padding:10px 12px}.channel-title{font-size:13px}.channel-subtitle{font-size:12px}}.table-left-panel-container{background-image:url(https://impact-kit.devs.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/tableChat_bg.svg);background-position:50%;background-repeat:repeat;background-size:cover;box-shadow:0 1px 3px #0000001a;position:relative}.chat-header-navigation{background:#0000;border-bottom-color:#d9dde7;box-shadow:0 1px 3px #0000001a;height:64px;overflow:hidden;padding-left:16px;position:relative}.nav-title{color:#fff}.chat-channel-list{display:flex;flex-direction:column;gap:12px;margin:8px;max-height:calc(100vh - 150px);overflow-y:auto}.chat-channel-list .no-channels-found-container{align-items:center;background:#f2f4fb;border-radius:8px;display:flex;flex-direction:column;gap:12px;justify-content:center;padding:12px}.chat-channel-list .no-channels-found-container .no-channels-found{color:#0d152c;font-size:16px;font-weight:600}.chat-channel-list .no-channels-found-container .no-channels-found-description{color:#7a8294;font-size:12px;font-weight:500;line-height:16px;text-align:center}.chat-channel-item.selected,.chat-channel-item:hover{background:#eceefd}.channel-time{color:#60697d}.channel-list-header{align-items:center;display:flex;justify-content:space-between;width:100%}.chanel_icon{background:#fff;border:1px solid #c3c8d4;border-radius:8px;max-height:32px;padding:8px}.chanel_search{align-items:center;background:#f5f6fa;border-radius:8px;display:flex;height:32px;justify-content:center;width:32px}.chanel_search svg{cursor:pointer}.chanel_right_navigation{display:flex;gap:8px}.delete_chat_container{height:32px!important;width:32px}.pinnedChat_container{display:flex;justify-content:space-between}.pinnedChat_container .pinnedChat{opacity:0;transition:opacity .2s ease}.chat_list:hover .pinnedChat_container .pinnedChat{opacity:1}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}}();
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('@keyframes ia-shimmer-horizontal{0%{background-position:100% 0}to{background-position:0 0}}@keyframes ia-shimmer-vertical{0%{background-position:0 100%}to{background-position:0 0}}@property --ia-shimmer-angle{syntax:"<angle>";inherits:false;initial-value:0deg}@keyframes ia-shimmer-circular{0%{--ia-shimmer-angle:0deg}to{--ia-shimmer-angle:360deg}}.ia-shimmer{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(90deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer{animation:none;background-image:linear-gradient(90deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--ltr{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(90deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--ltr{animation:none;background-image:linear-gradient(90deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--rtl{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:reverse;background-color:#e8edf5;background-image:linear-gradient(270deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--rtl{animation:none;background-image:linear-gradient(270deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--btt{animation:ia-shimmer-vertical 1.6s ease-in-out infinite;animation-direction:reverse;background-color:#e8edf5;background-image:linear-gradient(0deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:100% 300%}@media (prefers-reduced-motion:reduce){.ia-shimmer--btt{animation:none;background-image:linear-gradient(0deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--ttb{animation:ia-shimmer-vertical 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(0deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:100% 300%}@media (prefers-reduced-motion:reduce){.ia-shimmer--ttb{animation:none;background-image:linear-gradient(0deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--circular{background-color:#e8edf5;background-repeat:no-repeat;--ia-shimmer-angle:0deg;animation:ia-shimmer-circular 1.6s linear infinite;background-image:conic-gradient(from var(--ia-shimmer-angle),#eceef4 0deg,#e8edf5 80deg,#d5dbe8 160deg,#e8edf5 260deg,#eceef4 1turn);background-size:100% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--circular{animation:none;background-image:conic-gradient(from 0deg,#eceef4,#e8edf5,#d5dbe8,#e8edf5 1turn)}}:root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px;--ia-modal-backdrop:#0d152ccc}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}.table-left-panel-container{background:#fff;border-radius:16px;box-shadow:12px 13px 45px -1px #0000001a;flex-shrink:0;max-width:350px;overflow:hidden;width:350px}.table-left-panel-container:before{background:linear-gradient(180deg,#4259ee99,#4259ee33,#4259ee00);border-radius:16px;content:"";top:0;right:0;bottom:0;left:0;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;padding:1px;pointer-events:none;position:absolute}.table-left-panel-container .ia-styles.ia-btn.ia-btn-tertiary,.table-left-panel-container .ia-styles.ia-btn.ia-btn-tertiary:hover{background:none!important;box-shadow:none!important}.chat-header-navigation{align-items:center;background:#fff;border-bottom:1px solid #d9dde7;border-top-left-radius:10px;border-top-right-radius:10px;display:flex;justify-content:space-between;padding:12px 16px}.chat-header-navigation .nav-left{align-items:center;display:flex;gap:7px}.chat-header-navigation .nav-left button{background:none;border:none!important;box-shadow:none}.chat-header-navigation .nav-title{color:#0d152c;font-size:16px;font-weight:800;line-height:24px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:130px}.chat-header-navigation .nav-right{align-items:center;display:flex;gap:8px;position:relative}.chat-header-navigation .nav-right button{background:none;border:none!important;box-shadow:none}.chat-header-navigation .nav-icon-button{align-items:center;background:#0000;border:none;border-radius:6px;color:#7a8294;cursor:pointer;display:flex;height:20px;justify-content:center;transition:all .2s ease;width:20px}.chat-header-navigation .nav-icon-button:hover{color:#4259ee}.chat-header-navigation .nav-icon-button:focus{outline-offset:1px}.chat-header-navigation .chat-button{background:#4259ee!important;border-radius:8px!important;box-shadow:none!important;color:#fff!important;font-size:14px!important;font-weight:500!important;height:32px;padding:6px 12px!important;width:77px}.chat-header-navigation .chat-button:hover{background:#2b44ec!important}.chat-header-navigation .chat-button .ia-btn-icon{margin-right:4px}.chat-header-navigation .impact_inputbox_container_with_icons{width:100%}.channel_list{background:#f2f4fb}.channel_list,.chat-channel-item,.chat_list{align-items:baseline;border-radius:8px;cursor:pointer;display:flex;gap:12px;padding:12px 16px;transition:background-color .2s ease}.channel_list .ia-styles.ia-avatar,.chat-channel-item .ia-styles.ia-avatar,.chat_list .ia-styles.ia-avatar{background:#7a8294;border-radius:16px}.channel_list:hover,.chat-channel-item:hover,.chat_list:hover{background:#eceefd}.channel_list:hover .ia-styles.ia-avatar,.channel_list:hover .unread-badge,.chat-channel-item:hover .ia-styles.ia-avatar,.chat-channel-item:hover .unread-badge,.chat_list:hover .ia-styles.ia-avatar,.chat_list:hover .unread-badge{background:#4259ee}.channel_list.selected,.chat-channel-item.selected,.chat_list.selected{background:#eceefd}.channel_list.selected .ia-styles.ia-avatar,.channel_list.selected .unread-badge,.chat-channel-item.selected .ia-styles.ia-avatar,.chat-channel-item.selected .unread-badge,.chat_list.selected .ia-styles.ia-avatar,.chat_list.selected .unread-badge{background:#4259ee}.channel_list.muted,.chat-channel-item.muted,.chat_list.muted{opacity:.7}.channel_list:focus,.chat-channel-item:focus,.chat_list:focus{outline-offset:-2px}.channel_list:last-child,.chat-channel-item:last-child,.chat_list:last-child{border-bottom:none}.channel-checkbox{align-items:center;display:flex;padding-top:2px}.channel-checkbox input[type=checkbox]{accent-color:#4259ee;border:1px solid #d9dde7;border-radius:3px;cursor:pointer;height:16px;width:16px}.channel-checkbox input[type=checkbox]:checked{background:#4259ee;border-color:#4259ee}.channel-avatar{border-radius:16px;flex-shrink:0;margin-top:2px}.channel-avatar .ia-avatar{font-size:14px!important;font-weight:600!important;height:32px!important;width:32px!important}.channel-content{flex:1;min-width:0}.channel-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:4px}.channel-title{color:#0d152c;flex:1;font-size:16px;font-weight:600;height:24px;line-height:24px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-meta.selected{background:#eceefd}.muted-icon{color:#7a8294;font-size:16px!important}.unread-badge{align-items:center;background:#7a8294;border-radius:10px;color:#fff;display:flex;font-size:10px;font-weight:400;height:18px;justify-content:center;line-height:1;min-width:18px;padding:2px 6px}.channel-subtitle{color:#7a8294;margin:0 0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-subtitle,.channel-time{font-size:12px;font-weight:500;line-height:16px}.channel-time{color:#b4bac7}@media (max-width:768px){.chat-header-navigation .nav-title{font-size:15px}.chat-header-navigation .chat-button{font-size:13px!important;padding:4px 8px!important}.chat-channel-item{padding:10px 12px}.channel-title{font-size:13px}.channel-subtitle{font-size:12px}}.table-left-panel-container{background-image:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/tableChat_bg.svg);background-position:50%;background-repeat:repeat;background-size:cover;box-shadow:0 1px 3px #0000001a;position:relative}.chat-header-navigation{background:#0000;border-bottom-color:#d9dde7;box-shadow:0 1px 3px #0000001a;height:64px;overflow:hidden;padding-left:16px;position:relative}.nav-title{color:#fff}.chat-channel-list{display:flex;flex-direction:column;gap:12px;margin:8px;max-height:calc(100vh - 150px);overflow-y:auto}.chat-channel-list .no-channels-found-container{align-items:center;background:#f2f4fb;border-radius:8px;display:flex;flex-direction:column;gap:12px;justify-content:center;padding:12px}.chat-channel-list .no-channels-found-container .no-channels-found{color:#0d152c;font-size:16px;font-weight:600}.chat-channel-list .no-channels-found-container .no-channels-found-description{color:#7a8294;font-size:12px;font-weight:500;line-height:16px;text-align:center}.chat-channel-item.selected,.chat-channel-item:hover{background:#eceefd}.channel-time{color:#60697d}.channel-list-header{align-items:center;display:flex;justify-content:space-between;width:100%}.chanel_icon{background:#fff;border:1px solid #c3c8d4;border-radius:8px;max-height:32px;padding:8px}.chanel_search{align-items:center;background:#f5f6fa;border-radius:8px;display:flex;height:32px;justify-content:center;width:32px}.chanel_search svg{cursor:pointer}.chanel_right_navigation{display:flex;gap:8px}.delete_chat_container{height:32px!important;width:32px}.pinnedChat_container{display:flex;justify-content:space-between}.pinnedChat_container .pinnedChat{opacity:0;transition:opacity .2s ease}.chat_list:hover .pinnedChat_container .pinnedChat{opacity:1}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}}();
|
|
2
2
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { ChatChannelList } from "./ChatChannelList.js";
|
|
4
4
|
import { ChatHeaderNavigation } from "./ChatHeaderNavigation.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TableOld/index.tsx"],"names":[],"mappings":"AAkBA,OAAO,sCAAsC,CAAC;AAC9C,OAAO,8CAA8C,CAAC;AACtD,OAAO,qBAAqB,CAAC;AAK7B,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TableOld/index.tsx"],"names":[],"mappings":"AAkBA,OAAO,sCAAsC,CAAC;AAC9C,OAAO,8CAA8C,CAAC;AACtD,OAAO,qBAAqB,CAAC;AAK7B,eAAO,MAAM,QAAQ,mFA+oBpB,CAAC"}
|