@megha-ui/react 1.2.360 → 1.2.362
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.
|
@@ -144,19 +144,9 @@ const Dropdown = ({ options, selectedValues, onChange, placeholder = "Select..."
|
|
|
144
144
|
const _options = isSort
|
|
145
145
|
? options
|
|
146
146
|
.sort((a, b) => (a.label > b.label ? 1 : -1))
|
|
147
|
-
.filter((option) =>
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
.includes(searchTerm.toLowerCase()), option.label, searchTerm);
|
|
151
|
-
return option.label
|
|
152
|
-
.toLowerCase()
|
|
153
|
-
.includes(searchTerm.toLowerCase());
|
|
154
|
-
})
|
|
155
|
-
: options.filter((option) => {
|
|
156
|
-
return option.label.toLowerCase().includes(searchTerm.toLowerCase());
|
|
157
|
-
});
|
|
158
|
-
console.log(options);
|
|
159
|
-
setFilteredOptions(options);
|
|
147
|
+
.filter((option) => option.label.toLowerCase().includes(searchTerm.toLowerCase()))
|
|
148
|
+
: options.filter((option) => option.label.toLowerCase().includes(searchTerm.toLowerCase()));
|
|
149
|
+
setFilteredOptions(_options);
|
|
160
150
|
const grouped = [];
|
|
161
151
|
if (isGrouping) {
|
|
162
152
|
const groups = [...new Set(options.map((opt) => opt.group))];
|
|
@@ -24,7 +24,7 @@ import { TbCopy, TbCopyOff } from "react-icons/tb";
|
|
|
24
24
|
import { formatValue } from "../../services/commonService";
|
|
25
25
|
const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable = true, paginate, rowsPerPageOptions = [10, 20, 50, 100], defaultRowsPerPage = 100, widthMode = "custom", bulkSelect = false, cellBorder = false, rowHeight = 38, 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 = {
|
|
26
26
|
borderLeft: "0.5rem solid #d9d9d9",
|
|
27
|
-
}, defaultSort, noKeyEvents = true, customOperation, hasCustomOperation, globalSearch, headerDropdownIndex, draggable = false, resizable = false, updateGridData, widthUnits, checkboxWrapper, ignoreHugContent = false,
|
|
27
|
+
}, defaultSort, noKeyEvents = true, customOperation, hasCustomOperation, globalSearch, headerDropdownIndex, draggable = false, resizable = false, updateGridData, widthUnits, checkboxWrapper, ignoreHugContent = false, isSummarise = false, isHideDups = 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) => {
|
|
28
28
|
console.log("Update fixed filter values not implemented", fixedFilterValues);
|
|
29
29
|
}, locale, formatOptions, exportOptions, }) => {
|
|
30
30
|
var _a, _b, _c, _d;
|
package/package.json
CHANGED