@megha-ui/react 1.2.167 → 1.2.169
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.
|
@@ -634,7 +634,9 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
|
|
|
634
634
|
};
|
|
635
635
|
(0, react_1.useEffect)(() => {
|
|
636
636
|
if (gridGroupBy && gridGroupBy !== "") {
|
|
637
|
+
console.log(gridGroupBy.split(","));
|
|
637
638
|
const groupedArray = groupByMultipleKeys(sortedData, gridGroupBy.split(","));
|
|
639
|
+
console.log(groupedArray);
|
|
638
640
|
const flatGroupedArray = flattenGroupedData(groupedArray, 1);
|
|
639
641
|
setGroupedData(flatGroupedArray);
|
|
640
642
|
const grouped = flatGroupedArray
|
|
@@ -754,7 +756,10 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
|
|
|
754
756
|
}, [filteredData, gridGroupBy, gridColumns]);
|
|
755
757
|
const handleSearch = (key, value, type) => {
|
|
756
758
|
setSearchQueries((prev) => (Object.assign(Object.assign({}, prev), { [key]: { text: value, type, operation: "and" } })));
|
|
757
|
-
setUniqueSearch((prev) =>
|
|
759
|
+
setUniqueSearch((prev) => {
|
|
760
|
+
delete prev[key];
|
|
761
|
+
return prev;
|
|
762
|
+
});
|
|
758
763
|
};
|
|
759
764
|
(0, react_1.useEffect)(() => {
|
|
760
765
|
const handleKeydown = (event) => {
|
|
@@ -5,7 +5,7 @@ interface TextInputProps {
|
|
|
5
5
|
id?: string;
|
|
6
6
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7
7
|
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
8
|
-
onBlur?: (event: React.
|
|
8
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
9
9
|
placeholder?: string;
|
|
10
10
|
type?: "text" | "password" | "email" | "number";
|
|
11
11
|
className?: string;
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@megha-ui/react",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.169",
|
|
4
4
|
"description": "A collection of reusable UI components for React applications, built with TypeScript.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
|
-
"module": "./dist/index.
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "tsc",
|