impact-ui 4.0.1-alpha.20 → 4.0.1-alpha.21
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/index13.js +2 -2
- package/dist/_virtual/index14.js +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index16.js +2 -2
- package/dist/components/DateRangePicker/index.d.ts.map +1 -1
- package/dist/components/DateRangePicker/index.js +4 -0
- package/dist/components/Modal/Modal.types.d.ts +1 -1
- package/dist/components/Modal/Modal.types.d.ts.map +1 -1
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.js +4 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType /ChatEditedMessageType.d.ts.map +1 -0
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js +1 -1
- package/dist/components/TableOld/index.js +1 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +0 -2
- package/dist/mcp-component-registry.json +1 -1
- package/dist/node_modules/call-bind/index.js +1 -1
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/is-symbol/index.js +1 -1
- package/dist/node_modules/react-with-styles-interface-css/dist/index.js +1 -1
- package/package.json +5 -5
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.d.ts.map +0 -1
- package/dist/components/TableV36/AdvanceSearchModalItem.d.ts +0 -27
- package/dist/components/TableV36/AdvanceSearchModalItem.d.ts.map +0 -1
- package/dist/components/TableV36/AdvanceSortModal.d.ts +0 -8
- package/dist/components/TableV36/AdvanceSortModal.d.ts.map +0 -1
- package/dist/components/TableV36/AdvanceSortModal.js +0 -297
- package/dist/components/TableV36/AgGridHeader.d.ts +0 -13
- package/dist/components/TableV36/AgGridHeader.d.ts.map +0 -1
- package/dist/components/TableV36/AgGridHeader.js +0 -781
- package/dist/components/TableV36/CommentsPortal.d.ts +0 -31
- package/dist/components/TableV36/CommentsPortal.d.ts.map +0 -1
- package/dist/components/TableV36/CommentsPortal.js +0 -362
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts +0 -13
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts.map +0 -1
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModal.js +0 -282
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts +0 -16
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts.map +0 -1
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.js +0 -302
- package/dist/components/TableV36/NoComments.d.ts +0 -16
- package/dist/components/TableV36/NoComments.d.ts.map +0 -1
- package/dist/components/TableV36/NoComments.js +0 -237
- package/dist/components/TableV36/Table.types.d.ts +0 -45
- package/dist/components/TableV36/Table.types.d.ts.map +0 -1
- package/dist/components/TableV36/actionBar.d.ts +0 -7
- package/dist/components/TableV36/actionBar.d.ts.map +0 -1
- package/dist/components/TableV36/actionBar.js +0 -31
- package/dist/components/TableV36/advanceSearchModal.d.ts +0 -20
- package/dist/components/TableV36/advanceSearchModal.d.ts.map +0 -1
- package/dist/components/TableV36/filterUtils.d.ts +0 -133
- package/dist/components/TableV36/filterUtils.d.ts.map +0 -1
- package/dist/components/TableV36/filterUtils.js +0 -478
- package/dist/components/TableV36/index.d.ts +0 -3
- package/dist/components/TableV36/index.d.ts.map +0 -1
- package/dist/components/TableV36/index.js +0 -1430
- package/dist/components/TableV36/mockData.d.ts +0 -39
- package/dist/components/TableV36/mockData.d.ts.map +0 -1
- package/dist/components/TableV36/tableFunctions.d.ts +0 -63
- package/dist/components/TableV36/tableFunctions.d.ts.map +0 -1
- package/dist/components/TableV36/tableFunctions.js +0 -1384
- package/dist/components/TableV36/tableHeader.d.ts +0 -80
- package/dist/components/TableV36/tableHeader.d.ts.map +0 -1
- package/dist/components/TableV36/tableHeader.js +0 -396
- package/dist/components/TableV36/tableIcons.d.ts +0 -3
- package/dist/components/TableV36/tableIcons.d.ts.map +0 -1
- package/dist/components/TableV36/tableMoreOptions.d.ts +0 -52
- package/dist/components/TableV36/tableMoreOptions.d.ts.map +0 -1
- package/dist/components/TableV36/tableMoreOptions.js +0 -324
- package/dist/components/TableV36/tablePagination.d.ts +0 -7
- package/dist/components/TableV36/tablePagination.d.ts.map +0 -1
- package/dist/components/TableV36/tablePagination.js +0 -67
- package/dist/components/TableV36/tableSettings.d.ts +0 -41
- package/dist/components/TableV36/tableSettings.d.ts.map +0 -1
- package/dist/components/TableV36/tableSettings.js +0 -278
- package/dist/components/TableV36/withCommentIcon.d.ts +0 -2
- package/dist/components/TableV36/withCommentIcon.d.ts.map +0 -1
- package/dist/components/TableV36/withCommentIcon.js +0 -83
- /package/dist/components/TableChat/components/TableChatRightSection/{ChatEditedMessageType → ChatEditedMessageType }/ChatEditedMessageType.d.ts +0 -0
- /package/dist/components/TableChat/components/TableChatRightSection/{ChatEditedMessageType → ChatEditedMessageType }/ChatEditedMessageType.js +0 -0
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
export default function TableHeader({ actualRef, colDefs, Columns, tableFontSize, setTableFontSize, rowHeight, setRowHeight, tableHeader, topRightOptions, topLeftOptions, onGlobalSearchClick, cardContainer, onNumberFormatChange, hideRowHeightOptionMenu, showDownloadButton, onDownloadButtonClick, closeButton, handleCloseButtonClick, additionalButtons, setTableSettingOpen, showHideEditableCells, handleShowHideEditableCells, topCenterOptions, showContentualFilter, showContentualFilterBadge, onContentualFilterClick, contentualFilterProps, contentualFilterComponent, tableActions, onTableActionsTabClick, hideTableFormat, hideTableActions, hideTableSetting, explicitlyCloseTableSetting, customSystemButton, isChatEnabled, handleChatClick, isChatOpen, handleChatClose, chatConfiguration, savedViewsOptions, handleSaveAndApply, maxSavedViews, handleSavedViewClick, handleEditSaveView, isSaveViewEnabled, isSavingViewLoading, handleDeleteViewClick, isDeleteViewLoading, handleSetDefaultView, isCommentFeatureEnabled, showCommentBadge, toggleCommentMode, commentMode, hideFontSize, hideNumericFormat, onContentDensityChange, isCommentResolvedAlertOpen, setIsCommentResolvedAlertOpen, showCommentPanel, setShowCommentPanel, customTabInTableSettings, closeTableSettingOnOutsideClick, saveViewCustomFilter, customRenderSaveViewContent, onTableSettingClick, deleteViewPromptText, isViewNameUniqueAcrossTypes, contentualFilterOpenByDefault, tableSettingsTitle, registerTableSettingToggle, numericFormatDefault, viewPoint, disableContextualFilter, disableTableSettings, onAdvanceSortClick, advanceSortEnabled, }: {
|
|
2
|
-
actualRef: any;
|
|
3
|
-
colDefs: any;
|
|
4
|
-
Columns: any;
|
|
5
|
-
tableFontSize: any;
|
|
6
|
-
setTableFontSize: any;
|
|
7
|
-
rowHeight: any;
|
|
8
|
-
setRowHeight: any;
|
|
9
|
-
tableHeader: any;
|
|
10
|
-
topRightOptions: any;
|
|
11
|
-
topLeftOptions: any;
|
|
12
|
-
onGlobalSearchClick: any;
|
|
13
|
-
cardContainer: any;
|
|
14
|
-
onNumberFormatChange: any;
|
|
15
|
-
hideRowHeightOptionMenu: any;
|
|
16
|
-
showDownloadButton: any;
|
|
17
|
-
onDownloadButtonClick: any;
|
|
18
|
-
closeButton: any;
|
|
19
|
-
handleCloseButtonClick: any;
|
|
20
|
-
additionalButtons: any;
|
|
21
|
-
setTableSettingOpen: any;
|
|
22
|
-
showHideEditableCells: any;
|
|
23
|
-
handleShowHideEditableCells: any;
|
|
24
|
-
topCenterOptions: any;
|
|
25
|
-
showContentualFilter: any;
|
|
26
|
-
showContentualFilterBadge: any;
|
|
27
|
-
onContentualFilterClick: any;
|
|
28
|
-
contentualFilterProps?: {} | undefined;
|
|
29
|
-
contentualFilterComponent: any;
|
|
30
|
-
tableActions: any;
|
|
31
|
-
onTableActionsTabClick: any;
|
|
32
|
-
hideTableFormat: any;
|
|
33
|
-
hideTableActions: any;
|
|
34
|
-
hideTableSetting: any;
|
|
35
|
-
explicitlyCloseTableSetting: any;
|
|
36
|
-
customSystemButton: any;
|
|
37
|
-
isChatEnabled?: boolean | undefined;
|
|
38
|
-
handleChatClick?: (() => void) | undefined;
|
|
39
|
-
isChatOpen: any;
|
|
40
|
-
handleChatClose: any;
|
|
41
|
-
chatConfiguration: any;
|
|
42
|
-
savedViewsOptions: any;
|
|
43
|
-
handleSaveAndApply: any;
|
|
44
|
-
maxSavedViews: any;
|
|
45
|
-
handleSavedViewClick: any;
|
|
46
|
-
handleEditSaveView: any;
|
|
47
|
-
isSaveViewEnabled: any;
|
|
48
|
-
isSavingViewLoading: any;
|
|
49
|
-
handleDeleteViewClick: any;
|
|
50
|
-
isDeleteViewLoading: any;
|
|
51
|
-
handleSetDefaultView: any;
|
|
52
|
-
isCommentFeatureEnabled: any;
|
|
53
|
-
showCommentBadge: any;
|
|
54
|
-
toggleCommentMode: any;
|
|
55
|
-
commentMode: any;
|
|
56
|
-
hideFontSize: any;
|
|
57
|
-
hideNumericFormat: any;
|
|
58
|
-
onContentDensityChange: any;
|
|
59
|
-
isCommentResolvedAlertOpen: any;
|
|
60
|
-
setIsCommentResolvedAlertOpen: any;
|
|
61
|
-
showCommentPanel: any;
|
|
62
|
-
setShowCommentPanel: any;
|
|
63
|
-
customTabInTableSettings: any;
|
|
64
|
-
closeTableSettingOnOutsideClick: any;
|
|
65
|
-
saveViewCustomFilter: any;
|
|
66
|
-
customRenderSaveViewContent: any;
|
|
67
|
-
onTableSettingClick: any;
|
|
68
|
-
deleteViewPromptText: any;
|
|
69
|
-
isViewNameUniqueAcrossTypes: any;
|
|
70
|
-
contentualFilterOpenByDefault: any;
|
|
71
|
-
tableSettingsTitle: any;
|
|
72
|
-
registerTableSettingToggle: any;
|
|
73
|
-
numericFormatDefault: any;
|
|
74
|
-
viewPoint: any;
|
|
75
|
-
disableContextualFilter: any;
|
|
76
|
-
disableTableSettings: any;
|
|
77
|
-
onAdvanceSortClick: any;
|
|
78
|
-
advanceSortEnabled: any;
|
|
79
|
-
}): import("react/jsx-runtime").JSX.Element | null;
|
|
80
|
-
//# sourceMappingURL=tableHeader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tableHeader.d.ts","sourceRoot":"","sources":["../../../src/components/TableV36/tableHeader.tsx"],"names":[],"mappings":"AAoBA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,SAAS,EACT,OAAO,EACP,OAAO,EACP,aAAa,EACb,gBAAgB,EAChB,SAAS,EACT,YAAY,EACZ,WAAW,EACX,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,EAClB,qBAAqB,EACrB,WAAW,EACX,sBAAsB,EACtB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,2BAA2B,EAC3B,gBAAgB,EAChB,oBAAoB,EACpB,yBAAyB,EACzB,uBAAuB,EACvB,qBAA0B,EAC1B,yBAAyB,EACzB,YAAY,EACZ,sBAAsB,EACtB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,2BAA2B,EAC3B,kBAAkB,EAClB,aAAoB,EACpB,eAA0B,EAC1B,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,EACtB,0BAA0B,EAC1B,6BAA6B,EAC7B,gBAAgB,EAChB,mBAAmB,EACnB,wBAAwB,EACxB,+BAA+B,EAC/B,oBAAoB,EACpB,2BAA2B,EAC3B,mBAAmB,EACnB,oBAAoB,EACpB,2BAA2B,EAC3B,6BAA6B,EAC7B,kBAAkB,EAClB,0BAA0B,EAC1B,oBAAoB,EACpB,SAAS,EACT,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,GACnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA,kDAqWA"}
|
|
@@ -1,396 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useState, useRef, useEffect, useMemo } from "react";
|
|
3
|
-
import default_1 from "../../node_modules/@mui/icons-material/FilterAltOffOutlined.js";
|
|
4
|
-
import default_1$1 from "../../node_modules/@mui/icons-material/FilterAltOutlined.js";
|
|
5
|
-
import default_1$2 from "../../node_modules/@mui/icons-material/MoreHorizOutlined.js";
|
|
6
|
-
import { getAssetUrl } from "../../utils/assetBase.js";
|
|
7
|
-
import { Button } from "../Button/index.js";
|
|
8
|
-
import TableMoreOptions from "./tableMoreOptions.js";
|
|
9
|
-
import { Alert } from "../Alert/index.js";
|
|
10
|
-
import { FiltersStrip } from "../FiltersStrip/index.js";
|
|
11
|
-
import TableChatSidePanel from "../TableChat/TableChatSidePanel.js";
|
|
12
|
-
import { Tooltip } from "../Tooltip/index.js";
|
|
13
|
-
import Badge from "../../node_modules/@mui/material/Badge/Badge.js";
|
|
14
|
-
const ChatIcon = getAssetUrl("icons/chatIcon.svg");
|
|
15
|
-
function TableHeader({
|
|
16
|
-
actualRef,
|
|
17
|
-
colDefs,
|
|
18
|
-
Columns,
|
|
19
|
-
tableFontSize,
|
|
20
|
-
setTableFontSize,
|
|
21
|
-
rowHeight,
|
|
22
|
-
setRowHeight,
|
|
23
|
-
tableHeader,
|
|
24
|
-
topRightOptions,
|
|
25
|
-
topLeftOptions,
|
|
26
|
-
onGlobalSearchClick,
|
|
27
|
-
cardContainer,
|
|
28
|
-
onNumberFormatChange,
|
|
29
|
-
hideRowHeightOptionMenu,
|
|
30
|
-
showDownloadButton,
|
|
31
|
-
onDownloadButtonClick,
|
|
32
|
-
closeButton,
|
|
33
|
-
handleCloseButtonClick,
|
|
34
|
-
additionalButtons,
|
|
35
|
-
setTableSettingOpen,
|
|
36
|
-
showHideEditableCells,
|
|
37
|
-
handleShowHideEditableCells,
|
|
38
|
-
topCenterOptions,
|
|
39
|
-
showContentualFilter,
|
|
40
|
-
showContentualFilterBadge,
|
|
41
|
-
onContentualFilterClick,
|
|
42
|
-
contentualFilterProps = {},
|
|
43
|
-
contentualFilterComponent,
|
|
44
|
-
tableActions,
|
|
45
|
-
onTableActionsTabClick,
|
|
46
|
-
hideTableFormat,
|
|
47
|
-
hideTableActions,
|
|
48
|
-
hideTableSetting,
|
|
49
|
-
explicitlyCloseTableSetting,
|
|
50
|
-
customSystemButton,
|
|
51
|
-
isChatEnabled = true,
|
|
52
|
-
handleChatClick = () => {
|
|
53
|
-
},
|
|
54
|
-
isChatOpen,
|
|
55
|
-
handleChatClose,
|
|
56
|
-
chatConfiguration,
|
|
57
|
-
savedViewsOptions,
|
|
58
|
-
handleSaveAndApply,
|
|
59
|
-
maxSavedViews,
|
|
60
|
-
handleSavedViewClick,
|
|
61
|
-
handleEditSaveView,
|
|
62
|
-
isSaveViewEnabled,
|
|
63
|
-
isSavingViewLoading,
|
|
64
|
-
handleDeleteViewClick,
|
|
65
|
-
isDeleteViewLoading,
|
|
66
|
-
handleSetDefaultView,
|
|
67
|
-
isCommentFeatureEnabled,
|
|
68
|
-
showCommentBadge,
|
|
69
|
-
toggleCommentMode,
|
|
70
|
-
commentMode,
|
|
71
|
-
hideFontSize,
|
|
72
|
-
hideNumericFormat,
|
|
73
|
-
onContentDensityChange,
|
|
74
|
-
isCommentResolvedAlertOpen,
|
|
75
|
-
setIsCommentResolvedAlertOpen,
|
|
76
|
-
showCommentPanel,
|
|
77
|
-
setShowCommentPanel,
|
|
78
|
-
customTabInTableSettings,
|
|
79
|
-
closeTableSettingOnOutsideClick,
|
|
80
|
-
saveViewCustomFilter,
|
|
81
|
-
customRenderSaveViewContent,
|
|
82
|
-
onTableSettingClick,
|
|
83
|
-
deleteViewPromptText,
|
|
84
|
-
isViewNameUniqueAcrossTypes,
|
|
85
|
-
contentualFilterOpenByDefault,
|
|
86
|
-
tableSettingsTitle,
|
|
87
|
-
registerTableSettingToggle,
|
|
88
|
-
numericFormatDefault,
|
|
89
|
-
viewPoint,
|
|
90
|
-
disableContextualFilter,
|
|
91
|
-
disableTableSettings,
|
|
92
|
-
onAdvanceSortClick,
|
|
93
|
-
advanceSortEnabled
|
|
94
|
-
}) {
|
|
95
|
-
var _a, _b;
|
|
96
|
-
const [showMenu, setShowMenu] = useState(false);
|
|
97
|
-
const [anchorEl, setAnchorEl] = useState(null);
|
|
98
|
-
const handleWidthButtonClose = () => {
|
|
99
|
-
setAnchorEl(null);
|
|
100
|
-
};
|
|
101
|
-
const [showTableSetting, setShowTableSetting] = useState(false);
|
|
102
|
-
const [showFilterStrip, setShowFilterStrip] = useState(contentualFilterOpenByDefault);
|
|
103
|
-
useRef(0);
|
|
104
|
-
const commentBtnRef = useRef(null);
|
|
105
|
-
const onRowHeightChange = (val) => {
|
|
106
|
-
setRowHeight(val);
|
|
107
|
-
setTimeout(() => {
|
|
108
|
-
var _a2, _b2;
|
|
109
|
-
(_b2 = (_a2 = actualRef == null ? void 0 : actualRef.current) == null ? void 0 : _a2.api) == null ? void 0 : _b2.resetRowHeights();
|
|
110
|
-
}, 0);
|
|
111
|
-
handleWidthButtonClose();
|
|
112
|
-
};
|
|
113
|
-
const handleMenuClick = (e) => {
|
|
114
|
-
document.body.style.overflowX = "hidden";
|
|
115
|
-
e.stopPropagation();
|
|
116
|
-
setShowMenu((prev) => !prev);
|
|
117
|
-
setShowTableSetting(false);
|
|
118
|
-
setTableSettingOpen(false);
|
|
119
|
-
setTimeout(() => {
|
|
120
|
-
document.body.style.overflowX = "unset";
|
|
121
|
-
}, 200);
|
|
122
|
-
};
|
|
123
|
-
const toggleCommentPanel = () => {
|
|
124
|
-
setShowCommentPanel((prev) => !prev);
|
|
125
|
-
};
|
|
126
|
-
const handleCommentClick = (e) => {
|
|
127
|
-
e.stopPropagation();
|
|
128
|
-
if (showTableSetting) {
|
|
129
|
-
setShowMenu(false);
|
|
130
|
-
setShowTableSetting(false);
|
|
131
|
-
setTableSettingOpen(false);
|
|
132
|
-
}
|
|
133
|
-
toggleCommentMode();
|
|
134
|
-
toggleCommentPanel();
|
|
135
|
-
};
|
|
136
|
-
useEffect(() => {
|
|
137
|
-
if (!showCommentPanel && commentMode) {
|
|
138
|
-
toggleCommentMode();
|
|
139
|
-
} else if (!commentMode && showCommentPanel) {
|
|
140
|
-
toggleCommentPanel();
|
|
141
|
-
}
|
|
142
|
-
}, [commentMode, showCommentPanel]);
|
|
143
|
-
useEffect(() => {
|
|
144
|
-
var _a2, _b2;
|
|
145
|
-
const el = commentBtnRef.current || document.querySelector('[data-icon="comment"][data-type="table-icon"]');
|
|
146
|
-
if (!el) return;
|
|
147
|
-
if (commentMode) {
|
|
148
|
-
(_a2 = el.focus) == null ? void 0 : _a2.call(el);
|
|
149
|
-
} else {
|
|
150
|
-
(_b2 = el.blur) == null ? void 0 : _b2.call(el);
|
|
151
|
-
}
|
|
152
|
-
}, [commentMode]);
|
|
153
|
-
const isGroupRows = useMemo(() => {
|
|
154
|
-
const hasGroupRows = (cols) => cols.some((col) => col.rowGroup || col.children && hasGroupRows(col.children));
|
|
155
|
-
return hasGroupRows(colDefs);
|
|
156
|
-
}, [colDefs]);
|
|
157
|
-
const handleClickOutside = (event) => {
|
|
158
|
-
if (showMenu && !showTableSetting && !event.target.closest(".table-more-options-container")) {
|
|
159
|
-
setShowMenu(false);
|
|
160
|
-
}
|
|
161
|
-
if (closeTableSettingOnOutsideClick && showTableSetting && !event.target.closest(".table-setting-main-container") && !event.target.closest(".table-more-options-container")) {
|
|
162
|
-
setShowTableSetting(false);
|
|
163
|
-
setShowMenu(false);
|
|
164
|
-
setTableSettingOpen(false);
|
|
165
|
-
}
|
|
166
|
-
if (showCommentPanel && !event.target.closest(".MuiPopover-root") && !event.target.closest(".impact-input-wrapper") && !event.target.closest(".comment-panel-main-container") && !event.target.closest(".table-more-options-container") && !event.target.closest(".ag-grid-viewport")) {
|
|
167
|
-
setShowCommentPanel(false);
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
useEffect(() => {
|
|
171
|
-
document.addEventListener("click", handleClickOutside);
|
|
172
|
-
return () => {
|
|
173
|
-
document.removeEventListener("click", handleClickOutside);
|
|
174
|
-
};
|
|
175
|
-
}, [showMenu, showTableSetting, showCommentPanel]);
|
|
176
|
-
const handleFilterClick = () => {
|
|
177
|
-
setShowFilterStrip(!showFilterStrip);
|
|
178
|
-
if (onContentualFilterClick) {
|
|
179
|
-
onContentualFilterClick();
|
|
180
|
-
}
|
|
181
|
-
};
|
|
182
|
-
const hasHeaderContent = useMemo(() => {
|
|
183
|
-
return !!(tableHeader || topLeftOptions || topCenterOptions || topRightOptions || onGlobalSearchClick || showContentualFilter || showDownloadButton || !hideTableSetting || closeButton || showFilterStrip || contentualFilterComponent || contentualFilterProps && Object.keys(contentualFilterProps).length > 0 || isCommentFeatureEnabled);
|
|
184
|
-
}, [
|
|
185
|
-
tableHeader,
|
|
186
|
-
topLeftOptions,
|
|
187
|
-
topCenterOptions,
|
|
188
|
-
topRightOptions,
|
|
189
|
-
onGlobalSearchClick,
|
|
190
|
-
showContentualFilter,
|
|
191
|
-
showDownloadButton,
|
|
192
|
-
hideTableSetting,
|
|
193
|
-
closeButton,
|
|
194
|
-
showFilterStrip,
|
|
195
|
-
contentualFilterComponent,
|
|
196
|
-
contentualFilterProps,
|
|
197
|
-
isCommentFeatureEnabled
|
|
198
|
-
]);
|
|
199
|
-
if (!hasHeaderContent) {
|
|
200
|
-
return null;
|
|
201
|
-
}
|
|
202
|
-
return /* @__PURE__ */ jsxs(
|
|
203
|
-
"div",
|
|
204
|
-
{
|
|
205
|
-
className: "impact-table-main-header",
|
|
206
|
-
style: {
|
|
207
|
-
flexDirection: showFilterStrip ? "column" : "row",
|
|
208
|
-
alignItems: showFilterStrip ? "initial" : "center",
|
|
209
|
-
justifyContent: "center",
|
|
210
|
-
transition: "height 0.3s ease",
|
|
211
|
-
position: "relative"
|
|
212
|
-
},
|
|
213
|
-
children: [
|
|
214
|
-
isCommentResolvedAlertOpen && /* @__PURE__ */ jsx(
|
|
215
|
-
"div",
|
|
216
|
-
{
|
|
217
|
-
style: {
|
|
218
|
-
position: "absolute",
|
|
219
|
-
top: "12px",
|
|
220
|
-
left: "50%",
|
|
221
|
-
transform: "translateX(-50%)",
|
|
222
|
-
zIndex: 1e3
|
|
223
|
-
},
|
|
224
|
-
children: /* @__PURE__ */ jsx(
|
|
225
|
-
Alert,
|
|
226
|
-
{
|
|
227
|
-
severity: "success",
|
|
228
|
-
title: "Comment is resolved",
|
|
229
|
-
onClose: () => setIsCommentResolvedAlertOpen(false)
|
|
230
|
-
}
|
|
231
|
-
)
|
|
232
|
-
}
|
|
233
|
-
),
|
|
234
|
-
/* @__PURE__ */ jsxs("div", { className: "impact-table-main-header-container", children: [
|
|
235
|
-
/* @__PURE__ */ jsxs("div", { className: "impact-table-main-header-left", children: [
|
|
236
|
-
/* @__PURE__ */ jsx("div", { className: "table-heading", children: tableHeader }),
|
|
237
|
-
topLeftOptions
|
|
238
|
-
] }),
|
|
239
|
-
/* @__PURE__ */ jsx("div", { className: "impact-table-center-cta-container", children: topCenterOptions }),
|
|
240
|
-
/* @__PURE__ */ jsxs("div", { className: "right-table-cta-container", children: [
|
|
241
|
-
topRightOptions,
|
|
242
|
-
onGlobalSearchClick ? /* @__PURE__ */ jsx(
|
|
243
|
-
Button,
|
|
244
|
-
{
|
|
245
|
-
"data-icon": "table-search",
|
|
246
|
-
"data-type": "table-icon",
|
|
247
|
-
variant: "secondary",
|
|
248
|
-
onClick: onGlobalSearchClick
|
|
249
|
-
}
|
|
250
|
-
) : null,
|
|
251
|
-
topRightOptions && viewPoint !== "list" && /* @__PURE__ */ jsx("div", { className: "divider-line" }),
|
|
252
|
-
isChatEnabled && /* @__PURE__ */ jsx(
|
|
253
|
-
Tooltip,
|
|
254
|
-
{
|
|
255
|
-
description: ((_a = chatConfiguration == null ? void 0 : chatConfiguration.tooltipConfig) == null ? void 0 : _a.description) || '"Chat" allows you to collaborate with your companions on the go.',
|
|
256
|
-
title: ((_b = chatConfiguration == null ? void 0 : chatConfiguration.tooltipConfig) == null ? void 0 : _b.title) || "New feature",
|
|
257
|
-
variant: "feature",
|
|
258
|
-
children: /* @__PURE__ */ jsx(
|
|
259
|
-
Button,
|
|
260
|
-
{
|
|
261
|
-
className: "table-chat-icon-button",
|
|
262
|
-
"data-icon": "chat",
|
|
263
|
-
"data-type": "table-icon",
|
|
264
|
-
icon: /* @__PURE__ */ jsx("img", { alt: "chat", src: ChatIcon }),
|
|
265
|
-
variant: "tertiary",
|
|
266
|
-
onClick: handleChatClick
|
|
267
|
-
}
|
|
268
|
-
)
|
|
269
|
-
}
|
|
270
|
-
),
|
|
271
|
-
showContentualFilter && /* @__PURE__ */ jsx(Tooltip, { title: showFilterStrip ? "Hide filter" : "Show filter", variant: "tertiary", children: /* @__PURE__ */ jsx(Badge, { invisible: !showContentualFilterBadge, variant: "dot", children: /* @__PURE__ */ jsx(
|
|
272
|
-
Button,
|
|
273
|
-
{
|
|
274
|
-
disabled: disableContextualFilter,
|
|
275
|
-
icon: showFilterStrip ? /* @__PURE__ */ jsx(default_1, {}) : /* @__PURE__ */ jsx(default_1$1, {}),
|
|
276
|
-
variant: "text",
|
|
277
|
-
onClick: handleFilterClick
|
|
278
|
-
}
|
|
279
|
-
) }) }),
|
|
280
|
-
isCommentFeatureEnabled && /* @__PURE__ */ jsx(Tooltip, { title: "Comment", variant: "tertiary", children: /* @__PURE__ */ jsx(Badge, { invisible: !showCommentBadge, variant: "dot", children: /* @__PURE__ */ jsx(
|
|
281
|
-
Button,
|
|
282
|
-
{
|
|
283
|
-
ref: commentBtnRef,
|
|
284
|
-
"aria-pressed": Boolean(commentMode),
|
|
285
|
-
"data-active": commentMode ? "true" : void 0,
|
|
286
|
-
"data-icon": "comment",
|
|
287
|
-
"data-type": "table-icon",
|
|
288
|
-
variant: "text",
|
|
289
|
-
onClick: handleCommentClick
|
|
290
|
-
}
|
|
291
|
-
) }) }),
|
|
292
|
-
showDownloadButton && /* @__PURE__ */ jsx(Tooltip, { title: "Download", variant: "tertiary", children: /* @__PURE__ */ jsx(
|
|
293
|
-
Button,
|
|
294
|
-
{
|
|
295
|
-
"data-icon": "download",
|
|
296
|
-
"data-type": "table-icon",
|
|
297
|
-
variant: "secondary",
|
|
298
|
-
onClick: onDownloadButtonClick
|
|
299
|
-
}
|
|
300
|
-
) }),
|
|
301
|
-
customSystemButton && customSystemButton,
|
|
302
|
-
!hideTableSetting && /* @__PURE__ */ jsx(Tooltip, { title: "More", variant: "tertiary", children: /* @__PURE__ */ jsx(
|
|
303
|
-
Button,
|
|
304
|
-
{
|
|
305
|
-
disabled: disableTableSettings,
|
|
306
|
-
icon: /* @__PURE__ */ jsx(default_1$2, {}),
|
|
307
|
-
variant: "text",
|
|
308
|
-
onClick: handleMenuClick
|
|
309
|
-
}
|
|
310
|
-
) }),
|
|
311
|
-
closeButton && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
312
|
-
/* @__PURE__ */ jsx("div", { className: "divider-line" }),
|
|
313
|
-
/* @__PURE__ */ jsx(
|
|
314
|
-
Button,
|
|
315
|
-
{
|
|
316
|
-
"data-icon": "close",
|
|
317
|
-
"data-type": "table-icon",
|
|
318
|
-
variant: "url",
|
|
319
|
-
onClick: handleCloseButtonClick
|
|
320
|
-
}
|
|
321
|
-
)
|
|
322
|
-
] })
|
|
323
|
-
] })
|
|
324
|
-
] }),
|
|
325
|
-
/* @__PURE__ */ jsx(
|
|
326
|
-
TableMoreOptions,
|
|
327
|
-
{
|
|
328
|
-
actualRef,
|
|
329
|
-
advanceSortEnabled,
|
|
330
|
-
colDefs,
|
|
331
|
-
Columns,
|
|
332
|
-
customRenderSaveViewContent,
|
|
333
|
-
customTabInTableSettings,
|
|
334
|
-
deleteViewPromptText,
|
|
335
|
-
explicitlyCloseTableSetting,
|
|
336
|
-
extraButtons: additionalButtons,
|
|
337
|
-
handleDeleteViewClick,
|
|
338
|
-
handleEditSaveView,
|
|
339
|
-
handleMenuClick,
|
|
340
|
-
handleSaveAndApply,
|
|
341
|
-
handleSavedViewClick,
|
|
342
|
-
handleSetDefaultView,
|
|
343
|
-
handleShowHideEditableCells,
|
|
344
|
-
hideFontSize,
|
|
345
|
-
hideNumericFormat,
|
|
346
|
-
hideRowHeightOptionMenu,
|
|
347
|
-
hideTableActions,
|
|
348
|
-
hideTableFormat,
|
|
349
|
-
isDeleteViewLoading,
|
|
350
|
-
isGroupRows,
|
|
351
|
-
isSaveViewEnabled,
|
|
352
|
-
isSavingViewLoading,
|
|
353
|
-
isViewNameUniqueAcrossTypes,
|
|
354
|
-
maxSavedViews,
|
|
355
|
-
numericFormatDefault,
|
|
356
|
-
registerTableSettingToggle,
|
|
357
|
-
rowHeight,
|
|
358
|
-
savedViewsOptions,
|
|
359
|
-
saveViewCustomFilter,
|
|
360
|
-
setRowHeight,
|
|
361
|
-
setShowMenu,
|
|
362
|
-
setShowTableSetting,
|
|
363
|
-
setTableFontSize,
|
|
364
|
-
setTableSettingOpen,
|
|
365
|
-
showFilterStrip,
|
|
366
|
-
showHideEditableCells,
|
|
367
|
-
showMenu,
|
|
368
|
-
showTableSetting,
|
|
369
|
-
tableActions,
|
|
370
|
-
tableFontSize,
|
|
371
|
-
tableSettingsTitle,
|
|
372
|
-
onAdvanceSortClick,
|
|
373
|
-
onContentDensityChange,
|
|
374
|
-
onNumberFormatChange,
|
|
375
|
-
onRowHeightChange,
|
|
376
|
-
onTableActionsTabClick,
|
|
377
|
-
onTableSettingClick
|
|
378
|
-
}
|
|
379
|
-
),
|
|
380
|
-
showFilterStrip && /* @__PURE__ */ jsx("div", { className: "divider-line", style: { paddingTop: "16px" } }),
|
|
381
|
-
showFilterStrip && /* @__PURE__ */ jsx("div", { className: "impact-table-header-filter-strip", children: contentualFilterComponent ? contentualFilterComponent : /* @__PURE__ */ jsx(FiltersStrip, { ...contentualFilterProps }) }),
|
|
382
|
-
isChatEnabled && /* @__PURE__ */ jsx(
|
|
383
|
-
TableChatSidePanel,
|
|
384
|
-
{
|
|
385
|
-
chatConfiguration,
|
|
386
|
-
handleClose: handleChatClose,
|
|
387
|
-
isOpen: isChatOpen
|
|
388
|
-
}
|
|
389
|
-
)
|
|
390
|
-
]
|
|
391
|
-
}
|
|
392
|
-
);
|
|
393
|
-
}
|
|
394
|
-
export {
|
|
395
|
-
TableHeader as default
|
|
396
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tableIcons.d.ts","sourceRoot":"","sources":["../../../src/components/TableV36/tableIcons.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,+CAiBzB,CAAC;AAEF,eAAO,MAAM,eAAe,+CAiB3B,CAAC"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export default function TableMoreOptions({ showMenu, extraButtons, hideRowHeightOptionMenu, onRowHeightChange, rowHeight, isGroupRows, actualRef, Columns, handleMenuClick, tableFontSize, setTableFontSize, onNumberFormatChange, colDefs, setShowMenu, showTableSetting, setShowTableSetting, setTableSettingOpen, showHideEditableCells, handleShowHideEditableCells, tableActions, onTableActionsTabClick, showFilterStrip, hideTableFormat, hideTableActions, explicitlyCloseTableSetting, savedViewsOptions, handleSaveAndApply, maxSavedViews, handleSavedViewClick, handleEditSaveView, isSaveViewEnabled, isSavingViewLoading, handleDeleteViewClick, isDeleteViewLoading, handleSetDefaultView, hideFontSize, hideNumericFormat, onContentDensityChange, customTabInTableSettings, saveViewCustomFilter, customRenderSaveViewContent, onTableSettingClick, deleteViewPromptText, isViewNameUniqueAcrossTypes, tableSettingsTitle, registerTableSettingToggle, numericFormatDefault, onAdvanceSortClick, advanceSortEnabled, }: {
|
|
2
|
-
showMenu: any;
|
|
3
|
-
extraButtons: any;
|
|
4
|
-
hideRowHeightOptionMenu: any;
|
|
5
|
-
onRowHeightChange: any;
|
|
6
|
-
rowHeight: any;
|
|
7
|
-
isGroupRows: any;
|
|
8
|
-
actualRef: any;
|
|
9
|
-
Columns: any;
|
|
10
|
-
handleMenuClick: any;
|
|
11
|
-
tableFontSize: any;
|
|
12
|
-
setTableFontSize: any;
|
|
13
|
-
onNumberFormatChange: any;
|
|
14
|
-
colDefs: any;
|
|
15
|
-
setShowMenu: any;
|
|
16
|
-
showTableSetting: any;
|
|
17
|
-
setShowTableSetting: any;
|
|
18
|
-
setTableSettingOpen: any;
|
|
19
|
-
showHideEditableCells: any;
|
|
20
|
-
handleShowHideEditableCells: any;
|
|
21
|
-
tableActions: any;
|
|
22
|
-
onTableActionsTabClick: any;
|
|
23
|
-
showFilterStrip: any;
|
|
24
|
-
hideTableFormat: any;
|
|
25
|
-
hideTableActions: any;
|
|
26
|
-
explicitlyCloseTableSetting: any;
|
|
27
|
-
savedViewsOptions: any;
|
|
28
|
-
handleSaveAndApply: any;
|
|
29
|
-
maxSavedViews: any;
|
|
30
|
-
handleSavedViewClick: any;
|
|
31
|
-
handleEditSaveView: any;
|
|
32
|
-
isSaveViewEnabled: any;
|
|
33
|
-
isSavingViewLoading: any;
|
|
34
|
-
handleDeleteViewClick: any;
|
|
35
|
-
isDeleteViewLoading: any;
|
|
36
|
-
handleSetDefaultView: any;
|
|
37
|
-
hideFontSize: any;
|
|
38
|
-
hideNumericFormat: any;
|
|
39
|
-
onContentDensityChange: any;
|
|
40
|
-
customTabInTableSettings: any;
|
|
41
|
-
saveViewCustomFilter: any;
|
|
42
|
-
customRenderSaveViewContent: any;
|
|
43
|
-
onTableSettingClick: any;
|
|
44
|
-
deleteViewPromptText: any;
|
|
45
|
-
isViewNameUniqueAcrossTypes: any;
|
|
46
|
-
tableSettingsTitle: any;
|
|
47
|
-
registerTableSettingToggle: any;
|
|
48
|
-
numericFormatDefault: any;
|
|
49
|
-
onAdvanceSortClick: any;
|
|
50
|
-
advanceSortEnabled?: boolean | undefined;
|
|
51
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
52
|
-
//# sourceMappingURL=tableMoreOptions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tableMoreOptions.d.ts","sourceRoot":"","sources":["../../../src/components/TableV36/tableMoreOptions.tsx"],"names":[],"mappings":"AAcA,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,QAAQ,EACR,YAAY,EACZ,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,SAAS,EACT,OAAO,EACP,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,oBAAoB,EACpB,OAAO,EACP,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,2BAA2B,EAC3B,YAAY,EACZ,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,2BAA2B,EAC3B,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,2BAA2B,EAC3B,mBAAmB,EACnB,oBAAoB,EACpB,2BAA2B,EAC3B,kBAAkB,EAClB,0BAA0B,EAC1B,oBAAoB,EACpB,kBAAkB,EAClB,kBAAyB,GAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA,2CAsRA"}
|