Compare commits

..

No commits in common. "9f960a6729bffcf6fc9b3c06a756ac49fc368a68" and "5fc02f9671160b04a8ca543d9ffdba09640ed446" have entirely different histories.

4 changed files with 2 additions and 15 deletions

View File

@ -1,11 +1,5 @@
# @warkypublic/zustandsyncstore
## 0.0.14
### Patch Changes
- 864188c: Added searchfields
## 0.0.13
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@warkypublic/oranguru",
"author": "Warky Devs",
"version": "0.0.14",
"version": "0.0.13",
"type": "module",
"scripts": {
"dev": "vite",

View File

@ -90,7 +90,6 @@ export interface GridlerProps extends PropsWithChildren {
rowHeight?: number;
scrollToRowKey?: number;
searchFields?: Array<string>;
searchStr?: string;
sections?: {
bottom?: React.ReactNode;

View File

@ -35,7 +35,6 @@ function _GlidlerAPIAdaptorForGoLangv2<T = unknown>(props: GlidlerAPIAdaptorForG
const pageSize = getState('pageSize');
const colFilters = getState('colFilters');
const searchStr = getState('searchStr');
const searchFields = getState('searchFields');
const _active_requests = getState('_active_requests');
setState('loadingData', true);
try {
@ -73,12 +72,7 @@ function _GlidlerAPIAdaptorForGoLangv2<T = unknown>(props: GlidlerAPIAdaptorForG
if (searchStr && searchStr !== '') {
columns
?.filter(
(f) =>
!f.disableFilter &&
!f.disableSearch &&
((searchFields ?? []).length == 0 || searchFields?.includes(f.id))
)
?.filter((f) => !f.disableFilter && !f.disableSearch)
?.forEach((filter: any) => {
ops.push({
name: `${filter.id}`,