@megha-ui/react 1.2.589 → 1.2.591
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.
|
@@ -128,8 +128,11 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
128
128
|
var _a, _b;
|
|
129
129
|
let isArrayString = false;
|
|
130
130
|
if (isMultipleChips) {
|
|
131
|
-
const columnRowData = data
|
|
132
|
-
|
|
131
|
+
const columnRowData = data
|
|
132
|
+
.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 : ""; })
|
|
133
|
+
.filter((item) => item);
|
|
134
|
+
if (columnRowData.length > 0 &&
|
|
135
|
+
columnRowData.some((item) => { var _a; return (_a = (item !== null && item !== void 0 ? item : "").toString()) === null || _a === void 0 ? void 0 : _a.includes(">>"); })) {
|
|
133
136
|
isArrayString = true;
|
|
134
137
|
}
|
|
135
138
|
}
|
|
@@ -325,10 +328,6 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
325
328
|
: "";
|
|
326
329
|
return value;
|
|
327
330
|
}));
|
|
328
|
-
console.log(_filteredData.map(item => (Object.keys(item).filter(key => Object.keys(searchQueries).includes(key)).reduce((acc, key) => {
|
|
329
|
-
acc[key] = item[key];
|
|
330
|
-
return acc;
|
|
331
|
-
}, {}))));
|
|
332
331
|
if (globalSearchOp === "and") {
|
|
333
332
|
return query.every((term) => rowValues.some((value) => value.includes(term)));
|
|
334
333
|
}
|
|
@@ -359,6 +358,14 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
359
358
|
});
|
|
360
359
|
}
|
|
361
360
|
}
|
|
361
|
+
console.log(_filteredData.map((item) => Object.keys(item)
|
|
362
|
+
.filter((key) => Object.keys(searchQueries).includes(key))
|
|
363
|
+
.reduce((acc, key) => {
|
|
364
|
+
if (searchQueries[key].type === "startsWith") {
|
|
365
|
+
acc[key] = item[key];
|
|
366
|
+
}
|
|
367
|
+
return acc;
|
|
368
|
+
}, {})));
|
|
362
369
|
return _filteredData;
|
|
363
370
|
}, [
|
|
364
371
|
data,
|
package/package.json
CHANGED