impact-ui 4.0.5-tableV36.2 → 4.0.6

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.
Files changed (99) hide show
  1. package/dist/_virtual/index13.js +2 -2
  2. package/dist/_virtual/index14.js +2 -2
  3. package/dist/_virtual/index15.js +2 -2
  4. package/dist/_virtual/index3.js +2 -4
  5. package/dist/_virtual/index4.js +3 -3
  6. package/dist/_virtual/index5.js +4 -2
  7. package/dist/components/CommentsPanel/CommentsContext.d.ts +4 -2
  8. package/dist/components/CommentsPanel/CommentsContext.d.ts.map +1 -1
  9. package/dist/components/CommentsPanel/CommentsPanel.impl.js +1 -1
  10. package/dist/components/CommentsPanel/CommentsPanel.types.d.ts +26 -0
  11. package/dist/components/CommentsPanel/CommentsPanel.types.d.ts.map +1 -1
  12. package/dist/components/CreateItemFlow/CreateItemFlow.types.d.ts +4 -10
  13. package/dist/components/CreateItemFlow/CreateItemFlow.types.d.ts.map +1 -1
  14. package/dist/components/CreateItemFlow/index.d.ts +15 -3
  15. package/dist/components/CreateItemFlow/index.d.ts.map +1 -1
  16. package/dist/components/CreateItemFlow/index.js +63 -134
  17. package/dist/components/DynamicLayout/index.d.ts +12 -9
  18. package/dist/components/DynamicLayout/index.d.ts.map +1 -1
  19. package/dist/components/DynamicLayout/index.js +38 -37
  20. package/dist/components/Menu/IconMenuItem.js +1 -1
  21. package/dist/components/Menu/NestedMenuItem.js +1 -1
  22. package/dist/components/Menu/index.js +1 -1
  23. package/dist/components/Menu/nestedMenuItemsFromObject.js +1 -1
  24. package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.js +1 -1
  25. package/dist/components/Notification/index.js +1 -1
  26. package/dist/components/Stepper/index.js +1 -1
  27. package/dist/components/Table/index.js +1 -1
  28. package/dist/components/Table/withCommentIcon.d.ts.map +1 -1
  29. package/dist/components/Table/withCommentIcon.js +3 -1
  30. package/dist/components/TableOld/index.js +1 -1
  31. package/dist/components/common/MentionEditor/index.js +1 -1
  32. package/dist/components/index.d.ts +0 -1
  33. package/dist/components/index.d.ts.map +1 -1
  34. package/dist/components/index.js +0 -2
  35. package/dist/mcp-component-registry.json +58 -845
  36. package/dist/node_modules/@mui/system/colorManipulator.js +2 -2
  37. package/dist/node_modules/call-bind/index.js +1 -1
  38. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
  39. package/dist/node_modules/react-is/index.js +1 -1
  40. package/dist/node_modules/react-with-styles-interface-css/dist/index.js +1 -1
  41. package/package.json +5 -5
  42. package/dist/components/TableV36/AdvanceSearchModalItem.d.ts +0 -27
  43. package/dist/components/TableV36/AdvanceSearchModalItem.d.ts.map +0 -1
  44. package/dist/components/TableV36/AdvanceSortModal.d.ts +0 -8
  45. package/dist/components/TableV36/AdvanceSortModal.d.ts.map +0 -1
  46. package/dist/components/TableV36/AdvanceSortModal.js +0 -297
  47. package/dist/components/TableV36/AgGridHeader.d.ts +0 -16
  48. package/dist/components/TableV36/AgGridHeader.d.ts.map +0 -1
  49. package/dist/components/TableV36/AgGridHeader.js +0 -799
  50. package/dist/components/TableV36/CellTooltip.d.ts +0 -14
  51. package/dist/components/TableV36/CellTooltip.d.ts.map +0 -1
  52. package/dist/components/TableV36/CellTooltip.js +0 -11
  53. package/dist/components/TableV36/CommentsPortal.d.ts +0 -31
  54. package/dist/components/TableV36/CommentsPortal.d.ts.map +0 -1
  55. package/dist/components/TableV36/CommentsPortal.js +0 -362
  56. package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts +0 -13
  57. package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts.map +0 -1
  58. package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModal.js +0 -282
  59. package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts +0 -16
  60. package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts.map +0 -1
  61. package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.js +0 -302
  62. package/dist/components/TableV36/NoComments.d.ts +0 -16
  63. package/dist/components/TableV36/NoComments.d.ts.map +0 -1
  64. package/dist/components/TableV36/NoComments.js +0 -237
  65. package/dist/components/TableV36/Table.types.d.ts +0 -97
  66. package/dist/components/TableV36/Table.types.d.ts.map +0 -1
  67. package/dist/components/TableV36/actionBar.d.ts +0 -7
  68. package/dist/components/TableV36/actionBar.d.ts.map +0 -1
  69. package/dist/components/TableV36/actionBar.js +0 -31
  70. package/dist/components/TableV36/advanceSearchModal.d.ts +0 -20
  71. package/dist/components/TableV36/advanceSearchModal.d.ts.map +0 -1
  72. package/dist/components/TableV36/filterUtils.d.ts +0 -133
  73. package/dist/components/TableV36/filterUtils.d.ts.map +0 -1
  74. package/dist/components/TableV36/filterUtils.js +0 -478
  75. package/dist/components/TableV36/index.d.ts +0 -3
  76. package/dist/components/TableV36/index.d.ts.map +0 -1
  77. package/dist/components/TableV36/index.js +0 -1632
  78. package/dist/components/TableV36/mockData.d.ts +0 -39
  79. package/dist/components/TableV36/mockData.d.ts.map +0 -1
  80. package/dist/components/TableV36/tableFunctions.d.ts +0 -63
  81. package/dist/components/TableV36/tableFunctions.d.ts.map +0 -1
  82. package/dist/components/TableV36/tableFunctions.js +0 -1796
  83. package/dist/components/TableV36/tableHeader.d.ts +0 -80
  84. package/dist/components/TableV36/tableHeader.d.ts.map +0 -1
  85. package/dist/components/TableV36/tableHeader.js +0 -396
  86. package/dist/components/TableV36/tableIcons.d.ts +0 -3
  87. package/dist/components/TableV36/tableIcons.d.ts.map +0 -1
  88. package/dist/components/TableV36/tableMoreOptions.d.ts +0 -52
  89. package/dist/components/TableV36/tableMoreOptions.d.ts.map +0 -1
  90. package/dist/components/TableV36/tableMoreOptions.js +0 -324
  91. package/dist/components/TableV36/tablePagination.d.ts +0 -7
  92. package/dist/components/TableV36/tablePagination.d.ts.map +0 -1
  93. package/dist/components/TableV36/tablePagination.js +0 -67
  94. package/dist/components/TableV36/tableSettings.d.ts +0 -41
  95. package/dist/components/TableV36/tableSettings.d.ts.map +0 -1
  96. package/dist/components/TableV36/tableSettings.js +0 -317
  97. package/dist/components/TableV36/withCommentIcon.d.ts +0 -13
  98. package/dist/components/TableV36/withCommentIcon.d.ts.map +0 -1
  99. package/dist/components/TableV36/withCommentIcon.js +0 -125
@@ -1,317 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import React__default, { useState, useRef, useCallback, useEffect, useMemo } from "react";
3
- import default_1$2 from "../../node_modules/@mui/icons-material/AutoFixHigh.js";
4
- import default_1$1 from "../../node_modules/@mui/icons-material/FormatColorTextOutlined.js";
5
- import default_1 from "../../node_modules/@mui/icons-material/ViewColumnOutlined.js";
6
- import { RadioButtonGroup } from "../RadioButtonGroup/index.js";
7
- import { Tabs } from "../Tabs/index.js";
8
- function TableSettings({
9
- showMenu,
10
- Columns,
11
- actualRef,
12
- tableFontSize,
13
- setTableFontSize,
14
- handleMenuClick,
15
- onNumberFormatChange,
16
- colDefs,
17
- setShowMenu,
18
- showTableSetting,
19
- setShowTableSetting,
20
- setTableSettingOpen,
21
- tableActions,
22
- onTableActionsTabClick,
23
- showFilterStrip,
24
- hideTableFormat,
25
- hideTableActions,
26
- savedViewsOptions,
27
- handleSaveAndApply,
28
- maxSavedViews,
29
- handleSavedViewClick,
30
- handleEditSaveView,
31
- isSaveViewEnabled,
32
- isSavingViewLoading,
33
- handleDeleteViewClick,
34
- isDeleteViewLoading,
35
- handleSetDefaultView,
36
- hideNumericFormat,
37
- hideFontSize,
38
- customTabInTableSettings,
39
- saveViewCustomFilter,
40
- customRenderSaveViewContent,
41
- onTableSettingClick,
42
- deleteViewPromptText,
43
- isViewNameUniqueAcrossTypes,
44
- tableSettingsTitle = "Table Settings",
45
- registerTableSettingToggle,
46
- numericFormatDefault
47
- }) {
48
- const [selectedMenuTab, setSelectedMenuTab] = useState("Columns");
49
- const [numericFormat, setNumericFormat] = useState(numericFormatDefault || "full_no");
50
- const showTableSettingRef = useRef(showTableSetting);
51
- showTableSettingRef.current = showTableSetting;
52
- const onFontSizeChange = useCallback(
53
- (val) => {
54
- setTableFontSize(val);
55
- },
56
- [setTableFontSize]
57
- );
58
- const onNumericFormatChange = useCallback(
59
- (val) => {
60
- setNumericFormat(val);
61
- onNumberFormatChange(val);
62
- },
63
- [onNumberFormatChange]
64
- );
65
- useEffect(() => {
66
- setNumericFormat(numericFormatDefault);
67
- }, [numericFormatDefault]);
68
- const onCloseTableSetting = useCallback(() => {
69
- setSelectedMenuTab("Columns");
70
- setShowMenu(false);
71
- setShowTableSetting(false);
72
- setTableSettingOpen(false);
73
- onTableSettingClick(false);
74
- }, [setShowMenu, setShowTableSetting, setTableSettingOpen, onTableSettingClick]);
75
- const tabPanels = useMemo(
76
- () => [
77
- /* @__PURE__ */ jsx(
78
- Columns,
79
- {
80
- ref: actualRef,
81
- column: colDefs,
82
- customRenderSaveViewContent,
83
- deleteViewPromptText,
84
- handleDeleteViewClick,
85
- handleEditSaveView,
86
- handleSaveAndApply,
87
- handleSavedViewClick,
88
- handleSetDefaultView,
89
- isDeleteViewLoading,
90
- isSaveViewEnabled,
91
- isSavingViewLoading,
92
- isViewNameUniqueAcrossTypes,
93
- maxSavedViews,
94
- savedViewsOptions,
95
- saveViewCustomFilter,
96
- showMenu
97
- },
98
- "columns-tab"
99
- ),
100
- !hideTableFormat && /* @__PURE__ */ jsx(
101
- TableFormat,
102
- {
103
- hideFontSize,
104
- hideNumericFormat,
105
- numericFormat,
106
- tableFontSize,
107
- onFontSizeChange,
108
- onNumericFormatChange
109
- },
110
- "format-tab"
111
- ),
112
- !hideTableActions && /* @__PURE__ */ jsx(TableActions, { tableActions }, "actions-tab"),
113
- ...Array.isArray(customTabInTableSettings) ? customTabInTableSettings.map((tab, index) => {
114
- var _a;
115
- return /* @__PURE__ */ jsx(React__default.Fragment, { children: tab == null ? void 0 : tab.tabPanels }, ((_a = tab == null ? void 0 : tab.tabNames) == null ? void 0 : _a.value) || `custom-tab-${index}`);
116
- }) : []
117
- ].filter(Boolean),
118
- [
119
- Columns,
120
- actualRef,
121
- colDefs,
122
- customRenderSaveViewContent,
123
- deleteViewPromptText,
124
- handleDeleteViewClick,
125
- handleEditSaveView,
126
- handleSaveAndApply,
127
- handleSavedViewClick,
128
- handleSetDefaultView,
129
- isDeleteViewLoading,
130
- isSaveViewEnabled,
131
- isSavingViewLoading,
132
- isViewNameUniqueAcrossTypes,
133
- maxSavedViews,
134
- savedViewsOptions,
135
- saveViewCustomFilter,
136
- showMenu,
137
- hideTableFormat,
138
- hideFontSize,
139
- hideNumericFormat,
140
- numericFormat,
141
- tableFontSize,
142
- onFontSizeChange,
143
- onNumericFormatChange,
144
- hideTableActions,
145
- tableActions,
146
- customTabInTableSettings
147
- ]
148
- );
149
- const tabNames = useMemo(
150
- () => [
151
- {
152
- label: selectedMenuTab === "Columns" ? "Columns" : "",
153
- value: "Columns",
154
- icon: /* @__PURE__ */ jsx(default_1, { fontSize: "small" })
155
- },
156
- !hideTableFormat && {
157
- label: selectedMenuTab === "Format" ? "Format" : "",
158
- value: "Format",
159
- icon: /* @__PURE__ */ jsx(default_1$1, { fontSize: "small" })
160
- },
161
- !hideTableActions && {
162
- label: selectedMenuTab === "Actions" ? "Actions" : "",
163
- value: "Actions",
164
- icon: /* @__PURE__ */ jsx(default_1$2, {})
165
- },
166
- ...Array.isArray(customTabInTableSettings) ? customTabInTableSettings.map((tab) => {
167
- var _a, _b;
168
- return {
169
- ...tab.tabNames,
170
- label: selectedMenuTab === ((_a = tab == null ? void 0 : tab.tabNames) == null ? void 0 : _a.value) ? (_b = tab == null ? void 0 : tab.tabNames) == null ? void 0 : _b.label : ""
171
- };
172
- }) : []
173
- ].filter(Boolean),
174
- [selectedMenuTab, hideTableFormat, hideTableActions, customTabInTableSettings]
175
- );
176
- const handleTabChange = useCallback(
177
- (_event, val) => {
178
- setSelectedMenuTab(val);
179
- if (val === "Actions") {
180
- onTableActionsTabClick();
181
- }
182
- },
183
- [onTableActionsTabClick]
184
- );
185
- useEffect(() => {
186
- if (typeof registerTableSettingToggle !== "function") return void 0;
187
- const toggle = (open, tabName, options = {}) => {
188
- const shouldOpen = typeof open === "undefined" ? !showTableSettingRef.current : Boolean(open);
189
- if (shouldOpen) {
190
- if (options.menuOnly) {
191
- setShowMenu(true);
192
- } else {
193
- setShowMenu(true);
194
- setShowTableSetting(true);
195
- setTableSettingOpen(true);
196
- if (tabName) {
197
- setSelectedMenuTab(tabName);
198
- }
199
- onTableSettingClick(true);
200
- }
201
- } else if (options.menuOnly) {
202
- setShowMenu(false);
203
- } else {
204
- setSelectedMenuTab("Columns");
205
- setShowMenu(false);
206
- setShowTableSetting(false);
207
- setTableSettingOpen(false);
208
- onTableSettingClick(false);
209
- }
210
- };
211
- registerTableSettingToggle(toggle);
212
- }, [
213
- registerTableSettingToggle,
214
- setShowMenu,
215
- setShowTableSetting,
216
- setTableSettingOpen,
217
- onTableSettingClick
218
- ]);
219
- return /* @__PURE__ */ jsxs(
220
- "div",
221
- {
222
- className: `table-setting-main-container ${showTableSetting ? "display-table-setting" : ""} ${showFilterStrip ? "filters-strip-visible" : ""}`,
223
- children: [
224
- /* @__PURE__ */ jsxs("div", { className: "table-setting-header", children: [
225
- /* @__PURE__ */ jsx("h2", { children: tableSettingsTitle }),
226
- /* @__PURE__ */ jsx(
227
- "span",
228
- {
229
- className: "close_icon",
230
- role: "button",
231
- tabIndex: 0,
232
- onClick: onCloseTableSetting,
233
- onKeyDown: (e) => {
234
- if (e.key === "Enter" || e.key === " ") {
235
- e.preventDefault();
236
- onCloseTableSetting();
237
- }
238
- }
239
- }
240
- )
241
- ] }),
242
- /* @__PURE__ */ jsx(
243
- Tabs,
244
- {
245
- remountOnTabChange: false,
246
- tabNames,
247
- tabPanels,
248
- value: selectedMenuTab,
249
- onChange: handleTabChange
250
- }
251
- )
252
- ]
253
- }
254
- );
255
- }
256
- const TableFormat = React__default.memo(function TableFormat2({
257
- tableFontSize,
258
- onFontSizeChange,
259
- numericFormat,
260
- onNumericFormatChange,
261
- hideNumericFormat,
262
- hideFontSize
263
- }) {
264
- const fontSizeOptions = useMemo(
265
- () => [
266
- { label: "Small", value: "small" },
267
- { label: "Medium (default)", value: "medium" },
268
- { label: "Large", value: "large" }
269
- ],
270
- []
271
- );
272
- const numericOptions = useMemo(
273
- () => [
274
- { label: "Full Number", value: "full_no" },
275
- { label: "In K (Thousands)", value: "thou" },
276
- { label: "In M (Millions)", value: "mil" },
277
- { label: "In B (Billions)", value: "bil" }
278
- ],
279
- []
280
- );
281
- return /* @__PURE__ */ jsxs("div", { className: "table-setting-format-settings", children: [
282
- !hideFontSize && /* @__PURE__ */ jsxs("div", { className: "table-setting-font-size-setting-container", children: [
283
- /* @__PURE__ */ jsx("h3", { className: "custom-menu-sub-header", children: "Font size" }),
284
- /* @__PURE__ */ jsx(
285
- RadioButtonGroup,
286
- {
287
- options: fontSizeOptions,
288
- selectedOption: "medium",
289
- value: tableFontSize,
290
- onChange: (_e, val) => {
291
- onFontSizeChange(val);
292
- }
293
- }
294
- )
295
- ] }),
296
- !hideNumericFormat && /* @__PURE__ */ jsxs("div", { className: "table-setting-number-format-setting-container", children: [
297
- /* @__PURE__ */ jsx("h3", { className: "custom-menu-sub-header", children: "Numeric Values" }),
298
- /* @__PURE__ */ jsx(
299
- RadioButtonGroup,
300
- {
301
- options: numericOptions,
302
- selectedOption: "full_no",
303
- value: numericFormat,
304
- onChange: (_e, val) => {
305
- onNumericFormatChange(val);
306
- }
307
- }
308
- )
309
- ] })
310
- ] });
311
- });
312
- const TableActions = React__default.memo(function TableActions2({ tableActions }) {
313
- return /* @__PURE__ */ jsx("div", { className: "table-setting-action-settings", children: /* @__PURE__ */ jsx("div", { className: "table-setting-action-container", children: tableActions }) });
314
- });
315
- export {
316
- TableSettings as default
317
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * True when a column's `cellRenderer` still ends up painting just the raw value, so AG Grid's
3
- * truncation-based tooltip is meaningful for it. Covers both "no renderer at all" and this HOC
4
- * wrapping nothing, which is what every column looks like once the comment feature is enabled.
5
- */
6
- export declare const isPlainValueRenderer: (renderer: any) => boolean;
7
- /**
8
- * Returns a memoized HOC wrapper for the given renderer.
9
- * Prefer this over calling `withCommentIcon` directly when building columnDefs.
10
- */
11
- export declare const getCachedCommentIconWrapper: (Renderer: any) => any;
12
- export declare const withCommentIcon: (Renderer: any) => any;
13
- //# sourceMappingURL=withCommentIcon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"withCommentIcon.d.ts","sourceRoot":"","sources":["../../../src/components/TableV36/withCommentIcon.tsx"],"names":[],"mappings":"AAWA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,aAAQ,YACY,CAAC;AA2I1D;;;GAGG;AACH,eAAO,MAAM,2BAA2B,GAAI,aAAQ,QAgBnD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,aAAQ,QAA0C,CAAC"}
@@ -1,125 +0,0 @@
1
- import { jsx, Fragment, jsxs } from "react/jsx-runtime";
2
- import { memo, useRef, useEffect } from "react";
3
- import { getAssetUrl } from "../../utils/assetBase.js";
4
- const CommentIndicator = (props) => /* @__PURE__ */ jsx("img", { alt: "", src: getAssetUrl("icons/comment-indicator.svg"), ...props });
5
- const PLAIN_VALUE_CELL = "__impactPlainValueCell";
6
- const isPlainValueRenderer = (renderer) => renderer == null || renderer[PLAIN_VALUE_CELL] === true;
7
- const isTruncated = (element) => {
8
- if (!element) return false;
9
- return element.clientWidth < element.scrollWidth || element.clientHeight < element.scrollHeight;
10
- };
11
- const commentIconWrapperCache = /* @__PURE__ */ new WeakMap();
12
- const undefinedRendererKey = { __undefinedRenderer: true };
13
- const undefinedWrapperCache = /* @__PURE__ */ new Map();
14
- const createCommentIconWrapper = (Renderer) => {
15
- const CommentIconCell = memo((props) => {
16
- var _a;
17
- const iconRef = useRef(null);
18
- const {
19
- handleCommentIconHover,
20
- handleMouseEnter,
21
- handleMouseLeave,
22
- popup,
23
- resolvedComments,
24
- getLatestUnresolvedThreadId,
25
- configuration,
26
- colIdentifierKey,
27
- comments
28
- } = props.context || {};
29
- const rowIdentifier = colIdentifierKey ? ((_a = props.data) == null ? void 0 : _a[colIdentifierKey]) || props.node.id : props.node.id;
30
- const baseCellId = `${rowIdentifier}__${props.column.getColId()}`;
31
- let effectiveCellId = baseCellId;
32
- if ((popup == null ? void 0 : popup.cellId) != baseCellId && !(configuration == null ? void 0 : configuration.disableMultiCommentThread)) {
33
- const baseResolved = Array.isArray(resolvedComments) ? resolvedComments.includes(baseCellId) : false;
34
- if (baseResolved) {
35
- const latestUnresolved = getLatestUnresolvedThreadId == null ? void 0 : getLatestUnresolvedThreadId(baseCellId);
36
- if (latestUnresolved) {
37
- effectiveCellId = latestUnresolved;
38
- } else {
39
- effectiveCellId = baseCellId;
40
- }
41
- }
42
- }
43
- const commentsArray = comments == null ? void 0 : comments[effectiveCellId];
44
- const hasComment = commentsArray && Array.isArray(commentsArray) && commentsArray.length > 0;
45
- const isPortalOpen = (popup == null ? void 0 : popup.cellId) === effectiveCellId;
46
- const displayValue = props.valueFormatted !== void 0 && props.valueFormatted !== null ? props.valueFormatted : props.value;
47
- const safeValue = displayValue !== null && typeof displayValue === "object" ? JSON.stringify(displayValue) : displayValue ?? "";
48
- const Content = Renderer ? /* @__PURE__ */ jsx(Renderer, { ...props }) : /* @__PURE__ */ jsx(Fragment, { children: safeValue });
49
- useEffect(() => {
50
- if (Renderer || typeof props.setTooltip !== "function" || safeValue === "") return;
51
- props.setTooltip(String(safeValue), () => {
52
- const cell = props.eParentOfValue ?? props.eGridCell;
53
- if (!cell) return false;
54
- const valueEl = cell.children.length === 0 ? cell : cell.querySelector(".ag-cell-value");
55
- return isTruncated(valueEl ?? cell);
56
- });
57
- });
58
- const isResolved = Array.isArray(resolvedComments) && resolvedComments.find((comment) => comment === effectiveCellId);
59
- const showBorder = hasComment && isPortalOpen;
60
- const showIcon = hasComment && !isResolved;
61
- return /* @__PURE__ */ jsxs(Fragment, { children: [
62
- showBorder && /* @__PURE__ */ jsx(
63
- "div",
64
- {
65
- style: {
66
- position: "absolute",
67
- top: 0,
68
- left: 0,
69
- right: 0,
70
- bottom: 0,
71
- border: "1px solid #4259ee",
72
- boxSizing: "border-box",
73
- pointerEvents: "none",
74
- zIndex: 1
75
- }
76
- }
77
- ),
78
- Content,
79
- showIcon && /* @__PURE__ */ jsx(
80
- "div",
81
- {
82
- ref: iconRef,
83
- style: {
84
- position: "absolute",
85
- top: -15,
86
- right: 0,
87
- cursor: "pointer",
88
- zIndex: 2
89
- },
90
- title: `${commentsArray.length} comment${commentsArray.length > 1 ? "s" : ""}`,
91
- onMouseLeave: handleMouseLeave,
92
- onMouseOver: () => {
93
- handleMouseEnter == null ? void 0 : handleMouseEnter();
94
- handleCommentIconHover == null ? void 0 : handleCommentIconHover(props);
95
- },
96
- children: /* @__PURE__ */ jsx(CommentIndicator, {})
97
- }
98
- )
99
- ] });
100
- });
101
- CommentIconCell.displayName = `withCommentIcon(${(Renderer == null ? void 0 : Renderer.displayName) || (Renderer == null ? void 0 : Renderer.name) || "Cell"})`;
102
- CommentIconCell[PLAIN_VALUE_CELL] = !Renderer;
103
- return CommentIconCell;
104
- };
105
- const getCachedCommentIconWrapper = (Renderer) => {
106
- if (Renderer == null) {
107
- if (!undefinedWrapperCache.has(undefinedRendererKey)) {
108
- undefinedWrapperCache.set(undefinedRendererKey, createCommentIconWrapper(void 0));
109
- }
110
- return undefinedWrapperCache.get(undefinedRendererKey);
111
- }
112
- if (typeof Renderer !== "function") {
113
- return Renderer;
114
- }
115
- let cached = commentIconWrapperCache.get(Renderer);
116
- if (!cached) {
117
- cached = createCommentIconWrapper(Renderer);
118
- commentIconWrapperCache.set(Renderer, cached);
119
- }
120
- return cached;
121
- };
122
- export {
123
- getCachedCommentIconWrapper,
124
- isPlainValueRenderer
125
- };