@megha-ui/react 1.2.551 → 1.2.552
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.
|
@@ -74,6 +74,7 @@ const GridRow = ({ item, rowStyle, cellStyle, rowHeight, bulkSelect, selectedRow
|
|
|
74
74
|
if (height) {
|
|
75
75
|
const availableHeight = height - 50;
|
|
76
76
|
const styles = currentTooltip.getAttribute("style");
|
|
77
|
+
console.log(currentTooltip.getBoundingClientRect());
|
|
77
78
|
currentTooltip.setAttribute("style", `${styles} height: max-content; max-height: ${availableHeight}px; overflow: hidden auto;`);
|
|
78
79
|
}
|
|
79
80
|
}
|
|
@@ -175,7 +176,12 @@ const GridRow = ({ item, rowStyle, cellStyle, rowHeight, bulkSelect, selectedRow
|
|
|
175
176
|
.toString()
|
|
176
177
|
.split(">>")
|
|
177
178
|
.map((item) => `<div>${item}</div>`)
|
|
178
|
-
.join("")}</div>`, children: ["Multiple", " ", `(${cellData.value.toString().split(">>").length})`] }), _jsx(Tooltip, { className: "custom-tooltip", id: (_d = item.id.value.toString()) !== null && _d !== void 0 ? _d : colIndex.toString(), place: "top" })] })) })) : (_jsx(
|
|
179
|
+
.join("")}</div>`, children: ["Multiple", " ", `(${cellData.value.toString().split(">>").length})`] }), _jsx(Tooltip, { className: "custom-tooltip", id: (_d = item.id.value.toString()) !== null && _d !== void 0 ? _d : colIndex.toString(), place: "top" })] })) })) : (_jsx(_Fragment, { children: column.isArrayString ? (_jsx("span", { style: {
|
|
180
|
+
background: "var(--standard)",
|
|
181
|
+
color: "var(--foreground)",
|
|
182
|
+
border: "1px solid var(--standard)",
|
|
183
|
+
padding: "0.25rem 0.5rem",
|
|
184
|
+
}, children: cellData.value })) : (_jsx("span", { children: cellData.value })) })) })) : cellData && Object.keys(cellData).includes("html") ? (cellData === null || cellData === void 0 ? void 0 : cellData.html) : cellData && Object.keys(cellData).includes("value") ? (formatValue(cellData === null || cellData === void 0 ? void 0 : cellData.value, (_e = column.dataType) !== null && _e !== void 0 ? _e : "string", locale, formatOptions)) : cellData ? (cellData) : ("");
|
|
179
185
|
const cellUrl = cellData === null || cellData === void 0 ? void 0 : cellData.url;
|
|
180
186
|
const isHidden = column.overflowHidden;
|
|
181
187
|
if (!column.hidden && !groupByKeys.includes(column.key)) {
|
package/package.json
CHANGED