@megha-ui/react 1.2.566 → 1.2.568

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.
@@ -125,15 +125,15 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
125
125
  return acc;
126
126
  }, {});
127
127
  _columns = _columns.map((col) => {
128
- var _a, _b;
128
+ var _a, _b, _c;
129
129
  let isArrayString = false;
130
130
  if (isMultipleChips) {
131
131
  const columnRowData = data.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 : ""); }).filter(item => item)[0];
132
- if (columnRowData.toString().includes(">>")) {
132
+ if ((_a = (columnRowData !== null && columnRowData !== void 0 ? columnRowData : "").toString()) === null || _a === void 0 ? void 0 : _a.includes(">>")) {
133
133
  isArrayString = true;
134
134
  }
135
135
  }
136
- 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" });
136
+ return Object.assign(Object.assign({}, col), { isArrayString, dataType: (_c = (_b = col.dataType) !== null && _b !== void 0 ? _b : columnData === null || columnData === void 0 ? void 0 : columnData[col.key]) !== null && _c !== void 0 ? _c : "string" });
137
137
  });
138
138
  }
139
139
  setGridColumns(_columns);
@@ -176,12 +176,14 @@ const GridRow = ({ item, rowStyle, cellStyle, rowHeight, bulkSelect, selectedRow
176
176
  .toString()
177
177
  .split(">>")
178
178
  .map((item) => `<div>${item}</div>`)
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("span", { children: cellData.value })) })) : 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: (_e = cellData === null || cellData === void 0 ? void 0 : cellData.value) !== null && _e !== void 0 ? _e : "" })) : 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, (_f = column.dataType) !== null && _f !== void 0 ? _f : "string", locale, formatOptions)) : cellData ? (cellData) : ("");
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("span", { children: cellData.value })) })) : column.isArrayString ? (_jsx("span", { style: (cellData === null || cellData === void 0 ? void 0 : cellData.value)
180
+ ? {
181
+ background: "var(--standard)",
182
+ color: "var(--foreground)",
183
+ border: "1px solid var(--standard)",
184
+ padding: "0.25rem 0.5rem",
185
+ }
186
+ : {}, children: (_e = cellData === null || cellData === void 0 ? void 0 : cellData.value) !== null && _e !== void 0 ? _e : "" })) : 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, (_f = column.dataType) !== null && _f !== void 0 ? _f : "string", locale, formatOptions)) : cellData ? (cellData) : ("");
185
187
  const cellUrl = cellData === null || cellData === void 0 ? void 0 : cellData.url;
186
188
  const isHidden = column.overflowHidden;
187
189
  if (!column.hidden && !groupByKeys.includes(column.key)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.566",
3
+ "version": "1.2.568",
4
4
  "description": "A collection of reusable UI components for React applications, built with TypeScript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",