@indigina/ui-kit 1.1.367 → 1.1.368

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.
@@ -7384,9 +7384,11 @@ const kitFetchGridData = ({ store, destroyRef, isLoading, fetchAction, fetchFrom
7384
7384
  const action = isSearchMode && fetchFromIndexAction({ ...gridState, searchTerm }) || fetchAction(gridState);
7385
7385
  store.dispatch(action).pipe(takeUntilDestroyed(destroyRef)).subscribe(() => isLoading.set(false));
7386
7386
  };
7387
- const kitFetchExportGridData = ({ fetchAction, fetchIndexAction, sort, filter, search, columns, total = KIT_DEFAULT_EXPORT_TOTAL, }) => {
7388
- if (search) {
7389
- const searchTerm = kitFormatStringForSearch(search);
7387
+ const kitFetchExportGridData = ({ fetchAction, fetchIndexAction, sort, filter, search, columns, total = KIT_DEFAULT_EXPORT_TOTAL, hasArchiveToggle = false, archiveModeEnabled = false, }) => {
7388
+ const isArchive = hasArchiveToggle && archiveModeEnabled || false;
7389
+ const isSearchMode = hasArchiveToggle && !isArchive || !!search;
7390
+ if (isSearchMode) {
7391
+ const searchTerm = search && kitFormatStringForSearch(search) || undefined;
7390
7392
  return fetchIndexAction(0, total, kitBuildSortString(sort, columns), kitBuildOdataFilter(kitBuildFilters(filter)), searchTerm);
7391
7393
  }
7392
7394
  return fetchAction(0, total, kitBuildSortString(sort, columns), kitBuildOdataFilter(kitBuildFilters(filter)));