@megha-ui/react 1.2.639 → 1.2.640

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.
@@ -126,13 +126,18 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
126
126
  _columns = _columns.map((col) => {
127
127
  var _a, _b;
128
128
  let isArrayString = false;
129
- if (isMultipleChips) {
130
- const columnRowData = data
131
- .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 : ""; })
132
- .filter((item) => item);
133
- if (columnRowData.length > 0 &&
134
- columnRowData.some((item) => { var _a; return (_a = (item !== null && item !== void 0 ? item : "").toString()) === null || _a === void 0 ? void 0 : _a.includes(">>"); })) {
135
- isArrayString = true;
129
+ if (typeof col.isArrayString !== "undefined") {
130
+ isArrayString = col.isArrayString;
131
+ }
132
+ else {
133
+ if (isMultipleChips) {
134
+ const columnRowData = data
135
+ .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 : ""; })
136
+ .filter((item) => item);
137
+ if (columnRowData.length > 0 &&
138
+ columnRowData.some((item) => { var _a; return (_a = (item !== null && item !== void 0 ? item : "").toString()) === null || _a === void 0 ? void 0 : _a.includes(">>"); })) {
139
+ isArrayString = true;
140
+ }
136
141
  }
137
142
  }
138
143
  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" });
@@ -748,7 +753,6 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
748
753
  setHugLoading(false);
749
754
  }, 1000);
750
755
  }
751
- console.log({ columnWidths });
752
756
  }, [
753
757
  paginatedData,
754
758
  sortedData,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.639",
3
+ "version": "1.2.640",
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",