impact-ui 4.0.1-alpha.21 → 4.0.1-alpha.23
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/index15.js +2 -2
- package/dist/_virtual/index16.js +2 -2
- 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/TableV36/AdvanceSearchModalItem.d.ts +27 -0
- package/dist/components/TableV36/AdvanceSearchModalItem.d.ts.map +1 -0
- package/dist/components/TableV36/AdvanceSortModal.d.ts +8 -0
- package/dist/components/TableV36/AdvanceSortModal.d.ts.map +1 -0
- package/dist/components/TableV36/AdvanceSortModal.js +297 -0
- package/dist/components/TableV36/AgGridHeader.d.ts +16 -0
- package/dist/components/TableV36/AgGridHeader.d.ts.map +1 -0
- package/dist/components/TableV36/AgGridHeader.js +799 -0
- package/dist/components/TableV36/CommentsPortal.d.ts +31 -0
- package/dist/components/TableV36/CommentsPortal.d.ts.map +1 -0
- package/dist/components/TableV36/CommentsPortal.js +362 -0
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts +13 -0
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts.map +1 -0
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModal.js +282 -0
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts +16 -0
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts.map +1 -0
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.js +302 -0
- package/dist/components/TableV36/NoComments.d.ts +16 -0
- package/dist/components/TableV36/NoComments.d.ts.map +1 -0
- package/dist/components/TableV36/NoComments.js +237 -0
- package/dist/components/TableV36/Table.types.d.ts +89 -0
- package/dist/components/TableV36/Table.types.d.ts.map +1 -0
- package/dist/components/TableV36/actionBar.d.ts +7 -0
- package/dist/components/TableV36/actionBar.d.ts.map +1 -0
- package/dist/components/TableV36/actionBar.js +31 -0
- package/dist/components/TableV36/advanceSearchModal.d.ts +20 -0
- package/dist/components/TableV36/advanceSearchModal.d.ts.map +1 -0
- package/dist/components/TableV36/filterUtils.d.ts +133 -0
- package/dist/components/TableV36/filterUtils.d.ts.map +1 -0
- package/dist/components/TableV36/filterUtils.js +478 -0
- package/dist/components/TableV36/index.d.ts +3 -0
- package/dist/components/TableV36/index.d.ts.map +1 -0
- package/dist/components/TableV36/index.js +1603 -0
- package/dist/components/TableV36/mockData.d.ts +39 -0
- package/dist/components/TableV36/mockData.d.ts.map +1 -0
- package/dist/components/TableV36/tableFunctions.d.ts +63 -0
- package/dist/components/TableV36/tableFunctions.d.ts.map +1 -0
- package/dist/components/TableV36/tableFunctions.js +1796 -0
- package/dist/components/TableV36/tableHeader.d.ts +80 -0
- package/dist/components/TableV36/tableHeader.d.ts.map +1 -0
- package/dist/components/TableV36/tableHeader.js +396 -0
- package/dist/components/TableV36/tableIcons.d.ts +3 -0
- package/dist/components/TableV36/tableIcons.d.ts.map +1 -0
- package/dist/components/TableV36/tableMoreOptions.d.ts +52 -0
- package/dist/components/TableV36/tableMoreOptions.d.ts.map +1 -0
- package/dist/components/TableV36/tableMoreOptions.js +324 -0
- package/dist/components/TableV36/tablePagination.d.ts +7 -0
- package/dist/components/TableV36/tablePagination.d.ts.map +1 -0
- package/dist/components/TableV36/tablePagination.js +67 -0
- package/dist/components/TableV36/tableSettings.d.ts +41 -0
- package/dist/components/TableV36/tableSettings.d.ts.map +1 -0
- package/dist/components/TableV36/tableSettings.js +317 -0
- package/dist/components/TableV36/withCommentIcon.d.ts +7 -0
- package/dist/components/TableV36/withCommentIcon.d.ts.map +1 -0
- package/dist/components/TableV36/withCommentIcon.js +108 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -0
- package/dist/mcp-component-registry.json +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/package.json +5 -5
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType /ChatEditedMessageType.d.ts.map +0 -1
- /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
|
@@ -0,0 +1,317 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns a memoized HOC wrapper for the given renderer.
|
|
3
|
+
* Prefer this over calling `withCommentIcon` directly when building columnDefs.
|
|
4
|
+
*/
|
|
5
|
+
export declare const getCachedCommentIconWrapper: (Renderer: any) => any;
|
|
6
|
+
export declare const withCommentIcon: (Renderer: any) => any;
|
|
7
|
+
//# sourceMappingURL=withCommentIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withCommentIcon.d.ts","sourceRoot":"","sources":["../../../src/components/TableV36/withCommentIcon.tsx"],"names":[],"mappings":"AA4HA;;;GAGG;AACH,eAAO,MAAM,2BAA2B,GAAI,aAAQ,QAgBnD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,aAAQ,QAA0C,CAAC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { memo, useRef } 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 commentIconWrapperCache = /* @__PURE__ */ new WeakMap();
|
|
6
|
+
const undefinedRendererKey = { __undefinedRenderer: true };
|
|
7
|
+
const undefinedWrapperCache = /* @__PURE__ */ new Map();
|
|
8
|
+
const createCommentIconWrapper = (Renderer) => {
|
|
9
|
+
const CommentIconCell = memo((props) => {
|
|
10
|
+
var _a;
|
|
11
|
+
const iconRef = useRef(null);
|
|
12
|
+
const {
|
|
13
|
+
handleCommentIconHover,
|
|
14
|
+
handleMouseEnter,
|
|
15
|
+
handleMouseLeave,
|
|
16
|
+
popup,
|
|
17
|
+
resolvedComments,
|
|
18
|
+
getLatestUnresolvedThreadId,
|
|
19
|
+
configuration,
|
|
20
|
+
colIdentifierKey,
|
|
21
|
+
comments
|
|
22
|
+
} = props.context || {};
|
|
23
|
+
const rowIdentifier = colIdentifierKey ? ((_a = props.data) == null ? void 0 : _a[colIdentifierKey]) || props.node.id : props.node.id;
|
|
24
|
+
const baseCellId = `${rowIdentifier}__${props.column.getColId()}`;
|
|
25
|
+
let effectiveCellId = baseCellId;
|
|
26
|
+
if ((popup == null ? void 0 : popup.cellId) != baseCellId && !(configuration == null ? void 0 : configuration.disableMultiCommentThread)) {
|
|
27
|
+
const baseResolved = Array.isArray(resolvedComments) ? resolvedComments.includes(baseCellId) : false;
|
|
28
|
+
if (baseResolved) {
|
|
29
|
+
const latestUnresolved = getLatestUnresolvedThreadId == null ? void 0 : getLatestUnresolvedThreadId(baseCellId);
|
|
30
|
+
if (latestUnresolved) {
|
|
31
|
+
effectiveCellId = latestUnresolved;
|
|
32
|
+
} else {
|
|
33
|
+
effectiveCellId = baseCellId;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const commentsArray = comments == null ? void 0 : comments[effectiveCellId];
|
|
38
|
+
const hasComment = commentsArray && Array.isArray(commentsArray) && commentsArray.length > 0;
|
|
39
|
+
const isPortalOpen = (popup == null ? void 0 : popup.cellId) === effectiveCellId;
|
|
40
|
+
const displayValue = props.valueFormatted !== void 0 && props.valueFormatted !== null ? props.valueFormatted : props.value;
|
|
41
|
+
const safeValue = displayValue !== null && typeof displayValue === "object" ? JSON.stringify(displayValue) : displayValue ?? "";
|
|
42
|
+
const Content = Renderer ? /* @__PURE__ */ jsx(Renderer, { ...props }) : /* @__PURE__ */ jsx(Fragment, { children: safeValue });
|
|
43
|
+
const isResolved = Array.isArray(resolvedComments) && resolvedComments.find((comment) => comment === effectiveCellId);
|
|
44
|
+
const showBorder = hasComment && isPortalOpen;
|
|
45
|
+
const showIcon = hasComment && !isResolved;
|
|
46
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
47
|
+
showBorder && /* @__PURE__ */ jsx(
|
|
48
|
+
"div",
|
|
49
|
+
{
|
|
50
|
+
style: {
|
|
51
|
+
position: "absolute",
|
|
52
|
+
top: 0,
|
|
53
|
+
left: 0,
|
|
54
|
+
right: 0,
|
|
55
|
+
bottom: 0,
|
|
56
|
+
border: "1px solid #4259ee",
|
|
57
|
+
boxSizing: "border-box",
|
|
58
|
+
pointerEvents: "none",
|
|
59
|
+
zIndex: 1
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
Content,
|
|
64
|
+
showIcon && /* @__PURE__ */ jsx(
|
|
65
|
+
"div",
|
|
66
|
+
{
|
|
67
|
+
ref: iconRef,
|
|
68
|
+
style: {
|
|
69
|
+
position: "absolute",
|
|
70
|
+
top: -15,
|
|
71
|
+
right: 0,
|
|
72
|
+
cursor: "pointer",
|
|
73
|
+
zIndex: 2
|
|
74
|
+
},
|
|
75
|
+
title: `${commentsArray.length} comment${commentsArray.length > 1 ? "s" : ""}`,
|
|
76
|
+
onMouseLeave: handleMouseLeave,
|
|
77
|
+
onMouseOver: () => {
|
|
78
|
+
handleMouseEnter == null ? void 0 : handleMouseEnter();
|
|
79
|
+
handleCommentIconHover == null ? void 0 : handleCommentIconHover(props);
|
|
80
|
+
},
|
|
81
|
+
children: /* @__PURE__ */ jsx(CommentIndicator, {})
|
|
82
|
+
}
|
|
83
|
+
)
|
|
84
|
+
] });
|
|
85
|
+
});
|
|
86
|
+
CommentIconCell.displayName = `withCommentIcon(${(Renderer == null ? void 0 : Renderer.displayName) || (Renderer == null ? void 0 : Renderer.name) || "Cell"})`;
|
|
87
|
+
return CommentIconCell;
|
|
88
|
+
};
|
|
89
|
+
const getCachedCommentIconWrapper = (Renderer) => {
|
|
90
|
+
if (Renderer == null) {
|
|
91
|
+
if (!undefinedWrapperCache.has(undefinedRendererKey)) {
|
|
92
|
+
undefinedWrapperCache.set(undefinedRendererKey, createCommentIconWrapper(void 0));
|
|
93
|
+
}
|
|
94
|
+
return undefinedWrapperCache.get(undefinedRendererKey);
|
|
95
|
+
}
|
|
96
|
+
if (typeof Renderer !== "function") {
|
|
97
|
+
return Renderer;
|
|
98
|
+
}
|
|
99
|
+
let cached = commentIconWrapperCache.get(Renderer);
|
|
100
|
+
if (!cached) {
|
|
101
|
+
cached = createCommentIconWrapper(Renderer);
|
|
102
|
+
commentIconWrapperCache.set(Renderer, cached);
|
|
103
|
+
}
|
|
104
|
+
return cached;
|
|
105
|
+
};
|
|
106
|
+
export {
|
|
107
|
+
getCachedCommentIconWrapper
|
|
108
|
+
};
|
|
@@ -95,6 +95,7 @@ export { Toast } from './Toast';
|
|
|
95
95
|
export type { ToastProps, ToastPosition, ToastVariant } from './Toast/Toast.types';
|
|
96
96
|
export { Table } from './Table';
|
|
97
97
|
export { OldTable } from './TableOld';
|
|
98
|
+
export { TableV36 } from './TableV36';
|
|
98
99
|
export { default as CommentsPanel, CommentsProvider, useComments, CommentsContext, } from './CommentsPanel';
|
|
99
100
|
export type { CommentProps, CommentsPanelProps, CommentsProviderProps, } from './CommentsPanel/CommentsPanel.types';
|
|
100
101
|
export { Select } from './Select';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAGA,YAAY,EACV,kBAAkB,EAClB,IAAI,EACJ,OAAO,EACP,UAAU,EACV,SAAS,EACT,kBAAkB,GACnB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGhD,OAAO,EAAE,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O,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAEpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAEvF,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,YAAY,EACZ,uBAAuB,EACvB,KAAK,GACN,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/components/index.js
CHANGED
|
@@ -48,6 +48,7 @@ import { TextArea } from "./TextArea/index.js";
|
|
|
48
48
|
import { Toast } from "./Toast/index.js";
|
|
49
49
|
import { Table } from "./Table/index.js";
|
|
50
50
|
import { OldTable } from "./TableOld/index.js";
|
|
51
|
+
import { TableV36 } from "./TableV36/index.js";
|
|
51
52
|
import { default as default2 } from "./CommentsPanel/index.js";
|
|
52
53
|
import { Select } from "./Select/index.js";
|
|
53
54
|
import { MonthPicker } from "./MonthPicker/index.js";
|
|
@@ -138,6 +139,7 @@ export {
|
|
|
138
139
|
Stepper,
|
|
139
140
|
Switch,
|
|
140
141
|
Table,
|
|
142
|
+
TableV36,
|
|
141
143
|
Tabs,
|
|
142
144
|
Tag,
|
|
143
145
|
TagGroup,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as reactIs } from "../../../../_virtual/
|
|
1
|
+
import { __module as reactIs } from "../../../../_virtual/index15.js";
|
|
2
2
|
import { __require as requireReactIs_production_min } from "./cjs/react-is.production.min.js";
|
|
3
3
|
import { __require as requireReactIs_development } from "./cjs/react-is.development.js";
|
|
4
4
|
if (process.env.NODE_ENV === "production") {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as isSymbol } from "../../_virtual/
|
|
1
|
+
import { __module as isSymbol } from "../../_virtual/index16.js";
|
|
2
2
|
import { __require as requireCallBound } from "../call-bound/index.js";
|
|
3
3
|
import { __require as requireHasSymbols } from "../has-symbols/index.js";
|
|
4
4
|
import { __require as requireSafeRegexTest } from "../safe-regex-test/index.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "impact-ui",
|
|
3
|
-
"version": "4.0.1-alpha.
|
|
3
|
+
"version": "4.0.1-alpha.23",
|
|
4
4
|
"description": "Impact Analytics UI library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/components/index.js",
|
|
@@ -148,9 +148,9 @@
|
|
|
148
148
|
"@vitest/coverage-istanbul": "^4.0.18",
|
|
149
149
|
"@vitest/coverage-v8": "^4.0.18",
|
|
150
150
|
"@vitest/ui": "^4.0.18",
|
|
151
|
-
"ag-grid-community": "^
|
|
152
|
-
"ag-grid-enterprise": "^
|
|
153
|
-
"ag-grid-react": "^
|
|
151
|
+
"ag-grid-community": "^36.0.2",
|
|
152
|
+
"ag-grid-enterprise": "^36.0.2",
|
|
153
|
+
"ag-grid-react": "^36.0.2",
|
|
154
154
|
"cssnano": "^7.1.3",
|
|
155
155
|
"eslint": "^8.56.0",
|
|
156
156
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
"rollup-plugin-visualizer": "^7.0.1",
|
|
178
178
|
"sass": "^1.72.0",
|
|
179
179
|
"sharp": "^0.34.5",
|
|
180
|
-
"storybook": "
|
|
180
|
+
"storybook": "10.2.15",
|
|
181
181
|
"svgo": "^4.0.1",
|
|
182
182
|
"terser": "^5.46.0",
|
|
183
183
|
"typescript": "^5.3.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatEditedMessageType.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatEditedMessageType /ChatEditedMessageType.tsx"],"names":[],"mappings":"AASA,QAAA,MAAM,qBAAqB,GAAI;;;;;;;;;CAS9B,4CAuCA,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
File without changes
|