@megha-ui/react 1.2.689 → 1.2.696
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.
|
@@ -34,7 +34,7 @@ import Card from "../card";
|
|
|
34
34
|
import { TbAntennaBarsOff, TbCalculator, TbCalculatorFilled, TbCalculatorOff, } from "react-icons/tb";
|
|
35
35
|
import { TbCopy, TbCopyOff } from "react-icons/tb";
|
|
36
36
|
import { formatValue } from "../../services/commonService";
|
|
37
|
-
const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable = true, paginate, rowsPerPageOptions = [10, 20, 50, 100], defaultRowsPerPage = 100, defaultColumnsPerView = 200, widthMode = "custom", bulkSelect = false, cellBorder = false, rowHeight =
|
|
37
|
+
const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable = true, paginate, rowsPerPageOptions = [10, 20, 50, 100], defaultRowsPerPage = 100, defaultColumnsPerView = 200, widthMode = "custom", bulkSelect = false, cellBorder = false, rowHeight = "3rem", onRowClick, rowCount = false, rowBorder = true, showMenu = false, search = false, defaultSearchOperation = "contains", gridBorder = false, isLoading = false, rowTopBorder, rowBottomBorder, rowLeftBorder, rowRightBorder, headerBackground = "var(--row-header-bg)", headerTopBorder = "none", headerBottomBorder = "none", SettingIcon, ExportIcon, ignoredExportItems = ["action", "actions"], borderColor = "#dbdfe9", updateColumns, showHideAvailable = false, columnSearchOutside = false, multiSorting = false, exportAvailable = false, exportableFileName = "", groupBy, updateGroupBy, rowKey = "id", hlBorderColor = "black", selectedRow, selectedRowStyle = {
|
|
38
38
|
borderLeft: "0.5rem solid #d9d9d9",
|
|
39
39
|
}, defaultSort, noKeyEvents = true, customOperation, hasCustomOperation, globalSearch, headerDropdownIndex, draggable = false, resizable = false, updateGridData, widthUnits, checkboxWrapper, ignoreHugContent = false, isSummarise = false, isHideDups = false, isMultipleChips = false, fullScreenAvailable = true, defaultGroupOpen, alternateRowColor = true, activeCalculateColor = "#2377BA", calculatetextColor = "#fff", actionsKey = "actions", saveAsNewView = false, handleSaveAsView, saveAsViewIcon, filterData, chipColor = "#ccc", withAscii = false, propSummariseKeys, SummariseIcon, summarizeColor = "black", isExpandable = false, expandedRow, extraRow, selectedCheckBox, setSelectedCheckbox, ignoreRowSelect, setOpenedRows, openedRows, getLoadingState, globalSearchOpen = false, updateFixedFilterValues = (fixedFilterValues) => {
|
|
40
40
|
console.log("Update fixed filter values not implemented", fixedFilterValues);
|
|
@@ -402,16 +402,16 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
402
402
|
.filter((item) => filterValue
|
|
403
403
|
? filterValue.split(">").length > 1
|
|
404
404
|
? groupedKey.split(">").every((group) => {
|
|
405
|
-
var _a;
|
|
405
|
+
var _a, _b;
|
|
406
406
|
return filterValue
|
|
407
407
|
.split(">")
|
|
408
|
-
.includes((_a = item[group].value) === null ||
|
|
408
|
+
.includes((_b = ((_a = item[group]) !== null && _a !== void 0 ? _a : { value: "" }).value) === null || _b === void 0 ? void 0 : _b.toString());
|
|
409
409
|
})
|
|
410
410
|
: groupedKey.split(">").some((group) => {
|
|
411
|
-
var _a;
|
|
411
|
+
var _a, _b;
|
|
412
412
|
return filterValue
|
|
413
413
|
.split(">")
|
|
414
|
-
.includes((_a = item[group].value) === null ||
|
|
414
|
+
.includes((_b = ((_a = item[group]) !== null && _a !== void 0 ? _a : { value: "" }).value) === null || _b === void 0 ? void 0 : _b.toString());
|
|
415
415
|
})
|
|
416
416
|
: true)
|
|
417
417
|
.map((item) => {
|
|
@@ -80,7 +80,7 @@ export interface OjasGridProps {
|
|
|
80
80
|
widthMode?: "auto" | "custom";
|
|
81
81
|
rowKey?: string;
|
|
82
82
|
cellBorder?: boolean;
|
|
83
|
-
rowHeight?: number;
|
|
83
|
+
rowHeight?: number | string;
|
|
84
84
|
onRowClick?: (rowData: any) => void;
|
|
85
85
|
rowCount?: boolean;
|
|
86
86
|
rowBorder?: boolean;
|
|
@@ -270,7 +270,7 @@ export interface GridRowProps {
|
|
|
270
270
|
item: DataRow;
|
|
271
271
|
rowStyle: React.CSSProperties;
|
|
272
272
|
cellStyle: React.CSSProperties;
|
|
273
|
-
rowHeight: number;
|
|
273
|
+
rowHeight: number | string;
|
|
274
274
|
/** Unique key field for row items */
|
|
275
275
|
rowKey: string;
|
|
276
276
|
bulkSelect: boolean;
|
package/package.json
CHANGED