@megha-ui/react 1.2.453 → 1.2.455
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { memo, useCallback, useEffect, useMemo, useState, } from "react";
|
|
3
3
|
import Shimmer from "./shimmer";
|
|
4
4
|
import Checkbox from "../../checkbox";
|
|
@@ -125,7 +125,9 @@ const GridRow = ({ item, rowStyle, cellStyle, rowHeight, bulkSelect, selectedRow
|
|
|
125
125
|
ignoreRowSelect.has((_p = item["id"].value) === null || _p === void 0 ? void 0 : _p.toString()), onChange: () => { var _a; return toggleRowSelection((_a = item["id"].value) === null || _a === void 0 ? void 0 : _a.toString()); }, selected: item["id"] && selectedRows.has(item["id"].value), wrapperClass: checkboxWrapper }) })), columns.map((column, colIndex) => {
|
|
126
126
|
var _a, _b, _c, _d, _e;
|
|
127
127
|
const cellData = item[column.key];
|
|
128
|
-
const cellValue = cellData && cellData.isArrayString ? (
|
|
128
|
+
const cellValue = cellData && cellData.isArrayString ? (_jsx("div", { "data-tooltip-id": (_a = item.id.value.toString()) !== null && _a !== void 0 ? _a : colIndex.toString(), "data-tooltip-html": `<div class="flex flex-col">${cellData.value.toString().split(",").map(item => `<div>${item}</div>`).join("")}</div>`, children: cellData.value.toString().split(",").length > 1 ?
|
|
129
|
+
_jsxs(_Fragment, { children: [_jsx("span", { children: "Multiple" }), _jsx(Tooltip, { className: "custom-tooltip", id: (_b = item.id.value.toString()) !== null && _b !== void 0 ? _b : colIndex.toString(), place: "top" })] })
|
|
130
|
+
: _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, (_c = column.dataType) !== null && _c !== void 0 ? _c : "string", locale, formatOptions)) : cellData ? (cellData) : ("");
|
|
129
131
|
const cellUrl = cellData === null || cellData === void 0 ? void 0 : cellData.url;
|
|
130
132
|
const isHidden = column.overflowHidden;
|
|
131
133
|
if (!column.hidden && !groupByKeys.includes(column.key)) {
|
package/package.json
CHANGED