@megha-ui/react 1.3.113 → 1.3.114

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.
@@ -431,21 +431,7 @@ const GridHeader = ({ columns, onSearch, searchQueries, sortable, search, resiza
431
431
  searchType = "endsWith";
432
432
  }
433
433
  }
434
- let query = input;
435
- if (query &&
436
- !query.includes("%") &&
437
- !query.includes("_")) {
438
- if (searchType === "contains") {
439
- query = `%${query}%`;
440
- }
441
- else if (searchType === "startsWith") {
442
- query = `${query}%`;
443
- }
444
- else if (searchType === "endsWith") {
445
- query = `%${query}`;
446
- }
447
- }
448
- onSearch(currentKey, query, searchType);
434
+ onSearch(currentKey, input, searchType);
449
435
  }, onBlur: (e) => {
450
436
  var _a, _b;
451
437
  const currentKey = ((_a = headerColumns.find((column) => column.key === _groupBy)) === null || _a === void 0 ? void 0 : _a.key) || "";
@@ -612,21 +598,7 @@ const GridHeader = ({ columns, onSearch, searchQueries, sortable, search, resiza
612
598
  searchType = "endsWith";
613
599
  }
614
600
  }
615
- let query = input;
616
- if (query &&
617
- !query.includes("%") &&
618
- !query.includes("_")) {
619
- if (searchType === "contains") {
620
- query = `%${query}%`;
621
- }
622
- else if (searchType === "startsWith") {
623
- query = `${query}%`;
624
- }
625
- else if (searchType === "endsWith") {
626
- query = `%${query}`;
627
- }
628
- }
629
- onSearch(currentKey, query, searchType);
601
+ onSearch(currentKey, input, searchType);
630
602
  }, onBlur: (e) => {
631
603
  var _a, _b;
632
604
  const currentKey = ((_a = headerColumns.find((column) => column.key === _groupBy)) === null || _a === void 0 ? void 0 : _a.key) || "";
@@ -791,21 +763,7 @@ const GridHeader = ({ columns, onSearch, searchQueries, sortable, search, resiza
791
763
  searchType = "endsWith";
792
764
  }
793
765
  }
794
- let query = input;
795
- if (query &&
796
- !query.includes("%") &&
797
- !query.includes("_")) {
798
- if (searchType === "contains") {
799
- query = `%${query}%`;
800
- }
801
- else if (searchType === "startsWith") {
802
- query = `${query}%`;
803
- }
804
- else if (searchType === "endsWith") {
805
- query = `%${query}`;
806
- }
807
- }
808
- onSearch(currentKey, query, searchType);
766
+ onSearch(currentKey, input, searchType);
809
767
  }, onBlur: (e) => {
810
768
  var _a, _b;
811
769
  const currentKey = ((_a = headerColumns.find((column) => column.key === _groupBy)) === null || _a === void 0 ? void 0 : _a.key) || "";
@@ -1009,21 +967,7 @@ const GridHeader = ({ columns, onSearch, searchQueries, sortable, search, resiza
1009
967
  searchType = "endsWith";
1010
968
  }
1011
969
  }
1012
- let query = input;
1013
- if (query &&
1014
- !query.includes("%") &&
1015
- !query.includes("_")) {
1016
- if (searchType === "contains") {
1017
- query = `%${query}%`;
1018
- }
1019
- else if (searchType === "startsWith") {
1020
- query = `${query}%`;
1021
- }
1022
- else if (searchType === "endsWith") {
1023
- query = `%${query}`;
1024
- }
1025
- }
1026
- onSearch(column.key, query, searchType);
970
+ onSearch(column.key, input, searchType);
1027
971
  }, onBlur: (e) => {
1028
972
  var _a;
1029
973
  const currentKey = (column === null || column === void 0 ? void 0 : column.key) || "";
@@ -1151,21 +1095,7 @@ const GridHeader = ({ columns, onSearch, searchQueries, sortable, search, resiza
1151
1095
  searchType = "endsWith";
1152
1096
  }
1153
1097
  }
1154
- let query = input;
1155
- if (query &&
1156
- !query.includes("%") &&
1157
- !query.includes("_")) {
1158
- if (searchType === "contains") {
1159
- query = `%${query}%`;
1160
- }
1161
- else if (searchType === "startsWith") {
1162
- query = `${query}%`;
1163
- }
1164
- else if (searchType === "endsWith") {
1165
- query = `%${query}`;
1166
- }
1167
- }
1168
- onSearch(column.key, query, searchType);
1098
+ onSearch(column.key, input, searchType);
1169
1099
  }, onBlur: (e) => {
1170
1100
  var _a;
1171
1101
  const currentKey = (column === null || column === void 0 ? void 0 : column.key) || "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.3.113",
3
+ "version": "1.3.114",
4
4
  "description": "A collection of reusable UI components for React applications, built with TypeScript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",