@indigina/ui-kit 1.1.396 → 1.1.397
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.
|
@@ -5,7 +5,7 @@ import { Input, ChangeDetectionStrategy, Component, input, EventEmitter, Output,
|
|
|
5
5
|
import * as i1 from '@progress/kendo-angular-buttons';
|
|
6
6
|
import { ButtonModule, ButtonGroupModule, KENDO_BUTTONS } from '@progress/kendo-angular-buttons';
|
|
7
7
|
import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
|
|
8
|
-
import { map, catchError, EMPTY, forkJoin, BehaviorSubject, filter, Subject, startWith, pairwise, takeUntil, combineLatest, tap, debounceTime, distinctUntilChanged, take, switchMap, of } from 'rxjs';
|
|
8
|
+
import { map, catchError, EMPTY, forkJoin, BehaviorSubject, filter, Subject, startWith, pairwise, takeUntil, combineLatest, tap, debounceTime, distinctUntilChanged, take, switchMap, of, finalize } from 'rxjs';
|
|
9
9
|
import * as i1$1 from '@progress/kendo-angular-label';
|
|
10
10
|
import { LabelModule, KENDO_LABELS } from '@progress/kendo-angular-label';
|
|
11
11
|
import { TooltipDirective, TooltipSettings } from '@progress/kendo-angular-tooltip';
|
|
@@ -7372,7 +7372,7 @@ const kitBuildSortString = (sort, columns) => {
|
|
|
7372
7372
|
}).join(', ');
|
|
7373
7373
|
return sortString !== '' && sortString || undefined;
|
|
7374
7374
|
};
|
|
7375
|
-
const kitFetchGridData = ({ store, destroyRef, isLoading, fetchAction, fetchFromIndexAction, hasArchiveToggle, }) => {
|
|
7375
|
+
const kitFetchGridData = ({ store, destroyRef, isLoading, fetchAction, fetchFromIndexAction, hasArchiveToggle, error, }) => {
|
|
7376
7376
|
isLoading.set(true);
|
|
7377
7377
|
const { skip, take, sort, filter, search, archive } = store.selectSnapshot(KIT_GRID_STATE_TOKEN);
|
|
7378
7378
|
const gridState = {
|
|
@@ -7385,7 +7385,7 @@ const kitFetchGridData = ({ store, destroyRef, isLoading, fetchAction, fetchFrom
|
|
|
7385
7385
|
const isSearchMode = hasArchiveToggle && !isArchive || !!search;
|
|
7386
7386
|
const searchTerm = search && kitFormatStringForSearch(search) || undefined;
|
|
7387
7387
|
const action = isSearchMode && fetchFromIndexAction({ ...gridState, searchTerm }) || fetchAction(gridState);
|
|
7388
|
-
store.dispatch(action).pipe(takeUntilDestroyed(destroyRef)
|
|
7388
|
+
store.dispatch(action).pipe(takeUntilDestroyed(destroyRef), finalize(() => isLoading.set(false))).subscribe({ error });
|
|
7389
7389
|
};
|
|
7390
7390
|
const kitFetchExportGridData = ({ fetchAction, fetchIndexAction, sort, filter, search, columns, total, hasArchiveToggle = false, archiveModeEnabled = false, }) => {
|
|
7391
7391
|
const isArchive = hasArchiveToggle && archiveModeEnabled || false;
|