@megha-ui/react 1.2.729 → 1.2.733
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.
|
@@ -132,21 +132,15 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
132
132
|
].map((col) => {
|
|
133
133
|
var _a, _b;
|
|
134
134
|
let isArrayString = false;
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
.filter((item) => item);
|
|
143
|
-
if (columnRowData.length > 0 &&
|
|
144
|
-
columnRowData.some((item) => { var _a; return (_a = (item !== null && item !== void 0 ? item : "").toString()) === null || _a === void 0 ? void 0 : _a.includes(">>"); })) {
|
|
145
|
-
isArrayString = true;
|
|
146
|
-
}
|
|
135
|
+
const columnRowData = data
|
|
136
|
+
.map((row) => { var _a, _b; return (_b = (_a = row === null || row === void 0 ? void 0 : row[col.key]) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : ""; })
|
|
137
|
+
.filter((item) => item);
|
|
138
|
+
if (columnRowData.length > 0 &&
|
|
139
|
+
columnRowData.some((item) => { var _a; return (_a = (item !== null && item !== void 0 ? item : "").toString()) === null || _a === void 0 ? void 0 : _a.includes(">>"); })) {
|
|
140
|
+
if (typeof col.isArrayString !== "undefined") {
|
|
141
|
+
isArrayString = col.isArrayString;
|
|
147
142
|
}
|
|
148
143
|
}
|
|
149
|
-
console.log("Column Data Type:", col.key, columnData === null || columnData === void 0 ? void 0 : columnData[col.key], isArrayString);
|
|
150
144
|
return Object.assign(Object.assign({}, col), { isArrayString, dataType: (_b = (_a = col.dataType) !== null && _a !== void 0 ? _a : columnData === null || columnData === void 0 ? void 0 : columnData[col.key]) !== null && _b !== void 0 ? _b : "string" });
|
|
151
145
|
});
|
|
152
146
|
}
|
|
@@ -156,12 +156,15 @@ const GridRow = ({ item, rowStyle, cellStyle, rowHeight, bulkSelect, selectedRow
|
|
|
156
156
|
.toString()
|
|
157
157
|
.split(">>")
|
|
158
158
|
.slice(0, 3)
|
|
159
|
-
.map((item, index) => (_jsx("div", { className: "flex-grow-0 flex-shrink-0 rounded-full", style:
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
159
|
+
.map((item, index) => (_jsx("div", { className: "flex-grow-0 flex-shrink-0 rounded-full", style: cellData.value.toString().split(">>").slice(0, 3)
|
|
160
|
+
.length > 1
|
|
161
|
+
? {
|
|
162
|
+
background: "var(--standard)",
|
|
163
|
+
color: "var(--foreground)",
|
|
164
|
+
border: "1px solid var(--standard)",
|
|
165
|
+
padding: "0.25rem 0.5rem",
|
|
166
|
+
}
|
|
167
|
+
: {}, children: item }))), cellData.value.toString().split(">>").slice(3).length >
|
|
165
168
|
0 && (_jsxs("div", { className: "flex-grow-0 flex-shrink-0", "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
|
|
166
169
|
.toString()
|
|
167
170
|
.split(">>")
|
package/package.json
CHANGED