@megha-ui/react 1.3.80 → 1.3.81
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.
|
@@ -618,9 +618,9 @@ const GridHeader = ({ columns, onSearch, searchQueries, sortable, search, resiza
|
|
|
618
618
|
.find((item) => {
|
|
619
619
|
var _a, _b, _c;
|
|
620
620
|
return item.value ===
|
|
621
|
-
((_c = searchQueries[(_b = (_a = headerColumns.find((column) => column.key === _groupBy)) === null || _a === void 0 ? void 0 : _a.key) !== null && _b !== void 0 ? _b : ""]) === null || _c === void 0 ? void 0 : _c.type) ||
|
|
622
|
-
|
|
623
|
-
|
|
621
|
+
(((_c = searchQueries[(_b = (_a = headerColumns.find((column) => column.key === _groupBy)) === null || _a === void 0 ? void 0 : _a.key) !== null && _b !== void 0 ? _b : ""]) === null || _c === void 0 ? void 0 : _c.type) ||
|
|
622
|
+
defaultSearchOperation ||
|
|
623
|
+
"contains");
|
|
624
624
|
})) === null || _59 === void 0 ? void 0 : _59.label) !== null && _60 !== void 0 ? _60 : "", withValue: true, onChange: (selected) => {
|
|
625
625
|
var _a, _b, _c;
|
|
626
626
|
const value = ((_a = selected[0]) === null || _a === void 0 ? void 0 : _a.toString()) || "";
|
|
@@ -684,9 +684,10 @@ const GridHeader = ({ columns, onSearch, searchQueries, sortable, search, resiza
|
|
|
684
684
|
: textTypeSearch.includes(item.value));
|
|
685
685
|
console.log(colSearchOptions.find((item) => {
|
|
686
686
|
var _a, _b;
|
|
687
|
-
return item.value ===
|
|
688
|
-
|
|
689
|
-
|
|
687
|
+
return item.value ===
|
|
688
|
+
(((_b = searchQueries[(_a = column === null || column === void 0 ? void 0 : column.key) !== null && _a !== void 0 ? _a : ""]) === null || _b === void 0 ? void 0 : _b.type) ||
|
|
689
|
+
defaultSearchOperation ||
|
|
690
|
+
"contains");
|
|
690
691
|
}));
|
|
691
692
|
return (_jsx("div", { className: `${sortable && column.sortable ? "sortable" : ""} ${column.showMenu ? "menu-true" : "menu-false"} column index-${column.key}`, style: Object.assign(Object.assign({}, cellStyle), { padding: "0.5rem", textAlign: "left", whiteSpace: "nowrap", textOverflow: "ellipsis", wordBreak: widthMode === "auto" ? "break-all" : "unset", backgroundColor: "var(--row-header-bg)", borderTop: headerTopBorder, borderBottom: headerBottomBorder, flex: widthMode === "auto" ? 1 : undefined, flexGrow: widthMode === "auto" ? 1 : 0, flexShrink: widthMode === "auto" ? 1 : 0, position: "sticky", top: 0, zIndex: 1 }), onMouseMove: (e) => handleMouseMove(e), onMouseUp: handleMouseUp, onMouseLeave: handleMouseUp, children: !actionsKey.split(",").includes(column.key) && (_jsxs(_Fragment, { children: [resizable && (_jsx("div", { style: {
|
|
692
693
|
position: "absolute",
|
|
@@ -947,9 +948,9 @@ const GridHeader = ({ columns, onSearch, searchQueries, sortable, search, resiza
|
|
|
947
948
|
}, selectedDisplay: (_x = (_w = colSearchOptions.find((item) => {
|
|
948
949
|
var _a, _b;
|
|
949
950
|
return item.value ===
|
|
950
|
-
((_b = searchQueries[(_a = column === null || column === void 0 ? void 0 : column.key) !== null && _a !== void 0 ? _a : ""]) === null || _b === void 0 ? void 0 : _b.type) ||
|
|
951
|
-
|
|
952
|
-
|
|
951
|
+
(((_b = searchQueries[(_a = column === null || column === void 0 ? void 0 : column.key) !== null && _a !== void 0 ? _a : ""]) === null || _b === void 0 ? void 0 : _b.type) ||
|
|
952
|
+
defaultSearchOperation ||
|
|
953
|
+
"contains");
|
|
953
954
|
})) === null || _w === void 0 ? void 0 : _w.label) !== null && _x !== void 0 ? _x : "", withValue: true, searchEnabled: false, className: "flex-1", isIcon: true })] }) }), columnData.length > 0 &&
|
|
954
955
|
activeSearchColumn === ((column === null || column === void 0 ? void 0 : column.key) || "") && (_jsxs("div", { ref: activeSearchListRef, style: {
|
|
955
956
|
position: "absolute",
|
package/package.json
CHANGED